From 5fe6b48517d0182e6378a84e349a1d0ab17f160a Mon Sep 17 00:00:00 2001 From: xiphon Date: Mon, 4 Nov 2019 21:40:45 +0000 Subject: [PATCH] Settings: fix 'Light theme' checkbox --- components/CheckBox.qml | 5 ++++- pages/settings/SettingsLayout.qml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/components/CheckBox.qml b/components/CheckBox.qml index 1fec83ea..99ea6416 100644 --- a/components/CheckBox.qml +++ b/components/CheckBox.qml @@ -40,6 +40,7 @@ Item { property string uncheckedIcon property int imgWidth: 13 property int imgHeight: 13 + property bool toggleOnClick: true property bool checked: false property alias background: backgroundRect.color property bool border: true @@ -51,7 +52,9 @@ Item { width: checkBoxLayout.width function toggle(){ - checkBox.checked = !checkBox.checked + if (checkBox.toggleOnClick) { + checkBox.checked = !checkBox.checked + } checkBox.clicked() } diff --git a/pages/settings/SettingsLayout.qml b/pages/settings/SettingsLayout.qml index 2874305a..185b7533 100644 --- a/pages/settings/SettingsLayout.qml +++ b/pages/settings/SettingsLayout.qml @@ -72,6 +72,7 @@ Rectangle { id: themeCheckbox checked: !MoneroComponents.Style.blackTheme text: qsTr("Light theme") + translationManager.emptyString + toggleOnClick: false onClicked: { MoneroComponents.Style.blackTheme = !MoneroComponents.Style.blackTheme; persistentSettings.blackTheme = MoneroComponents.Style.blackTheme;