1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-28 09:31:37 +01:00

Merge pull request #3430

db0485c main: simplify blackTheme code (selsta)
This commit is contained in:
luigi1111 2021-04-29 14:07:24 -04:00
commit c3e88adc6d
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
4 changed files with 1 additions and 4 deletions

View File

@ -44,7 +44,6 @@ PlatformLabs.MenuBar {
text: MoneroComponents.Style.blackTheme ? qsTr("Light Theme") : qsTr("Dark Theme")
onTriggered: {
MoneroComponents.Style.blackTheme = !MoneroComponents.Style.blackTheme;
persistentSettings.blackTheme = MoneroComponents.Style.blackTheme;
}
}
PlatformLabs.MenuItem {

View File

@ -173,7 +173,6 @@ Rectangle {
onExited: parent.color = "transparent"
onClicked: {
MoneroComponents.Style.blackTheme = !MoneroComponents.Style.blackTheme;
persistentSettings.blackTheme = MoneroComponents.Style.blackTheme;
}
}
}

View File

@ -1423,7 +1423,7 @@ ApplicationWindow {
property bool lockOnUserInActivity: true
property int walletMode: 2
property int lockOnUserInActivityInterval: 10 // minutes
property bool blackTheme: true
property bool blackTheme: MoneroComponents.Style.blackTheme
property bool checkForUpdates: true
property bool autosave: true
property int autosaveMinutes: 10

View File

@ -89,7 +89,6 @@ Rectangle {
toggleOnClick: false
onClicked: {
MoneroComponents.Style.blackTheme = !MoneroComponents.Style.blackTheme;
persistentSettings.blackTheme = MoneroComponents.Style.blackTheme;
}
}