various layout fixes

This commit is contained in:
erinn 2019-02-04 15:00:12 -08:00
parent 9a0dafceff
commit 1f687cb616
5 changed files with 18 additions and 13 deletions

View File

@ -6,6 +6,7 @@ import (
"cwtch.im/ui/go/the"
"encoding/base32"
"git.openprivacy.ca/openprivacy/libricochet-go/log"
"runtime/debug"
"strings"
)
@ -32,6 +33,7 @@ func (this *InterfaceState) AddContact(c *gobjects.Contact) {
return
} else if len(c.Handle) != 56 {
log.Errorf("sorry, unable to handle AddContact(%v)", c.Handle)
debug.PrintStack()
return
}

View File

@ -145,14 +145,14 @@ Item {
property string title
Item {} // empty
Item { anchors.fill: parent } // empty
OverlayPane { // messagePane
title: theStack.title
anchors.fill: parent
}
SettingsPane{}
SettingsPane{ anchors.fill: parent }
ColumnLayout { // userProfilePane
anchors.fill: parent
@ -168,7 +168,7 @@ Item {
Label { text: "per-user things like contact name and picture will be edited here" }
}
GroupSettingsPane{}
GroupSettingsPane{ anchors.fill: parent }
AddGroupPane { anchors.fill: parent }
}

View File

@ -22,7 +22,7 @@ ColumnLayout {
}
}
Row {
RowLayout {
id: switcher

Binary file not shown.

View File

@ -95,16 +95,17 @@ ColumnLayout {
}
}
//InplaceEditText { // USER NICKNAME
// id: lblNick
// anchors.horizontalCenter: parent.horizontalCenter
// width: parent.width
//
// onUpdated: {
// gcd.updateNick(lblNick.text)
// }
//}
InplaceEditText { // USER NICKNAME
id: lblNick
anchors.horizontalCenter: parent.horizontalCenter
width: parent.width
onUpdated: {
gcd.updateNick(lblNick.text)
}
}
/*
Text {
id: txtNick
fontSizeMode: Text.HorizontalFit
@ -137,6 +138,7 @@ ColumnLayout {
txtNick.visible = true
}
}
*/
ScalingLabel { // ONION ADDRESS
id: lblOnion
@ -246,6 +248,7 @@ ColumnLayout {
onUpdateMyProfile: function(_nick, _onion, _image) {
nick = _nick
lblNick.text = _nick
onion = _onion
image = _image
}