2
0
mirror of https://github.com/status-im/status-desktop.git synced 2025-02-25 21:15:56 +00:00

refactor: fix UI devices settings layout

This commit is contained in:
Alexandra Betouni 2021-12-21 18:20:05 +02:00 committed by Sale Djenic
parent b5a591401e
commit b236bee5ca
2 changed files with 9 additions and 9 deletions
ui/app/AppLayouts/Profile

@ -56,7 +56,7 @@ QtObject {
// Not Refactored Yet
// property bool automaticMailserverSelection: profileModelInst.mailservers.automaticSelection
// Not Refactored Yet
// property bool devicesSetup: profileModelInst.devices.isSetup
property bool devicesSetup: false //profileModelInst.devices.isSetup
property bool mnemonicBackedUp: mnemonicModuleInst.isBackedUp
property bool messagesFromContactsOnly: profile.messagesFromContactsOnly

@ -26,13 +26,14 @@ Item {
Item {
id: firstTimeSetup
anchors.left: root.left
anchors.left: parent.left
anchors.leftMargin: Style.current.padding
anchors.top: parent.top
anchors.topMargin: 24
anchors.right: root.right
anchors.right: parent.right
anchors.rightMargin: Style.current.padding
visible: !root.store.devicesSetup
height: visible ? childrenRect.height : 0
StatusBaseText {
id: deviceNameLbl
@ -64,14 +65,14 @@ Item {
Item {
id: advertiseDeviceItem
anchors.left: root.left
anchors.left: parent.left
anchors.leftMargin: Style.current.padding
anchors.top: parent.top
anchors.top: firstTimeSetup.visible ? firstTimeSetup.bottom : parent.top
anchors.topMargin: Style.current.padding
anchors.right: root.right
anchors.right: parent.right
anchors.rightMargin: Style.current.padding
visible: root.store.devicesSetup
height: childrenRect.height
height: visible ? childrenRect.height : 0
Rectangle {
id: advertiseDevice
@ -146,7 +147,7 @@ Item {
id: deviceListItem
anchors.left: root.left
anchors.leftMargin: Style.current.padding
anchors.top: advertiseDeviceItem.bottom
anchors.top: advertiseDeviceItem.visible ? advertiseDeviceItem.bottom : parent.top
anchors.topMargin: Style.current.padding * 2
anchors.bottom: syncAllBtn.top
anchors.bottomMargin: Style.current.padding
@ -154,7 +155,6 @@ Item {
anchors.rightMargin: Style.current.padding
visible: root.store.devicesSetup
StatusBaseText {
id: deviceListLbl
//% "Paired devices"