|
@ -27,11 +27,23 @@ ApplicationWindow |
|
|
id: toolbar |
|
|
id: toolbar |
|
|
RowLayout { |
|
|
RowLayout { |
|
|
anchors.fill: parent |
|
|
anchors.fill: parent |
|
|
|
|
|
|
|
|
ToolButton { |
|
|
ToolButton { |
|
|
text: qsTr("‹") |
|
|
text: qsTr("‹") |
|
|
enabled: stack.depth > 1 |
|
|
enabled: stack.depth > 1 |
|
|
onClicked: stack.pop() |
|
|
onClicked: stack.pop() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
|
|
text: stack.currentItem.title |
|
|
|
|
|
elide: Label.ElideRight |
|
|
|
|
|
horizontalAlignment: Qt.AlignHCenter |
|
|
|
|
|
verticalAlignment: Qt.AlignVCenter |
|
|
|
|
|
Layout.fillWidth: true |
|
|
|
|
|
font.pixelSize: constants.fontSizeMedium |
|
|
|
|
|
font.bold: true |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
Item { |
|
|
Item { |
|
|
visible: Network.isTestNet |
|
|
visible: Network.isTestNet |
|
|
width: column.width |
|
|
width: column.width |
|
@ -47,12 +59,13 @@ ApplicationWindow |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Column { |
|
|
ColumnLayout { |
|
|
id: column |
|
|
id: column |
|
|
|
|
|
spacing: 0 |
|
|
Image { |
|
|
Image { |
|
|
anchors.horizontalCenter: parent.horizontalCenter |
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
width: 16 |
|
|
Layout.preferredWidth: constants.iconSizeSmall |
|
|
height: 16 |
|
|
Layout.preferredHeight: constants.iconSizeSmall |
|
|
source: "../../icons/info.png" |
|
|
source: "../../icons/info.png" |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -60,28 +73,31 @@ ApplicationWindow |
|
|
id: networkNameLabel |
|
|
id: networkNameLabel |
|
|
text: Network.networkName |
|
|
text: Network.networkName |
|
|
color: Material.accentColor |
|
|
color: Material.accentColor |
|
|
font.pointSize: 5 |
|
|
font.pixelSize: constants.fontSizeXSmall |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Image { |
|
|
Image { |
|
|
Layout.preferredWidth: 16 |
|
|
Layout.preferredWidth: constants.iconSizeSmall |
|
|
Layout.preferredHeight: 16 |
|
|
Layout.preferredHeight: constants.iconSizeSmall |
|
|
source: Daemon.currentWallet.isUptodate ? "../../icons/status_connected.png" : "../../icons/status_lagging.png" |
|
|
source: Network.status == 'connecting' || Network.status == 'disconnected' |
|
|
|
|
|
? '../../icons/status_disconnected.png' : |
|
|
|
|
|
Daemon.currentWallet.isUptodate |
|
|
|
|
|
? '../../icons/status_connected.png' |
|
|
|
|
|
: '../../icons/status_lagging.png' |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Label { |
|
|
Rectangle { |
|
|
text: stack.currentItem.title |
|
|
color: 'transparent' |
|
|
elide: Label.ElideRight |
|
|
Layout.preferredWidth: constants.paddingSmall |
|
|
horizontalAlignment: Qt.AlignHCenter |
|
|
height: 1 |
|
|
verticalAlignment: Qt.AlignVCenter |
|
|
visible: !menuButton.visible |
|
|
Layout.fillWidth: true |
|
|
|
|
|
font.pixelSize: 14 |
|
|
|
|
|
font.bold: true |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ToolButton { |
|
|
ToolButton { |
|
|
|
|
|
id: menuButton |
|
|
|
|
|
visible: stack.currentItem.menu !== undefined && stack.currentItem.menu.count > 0 |
|
|
text: qsTr("⋮") |
|
|
text: qsTr("⋮") |
|
|
onClicked: { |
|
|
onClicked: { |
|
|
stack.currentItem.menu.open() |
|
|
stack.currentItem.menu.open() |
|
|