diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-09-24 11:15:28 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-09-24 11:15:28 -0500 |
| commit | d3b81cb6f8b9e79bc8bda675f556d5288916af56 (patch) | |
| tree | 6b639eab04522a849c954e2dd3c024a474bb98ba /components | |
| parent | 047dee4eb401b35684c86b306ab27b812a0ee80f (diff) | |
| parent | c87ebf1f31b1b81dfadc7ec2d63a9a0b7fe7e9a4 (diff) | |
| download | monzero-gui-d3b81cb6f8b9e79bc8bda675f556d5288916af56.tar.gz monzero-gui-d3b81cb6f8b9e79bc8bda675f556d5288916af56.tar.xz monzero-gui-d3b81cb6f8b9e79bc8bda675f556d5288916af56.zip | |
Merge pull request #2391
4905341 TitleBar: add close wallet button (selsta)
c87ebf1 TitleBar: slightly reduce size of moon icon (selsta)
Diffstat (limited to 'components')
| -rw-r--r-- | components/Style.qml | 3 | ||||
| -rw-r--r-- | components/TitleBar.qml | 29 |
2 files changed, 13 insertions, 19 deletions
diff --git a/components/Style.qml b/components/Style.qml index 37c2f9ce..43b2de5c 100644 --- a/components/Style.qml +++ b/components/Style.qml @@ -51,7 +51,6 @@ QtObject { property string titleBarBackgroundBorderColor: blackTheme ? _b_titleBarBackgroundBorderColor : _w_titleBarBackgroundBorderColor property string titleBarLogoSource: blackTheme ? _b_titleBarLogoSource : _w_titleBarLogoSource property string titleBarMinimizeSource: blackTheme ? _b_titleBarMinimizeSource : _w_titleBarMinimizeSource - property string titleBarExpandSource: blackTheme ? _b_titleBarExpandSource : _w_titleBarExpandSource property string titleBarFullscreenSource: blackTheme ? _b_titleBarFullscreenSource : _w_titleBarFullscreenSource property string titleBarCloseSource: blackTheme ? _b_titleBarCloseSource : _w_titleBarCloseSource property string titleBarButtonHoverColor: blackTheme ? _b_titleBarButtonHoverColor : _w_titleBarButtonHoverColor @@ -108,7 +107,6 @@ QtObject { property string _b_titleBarBackgroundBorderColor: "#2f2f2f" property string _b_titleBarLogoSource: "qrc:///images/titlebarLogo.png" property string _b_titleBarMinimizeSource: "qrc:///images/minimize.svg" - property string _b_titleBarExpandSource: "qrc:///images/sidebar.svg" property string _b_titleBarFullscreenSource: "qrc:///images/fullscreen.svg" property string _b_titleBarCloseSource: "qrc:///images/close.svg" property string _b_titleBarButtonHoverColor: "#10FFFFFF" @@ -165,7 +163,6 @@ QtObject { property string _w_titleBarBackgroundBorderColor: "#DEDEDE" property string _w_titleBarLogoSource: "qrc:///images/themes/white/titlebarLogo.png" property string _w_titleBarMinimizeSource: "qrc:///images/themes/white/minimize.svg" - property string _w_titleBarExpandSource: "qrc:///images/themes/white/expand.svg" property string _w_titleBarFullscreenSource: "qrc:///images/themes/white/fullscreen.svg" property string _w_titleBarCloseSource: "qrc:///images/themes/white/close.svg" property string _w_titleBarButtonHoverColor: "#11000000" diff --git a/components/TitleBar.qml b/components/TitleBar.qml index 034d242a..cf35f952 100644 --- a/components/TitleBar.qml +++ b/components/TitleBar.qml @@ -38,7 +38,6 @@ import "effects/" as MoneroEffects Rectangle { id: root property int mouseX: 0 - property bool basicButtonVisible: false property bool customDecorations: persistentSettings.customDecorations property bool showMinimizeButton: true property bool showMaximizeButton: true @@ -57,18 +56,18 @@ Rectangle { signal maximizeClicked signal minimizeClicked signal languageClicked - signal goToBasicVersion(bool yes) + signal closeWalletClicked state: "default" states: [ State { name: "default"; - PropertyChanges { target: btnSidebarCollapse; visible: true} + PropertyChanges { target: btnCloseWallet; visible: true} PropertyChanges { target: btnLanguageToggle; visible: true} }, State { // show only theme switcher and window controls name: "essentials"; - PropertyChanges { target: btnSidebarCollapse; visible: false} + PropertyChanges { target: btnCloseWallet; visible: false} PropertyChanges { target: btnLanguageToggle; visible: false} } ] @@ -94,22 +93,20 @@ Rectangle { // collapse sidebar Rectangle { - id: btnSidebarCollapse - visible: root.basicButtonVisible + id: btnCloseWallet color: "transparent" Layout.preferredWidth: parent.height Layout.preferredHeight: parent.height - MoneroEffects.ImageMask { + + Text { + text: FontAwesome.signOutAlt + font.family: FontAwesome.fontFamilySolid + font.pixelSize: 16 + color: MoneroComponents.Style.defaultFontColor + font.styleName: "Solid" anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter - height: 14 - width: 14 - image: MoneroComponents.Style.titleBarExpandSource - color: MoneroComponents.Style.defaultFontColor - fontAwesomeFallbackIcon: FontAwesome.cube - fontAwesomeFallbackSize: 16 - fontAwesomeFallbackOpacity: MoneroComponents.Style.blackTheme ? 1.0 : 0.9 opacity: 0.75 } @@ -119,7 +116,7 @@ Rectangle { cursorShape: Qt.PointingHandCursor onEntered: parent.color = MoneroComponents.Style.titleBarButtonHoverColor onExited: parent.color = "transparent" - onClicked: root.goToBasicVersion(leftPanel.visible) + onClicked: root.closeWalletClicked(leftPanel.visible) } } @@ -161,7 +158,7 @@ Rectangle { text: FontAwesome.moonO font.family: MoneroComponents.Style.blackTheme ? FontAwesome.fontFamilySolid : FontAwesome.fontFamily font.styleName: MoneroComponents.Style.blackTheme ? "Solid" : "Regular" - font.pixelSize: 16 + font.pixelSize: 15 color: MoneroComponents.Style.defaultFontColor anchors.verticalCenter: parent.verticalCenter anchors.horizontalCenter: parent.horizontalCenter |
