initial commit

This commit is contained in:
erinn 2018-10-30 22:43:22 -07:00
parent a006f4a968
commit 690a71308e
5 changed files with 28 additions and 13 deletions

View File

@ -158,7 +158,7 @@ Item {
Slider { Slider {
id: zoomSlider id: zoomSlider
from: 0.5 from: 0.5
to: 1.6 to: 2.4
} }
ScalingLabel { ScalingLabel {

View File

@ -8,6 +8,7 @@ import CustomQmlTypes 1.0
RowLayout { // LOTS OF NESTING TO DEAL WITH QT WEIRDNESS, SORRY RowLayout { // LOTS OF NESTING TO DEAL WITH QT WEIRDNESS, SORRY
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
visible: nick != ""
property alias nick: cn.text property alias nick: cn.text
property alias image: imgProfile.source property alias image: imgProfile.source

View File

@ -27,7 +27,7 @@ RowLayout {
onAcknowledged: function(mid) { onAcknowledged: function(mid) {
if (mid == messageID) { if (mid == messageID) {
ack.text = awesome.icons.fa_check ack.source = "qrc:/qml/images/fontawesome/regular/check-circle.svg"
} }
} }
} }
@ -103,13 +103,21 @@ RowLayout {
leftPadding: 10 leftPadding: 10
} }
Label { // MESSAGE ACKNOWLEDGMENT Label { // DISPLAY NAME FOR GROUPS
id: ack
color: "#FFFFFF" color: "#FFFFFF"
font.pixelSize: 10 font.pixelSize: 10
anchors.right: parent.right anchors.right: parent.right
font.family: "FontAwesome" text: displayname
text: from == "me" ? (awesome.loaded ? awesome.icons.fa_ellipsis_h : "") : displayname visible: from != "me"
}
Image { // ACKNOWLEDGEMENT ICON
id: ack
anchors.right: parent.right
source: displayname == "" ? "qrc:/qml/images/fontawesome/regular/hourglass.svg" : "qrc:/qml/images/fontawesome/regular/check-circle.svg"
height: 10
sourceSize.height: 10
visible: from == "me"
} }
} }
} }

View File

@ -12,7 +12,7 @@ ColumnLayout {
StackToolbar { StackToolbar {
text: "Sarah Jamie Lewis" text: "open privacy exec"
aux.onClicked: theStack.pane = theStack.userProfilePane aux.onClicked: theStack.pane = theStack.userProfilePane
} }
@ -87,9 +87,9 @@ ColumnLayout {
RowLayout { // THE BOTTOM DRAWER RowLayout { // THE BOTTOM DRAWER
Rectangle { // MESSAGE ENTRY TEXTFIELD Rectangle { // MESSAGE ENTRY TEXTFIELD
id: rectMessage id: rectMessage
Layout.fillWidth: 40 * zoomSlider.value Layout.fillWidth: true
Layout.minimumHeight: 40 * zoomSlider.value Layout.minimumHeight: 40 * zoomSlider.value
//height: 40 * zoomSlider.value Layout.maximumHeight: 40 * zoomSlider.value
color: "#EDEDED" color: "#EDEDED"
border.color: "#AAAAAA" border.color: "#AAAAAA"
radius: 10 radius: 10
@ -203,8 +203,10 @@ ColumnLayout {
id: btnSend id: btnSend
icon: "regular/paper-plane" icon: "regular/paper-plane"
text: "send" text: "send"
Layout.minimumWidth: btnEmoji.width + btnAttach.width + 1 Layout.minimumWidth: btnEmoji.width + btnAttach.width + 2
Layout.maximumWidth: btnEmoji.width + btnAttach.width + 1 Layout.maximumWidth: btnEmoji.width + btnAttach.width + 2
anchors.right: parent.right
anchors.rightMargin: 2
property int nextMessageID: 1 property int nextMessageID: 1
@ -230,6 +232,8 @@ ColumnLayout {
SimpleButton { // EMOJI DRAWER BUTTON SimpleButton { // EMOJI DRAWER BUTTON
id: btnEmoji id: btnEmoji
icon: "regular/smile" icon: "regular/smile"
anchors.right: btnAttach.left
anchors.rightMargin: 2
onClicked: gcd.popup("emoji not yet implemented, sorry") onClicked: gcd.popup("emoji not yet implemented, sorry")
} }
@ -237,6 +241,8 @@ ColumnLayout {
SimpleButton { SimpleButton {
id: btnAttach id: btnAttach
icon: "solid/paperclip" icon: "solid/paperclip"
anchors.right: parent.right
anchors.rightMargin: 2
onClicked: { onClicked: {
gcd.popup("attachments not yet implemented, sorry") gcd.popup("attachments not yet implemented, sorry")

View File

@ -12,7 +12,7 @@ Rectangle { // OVERHEAD BAR ON STACK PANE
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.top: parent.top
height: 20 * zoomSlider.value//btnAux.height + 4 height: 20 * zoomSlider.value + 4
Layout.minimumHeight: height Layout.minimumHeight: height
Layout.maximumHeight: height Layout.maximumHeight: height
color: "#EDEDED" color: "#EDEDED"
@ -35,7 +35,7 @@ Rectangle { // OVERHEAD BAR ON STACK PANE
ScalingLabel { // TEXT ScalingLabel { // TEXT
id: lbl id: lbl
text: "Sarah Jamie Lewis" text: "open privacy exec"
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }