~ubuntu-sdk-team/ubuntu-ui-toolkit/bottomKeyboard

« back to all changes in this revision

Viewing changes to src/Ubuntu/Components/Themes/Ambiance/1.3/SwitchStyle.qml

  • Committer: Tarmac
  • Author(s): Zsombor Egri
  • Date: 2016-01-27 17:49:36 UTC
  • mfrom: (1814.2.23 paleette2)
  • Revision ID: tarmac-20160127174936-3bcz1l7w5wlibq05
Palette fix. Update components to use the palette. Fixes: https://bugs.launchpad.net/bugs/1495477.

Approved by ubuntu-sdk-build-bot, Tim Peeters, Christian Dywan, Zoltan Balogh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    /*!
34
34
      The background color of the switch.
35
35
     */
36
 
    property color backgroundColor: styledItem.enabled ? theme.palette.normal.base : theme.palette.inactive.base
 
36
    property color backgroundColor: styledItem.enabled ? theme.palette.normal.base : theme.palette.disabled.base
37
37
 
38
38
    /*!
39
39
      The background color of the checked switch.
40
40
      */
41
 
    property color checkedBackgroundColor: styledItem.enabled ? theme.palette.normal.positive : theme.palette.inactive.base
 
41
    property color checkedBackgroundColor: styledItem.enabled ? theme.palette.normal.positive : theme.palette.disabled.base
42
42
    /*!
43
43
      The background color of the thumb.
44
44
     */
45
 
    property color thumbColor: styledItem.enabled ? theme.palette.normal.raised : theme.palette.inactive.raised
 
45
    property color thumbColor: styledItem.enabled ? theme.palette.normal.raised : theme.palette.disabled.raised
46
46
 
47
47
    FocusShape {
48
48
    }