Changeset 745e299 in subsurface


Ignore:
Timestamp:
Jul 15, 2017, 7:33:52 AM (5 days ago)
Author:
Joakim Bygdell <j.bygdell@…>
Branches:
master
Children:
c0a9426
Parents:
1f203508
git-author:
Joakim Bygdell <j.bygdell@…> (07/15/17 07:33:50)
git-committer:
Joakim Bygdell <j.bygdell@…> (07/15/17 07:33:52)
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mobile-widgets/qml/main.qml

    r1f203508 r745e299  
    325325
    326326        function blueTheme() {
     327                Material.theme = Material.Light
     328                Material.accent = subsurfaceTheme.blueDarkerPrimaryColor
    327329                subsurfaceTheme.currentTheme = "Blue"
    328330                subsurfaceTheme.darkerPrimaryColor = subsurfaceTheme.blueDarkerPrimaryColor
     
    340342
    341343        function pinkTheme() {
     344                Material.theme = Material.Light
     345                Material.accent = subsurfaceTheme.pinkDarkerPrimaryColor
    342346                subsurfaceTheme.currentTheme = "Pink"
    343347                subsurfaceTheme.darkerPrimaryColor = subsurfaceTheme.pinkDarkerPrimaryColor
     
    355359
    356360        function darkTheme() {
     361                Material.theme = Material.Dark
     362                Material.accent = subsurfaceTheme.darkDarkerPrimaryColor
    357363                subsurfaceTheme.currentTheme = "Dark"
    358364                subsurfaceTheme.darkerPrimaryColor = subsurfaceTheme.darkDarkerPrimaryColor
Note: See TracChangeset for help on using the changeset viewer.