Skip to content
Permalink
Browse files

Settings: fix 'Light theme' checkbox

  • Loading branch information...
xiphon committed Nov 4, 2019
1 parent 7f7a392 commit 5fe6b48517d0182e6378a84e349a1d0ab17f160a
Showing with 5 additions and 1 deletion.
  1. +4 −1 components/CheckBox.qml
  2. +1 −0 pages/settings/SettingsLayout.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()
}

@@ -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;

0 comments on commit 5fe6b48

Please sign in to comment.
You can’t perform that action at this time.