mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: define the material accent colors for each theme
THe editable textboxes rely on the material theme to set the correct colors. This sets the appropriate colors for each theme. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
1f20350849
commit
745e29958a
1 changed files with 6 additions and 0 deletions
|
@ -324,6 +324,8 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
|||
}
|
||||
|
||||
function blueTheme() {
|
||||
Material.theme = Material.Light
|
||||
Material.accent = subsurfaceTheme.blueDarkerPrimaryColor
|
||||
subsurfaceTheme.currentTheme = "Blue"
|
||||
subsurfaceTheme.darkerPrimaryColor = subsurfaceTheme.blueDarkerPrimaryColor
|
||||
subsurfaceTheme.darkerPrimaryTextColor= subsurfaceTheme.blueDarkerPrimaryTextColor
|
||||
|
@ -339,6 +341,8 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
|||
}
|
||||
|
||||
function pinkTheme() {
|
||||
Material.theme = Material.Light
|
||||
Material.accent = subsurfaceTheme.pinkDarkerPrimaryColor
|
||||
subsurfaceTheme.currentTheme = "Pink"
|
||||
subsurfaceTheme.darkerPrimaryColor = subsurfaceTheme.pinkDarkerPrimaryColor
|
||||
subsurfaceTheme.darkerPrimaryTextColor = subsurfaceTheme.pinkDarkerPrimaryTextColor
|
||||
|
@ -354,6 +358,8 @@ if you have network connectivity and want to sync your data to cloud storage."),
|
|||
}
|
||||
|
||||
function darkTheme() {
|
||||
Material.theme = Material.Dark
|
||||
Material.accent = subsurfaceTheme.darkDarkerPrimaryColor
|
||||
subsurfaceTheme.currentTheme = "Dark"
|
||||
subsurfaceTheme.darkerPrimaryColor = subsurfaceTheme.darkDarkerPrimaryColor
|
||||
subsurfaceTheme.darkerPrimaryTextColor= subsurfaceTheme.darkDarkerPrimaryTextColor
|
||||
|
|
Loading…
Add table
Reference in a new issue