Merge branch 'ebf201903051402' of cwtch.im/ui into master

This commit is contained in:
Sarah Jamie Lewis 2019-03-05 14:04:14 -08:00 committed by Gogs
commit eaa700ba57
2 changed files with 33 additions and 14 deletions

View File

@ -120,7 +120,7 @@ ApplicationWindow {
Layout.fillHeight: true
Layout.minimumWidth: Layout.maximumWidth
Layout.maximumWidth: theStack.pane == theStack.emptyPane ? parent.width : 450
visible: (ratio <= 1.08 && windowItem.width >= 500) || theStack.pane == theStack.emptyPane
visible: (ratio <= 1.08 && windowItem.width >= 700) || theStack.pane == theStack.emptyPane
ContactList{

View File

@ -14,9 +14,10 @@ ColumnLayout {
property string name
property bool accepted
StackToolbar {
id: toolbar
//text: "open privacy exec"
aux.onClicked: {
if (gcd.currentOpenConversation.length == 32) {
@ -32,9 +33,12 @@ ColumnLayout {
RowLayout {
visible:!overlay.accepted && (gcd.currentOpenConversation.length == 32)
Text {
text: "Do you want to accept the invitation to " + overlay.name + "?"
}
SimpleButton {
text: "Accept"
icon: "regular/heart"
@ -43,6 +47,7 @@ ColumnLayout {
gcd.requestGroupSettings(gcd.currentOpenConversation)
}
}
SimpleButton {
text: "Reject"
icon: "regular/trash-alt"
@ -93,6 +98,7 @@ ColumnLayout {
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.top: switcher.bottom
implicitHeight: height
currentIndex: 0
property alias overlay: overlayStack.currentIndex
@ -102,22 +108,35 @@ ColumnLayout {
readonly property int game1Overlay: 3
ChatOverlay {} //0
ChatOverlay { //0
Layout.maximumHeight: overlayStack.height
Layout.maximumWidth: overlayStack.width
}
ListOverlay{} //1
ListOverlay{ //1
Layout.maximumHeight: overlayStack.height
Layout.maximumWidth: overlayStack.width
}
BulletinOverlay{} //2
BulletinOverlay{ //2
Layout.maximumHeight: overlayStack.height
Layout.maximumWidth: overlayStack.width
}
Game1Overlay{} //3
Game1Overlay{ //3
Layout.maximumHeight: overlayStack.height
Layout.maximumWidth: overlayStack.width
}
}
Connections {
target: gcd
Connections {
target: gcd
onSupplyGroupSettings: function(gid, name, server, invite, accepted, addrbooknames, addrbookaddrs) {
console.log("Supplied " + gid + " " + name + "Accepted " + accepted)
overlay.name = name
overlay.accepted = accepted
}
}
onSupplyGroupSettings: function(gid, name, server, invite, accepted, addrbooknames, addrbookaddrs) {
console.log("Supplied " + gid + " " + name + "Accepted " + accepted)
overlay.name = name
overlay.accepted = accepted
}
}
}