aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/SettingsListItem.qml13
-rw-r--r--components/TitleBar.qml41
2 files changed, 54 insertions, 0 deletions
diff --git a/components/SettingsListItem.qml b/components/SettingsListItem.qml
index d6a10ca6..7c778704 100644
--- a/components/SettingsListItem.qml
+++ b/components/SettingsListItem.qml
@@ -7,6 +7,7 @@ import "../components" as MoneroComponents
ColumnLayout {
id: settingsListItem
property alias iconText: iconLabel.text
+ property alias symbol: symbolText.text
property alias description: area.text
property alias title: header.text
property bool isLast: false
@@ -114,5 +115,17 @@ ColumnLayout {
settingsListItem.clicked()
}
}
+
+ MoneroComponents.TextPlain {
+ id: symbolText
+ anchors.right: parent.right
+ anchors.rightMargin: 44
+ anchors.verticalCenter: parent.verticalCenter
+ font.pixelSize: 12
+ font.bold: true
+ color: MoneroComponents.Style.menuButtonTextColor
+ visible: appWindow.ctrlPressed
+ themeTransition: false
+ }
}
}
diff --git a/components/TitleBar.qml b/components/TitleBar.qml
index ef04fdf4..1720c457 100644
--- a/components/TitleBar.qml
+++ b/components/TitleBar.qml
@@ -57,6 +57,7 @@ Rectangle {
signal minimizeClicked
signal languageClicked
signal closeWalletClicked
+ signal lockWalletClicked
state: "default"
states: [
@@ -91,6 +92,46 @@ Rectangle {
spacing: 0
anchors.fill: parent
+ // lock wallet
+ Rectangle {
+ id: btnLockWallet
+ color: "transparent"
+ Layout.preferredWidth: parent.height
+ Layout.preferredHeight: parent.height
+
+ Text {
+ text: FontAwesome.lock
+ font.family: FontAwesome.fontFamilySolid
+ font.pixelSize: 16
+ color: MoneroComponents.Style.defaultFontColor
+ font.styleName: "Solid"
+ anchors.verticalCenter: parent.verticalCenter
+ anchors.horizontalCenter: parent.horizontalCenter
+ opacity: 0.75
+ }
+
+ MoneroComponents.Tooltip {
+ id: btnLockWalletTooltip
+ anchors.fill: parent
+ text: qsTr("Lock this wallet") + translationManager.emptyString
+ }
+
+ MouseArea {
+ anchors.fill: parent
+ hoverEnabled: true
+ cursorShape: Qt.PointingHandCursor
+ onEntered: {
+ parent.color = MoneroComponents.Style.titleBarButtonHoverColor
+ btnLockWalletTooltip.tooltipPopup.open()
+ }
+ onExited: {
+ parent.color = "transparent"
+ btnLockWalletTooltip.tooltipPopup.close()
+ }
+ onClicked: root.lockWalletClicked(leftPanel.visible)
+ }
+ }
+
// collapse sidebar
Rectangle {
id: btnCloseWallet