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

« back to all changes in this revision

Viewing changes to src/Ubuntu/Components/Themes/Ambiance/1.3/ProgressBarStyle.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:
20
20
Item {
21
21
    id: progressBarStyle
22
22
 
23
 
    property color foregroundColor: theme.palette.normal.activity
24
 
    property color foregroundTextColor: theme.palette.normal.activityText
25
 
    property color backgroundColor: theme.palette.normal.base
26
 
    property color backgroundTextColor: theme.palette.normal.baseText
 
23
    property color foregroundColor: styledItem.enabled
 
24
                                        ? theme.palette.normal.activity
 
25
                                        : theme.palette.disabled.activity
 
26
    property color foregroundTextColor: styledItem.enabled
 
27
                                            ? theme.palette.normal.activityText
 
28
                                            : theme.palette.disabled.activityText
 
29
    property color backgroundColor: styledItem.enabled
 
30
                                        ? theme.palette.normal.base
 
31
                                        : theme.palette.disabled.base
 
32
    property color backgroundTextColor: styledItem.enabled
 
33
                                            ? theme.palette.normal.baseText
 
34
                                            : theme.palette.disabled.baseText
27
35
 
28
36
    property var progressBar: styledItem
29
37