mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-25 12:05:54 +00:00
main: simplify blackTheme code
This commit is contained in:
parent
bc1131ce41
commit
db0485c600
4 changed files with 1 additions and 4 deletions
|
@ -44,7 +44,6 @@ PlatformLabs.MenuBar {
|
||||||
text: MoneroComponents.Style.blackTheme ? qsTr("Light Theme") : qsTr("Dark Theme")
|
text: MoneroComponents.Style.blackTheme ? qsTr("Light Theme") : qsTr("Dark Theme")
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
MoneroComponents.Style.blackTheme = !MoneroComponents.Style.blackTheme;
|
MoneroComponents.Style.blackTheme = !MoneroComponents.Style.blackTheme;
|
||||||
persistentSettings.blackTheme = MoneroComponents.Style.blackTheme;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PlatformLabs.MenuItem {
|
PlatformLabs.MenuItem {
|
||||||
|
|
|
@ -173,7 +173,6 @@ Rectangle {
|
||||||
onExited: parent.color = "transparent"
|
onExited: parent.color = "transparent"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
MoneroComponents.Style.blackTheme = !MoneroComponents.Style.blackTheme;
|
MoneroComponents.Style.blackTheme = !MoneroComponents.Style.blackTheme;
|
||||||
persistentSettings.blackTheme = MoneroComponents.Style.blackTheme;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
main.qml
2
main.qml
|
@ -1417,7 +1417,7 @@ ApplicationWindow {
|
||||||
property bool lockOnUserInActivity: true
|
property bool lockOnUserInActivity: true
|
||||||
property int walletMode: 2
|
property int walletMode: 2
|
||||||
property int lockOnUserInActivityInterval: 10 // minutes
|
property int lockOnUserInActivityInterval: 10 // minutes
|
||||||
property bool blackTheme: true
|
property bool blackTheme: MoneroComponents.Style.blackTheme
|
||||||
property bool checkForUpdates: true
|
property bool checkForUpdates: true
|
||||||
property bool autosave: true
|
property bool autosave: true
|
||||||
property int autosaveMinutes: 10
|
property int autosaveMinutes: 10
|
||||||
|
|
|
@ -89,7 +89,6 @@ Rectangle {
|
||||||
toggleOnClick: false
|
toggleOnClick: false
|
||||||
onClicked: {
|
onClicked: {
|
||||||
MoneroComponents.Style.blackTheme = !MoneroComponents.Style.blackTheme;
|
MoneroComponents.Style.blackTheme = !MoneroComponents.Style.blackTheme;
|
||||||
persistentSettings.blackTheme = MoneroComponents.Style.blackTheme;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue