diff options
author | Joakim Bygdell <j.bygdell@gmail.com> | 2017-07-15 16:33:50 +0200 |
---|---|---|
committer | Joakim Bygdell <j.bygdell@gmail.com> | 2017-07-15 16:33:52 +0200 |
commit | 745e29958aabda62f3c45cd1cb9e81cab117bba9 (patch) | |
tree | b6e50e9547a11ebbd40aa542c60a85c8081bb157 | |
parent | 1f20350849f0da83612a5d061f76dcf465fb33cd (diff) | |
download | subsurface-745e29958aabda62f3c45cd1cb9e81cab117bba9.tar.gz |
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>
-rw-r--r-- | mobile-widgets/qml/main.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml index d607eb4ac..6851e78e7 100644 --- a/mobile-widgets/qml/main.qml +++ b/mobile-widgets/qml/main.qml @@ -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 |