1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-25 10:47:19 +01:00

Settings: fix 'Light theme' checkbox

This commit is contained in:
xiphon 2019-11-04 21:40:45 +00:00
parent 7f7a39292c
commit 5fe6b48517
2 changed files with 5 additions and 1 deletions

View File

@ -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()
}

View File

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