diff options
| author | selsta <selsta@sent.at> | 2019-09-05 01:31:41 +0200 |
|---|---|---|
| committer | selsta <selsta@sent.at> | 2019-09-05 18:49:28 +0200 |
| commit | 5f81b573c0f50ddde5d214125048b65e4218f7f7 (patch) | |
| tree | 2ebe159738aa63e736cd36e5230db287efe09ec8 /components | |
| parent | a267712d100a9c514dd7de451356fe115b2090a9 (diff) | |
| download | monzero-gui-5f81b573c0f50ddde5d214125048b65e4218f7f7.tar.gz monzero-gui-5f81b573c0f50ddde5d214125048b65e4218f7f7.tar.xz monzero-gui-5f81b573c0f50ddde5d214125048b65e4218f7f7.zip | |
TitleBar: show wallet name
Diffstat (limited to 'components')
| -rw-r--r-- | components/TitleBar.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/components/TitleBar.qml b/components/TitleBar.qml index 272a3b88..8dd25553 100644 --- a/components/TitleBar.qml +++ b/components/TitleBar.qml @@ -43,6 +43,7 @@ Rectangle { property bool showMinimizeButton: true property bool showMaximizeButton: true property bool showCloseButton: true + property string walletName: "" height: { if(!persistentSettings.customDecorations || isMobile) return 0; @@ -189,6 +190,7 @@ Rectangle { // monero logo Item { + visible: walletName.length === 0 Layout.fillWidth: true Layout.preferredHeight: parent.height @@ -216,6 +218,22 @@ Rectangle { } } + Item { + visible: walletName.length > 0 + Layout.fillWidth: true + Layout.preferredHeight: parent.height + + MoneroComponents.TextPlain { + font.pixelSize: 20 + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + width: parent.width + height: parent.height + elide: Text.ElideRight + text: walletName + } + } + // minimize Rectangle { color: "transparent" |
