diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-09-14 12:42:51 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-09-14 12:42:51 -0500 |
| commit | 120a62257fb5b38022114d687068c89088fb96c1 (patch) | |
| tree | 7401fc00d0aa8469473792fd754e64bb93b8187d /components | |
| parent | a1e416ee83183b6bbacb51b1e57f3f00eb8a3b3e (diff) | |
| parent | 5f81b573c0f50ddde5d214125048b65e4218f7f7 (diff) | |
| download | monzero-gui-120a62257fb5b38022114d687068c89088fb96c1.tar.gz monzero-gui-120a62257fb5b38022114d687068c89088fb96c1.tar.xz monzero-gui-120a62257fb5b38022114d687068c89088fb96c1.zip | |
Merge pull request #2376
5f81b57 TitleBar: show wallet name (selsta)
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 6cc5d9cc..fe4195bf 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; @@ -191,6 +192,7 @@ Rectangle { // monero logo Item { + visible: walletName.length === 0 Layout.fillWidth: true Layout.preferredHeight: parent.height @@ -218,6 +220,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" |
