Merge pull request #2428

5fe6b48 Settings: fix 'Light theme' checkbox (xiphon)
pull/2/head
luigi1111 5 years ago
commit f948d0e214
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

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