forked from cwtch.im/ui
various layout fixes
This commit is contained in:
parent
9a0dafceff
commit
1f687cb616
|
@ -6,6 +6,7 @@ import (
|
||||||
"cwtch.im/ui/go/the"
|
"cwtch.im/ui/go/the"
|
||||||
"encoding/base32"
|
"encoding/base32"
|
||||||
"git.openprivacy.ca/openprivacy/libricochet-go/log"
|
"git.openprivacy.ca/openprivacy/libricochet-go/log"
|
||||||
|
"runtime/debug"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -32,6 +33,7 @@ func (this *InterfaceState) AddContact(c *gobjects.Contact) {
|
||||||
return
|
return
|
||||||
} else if len(c.Handle) != 56 {
|
} else if len(c.Handle) != 56 {
|
||||||
log.Errorf("sorry, unable to handle AddContact(%v)", c.Handle)
|
log.Errorf("sorry, unable to handle AddContact(%v)", c.Handle)
|
||||||
|
debug.PrintStack()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -145,14 +145,14 @@ Item {
|
||||||
property string title
|
property string title
|
||||||
|
|
||||||
|
|
||||||
Item {} // empty
|
Item { anchors.fill: parent } // empty
|
||||||
|
|
||||||
OverlayPane { // messagePane
|
OverlayPane { // messagePane
|
||||||
title: theStack.title
|
title: theStack.title
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
}
|
}
|
||||||
|
|
||||||
SettingsPane{}
|
SettingsPane{ anchors.fill: parent }
|
||||||
|
|
||||||
ColumnLayout { // userProfilePane
|
ColumnLayout { // userProfilePane
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -168,7 +168,7 @@ Item {
|
||||||
Label { text: "per-user things like contact name and picture will be edited here" }
|
Label { text: "per-user things like contact name and picture will be edited here" }
|
||||||
}
|
}
|
||||||
|
|
||||||
GroupSettingsPane{}
|
GroupSettingsPane{ anchors.fill: parent }
|
||||||
|
|
||||||
AddGroupPane { anchors.fill: parent }
|
AddGroupPane { anchors.fill: parent }
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
RowLayout {
|
||||||
id: switcher
|
id: switcher
|
||||||
|
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -95,16 +95,17 @@ ColumnLayout {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//InplaceEditText { // USER NICKNAME
|
InplaceEditText { // USER NICKNAME
|
||||||
// id: lblNick
|
id: lblNick
|
||||||
// anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
// width: parent.width
|
width: parent.width
|
||||||
//
|
|
||||||
// onUpdated: {
|
|
||||||
// gcd.updateNick(lblNick.text)
|
|
||||||
// }
|
|
||||||
//}
|
|
||||||
|
|
||||||
|
onUpdated: {
|
||||||
|
gcd.updateNick(lblNick.text)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
Text {
|
Text {
|
||||||
id: txtNick
|
id: txtNick
|
||||||
fontSizeMode: Text.HorizontalFit
|
fontSizeMode: Text.HorizontalFit
|
||||||
|
@ -137,6 +138,7 @@ ColumnLayout {
|
||||||
txtNick.visible = true
|
txtNick.visible = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
ScalingLabel { // ONION ADDRESS
|
ScalingLabel { // ONION ADDRESS
|
||||||
id: lblOnion
|
id: lblOnion
|
||||||
|
@ -246,6 +248,7 @@ ColumnLayout {
|
||||||
|
|
||||||
onUpdateMyProfile: function(_nick, _onion, _image) {
|
onUpdateMyProfile: function(_nick, _onion, _image) {
|
||||||
nick = _nick
|
nick = _nick
|
||||||
|
lblNick.text = _nick
|
||||||
onion = _onion
|
onion = _onion
|
||||||
image = _image
|
image = _image
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue