~faenil/ubuntu-ui-toolkit/UbuntuTestCase_flick_flakiness_fix

« back to all changes in this revision

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

  • Committer: Andrea Bernabei
  • Date: 2016-02-09 21:30:24 UTC
  • mfrom: (1795.2.47 staging)
  • Revision ID: andrea.bernabei@canonical.com-20160209213024-txzjng3d5bewlu1l
merge staging

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
       \deprecated
67
67
       The background color of the tapped item in the panel.
68
68
      */
69
 
    property color panelHighlightColor: theme.palette.selected.background
 
69
    property color panelHighlightColor: theme.palette.highlighted.background
70
70
 
71
71
    /*!
72
72
       \deprecated
73
73
       The foreground color (icon and text) of actions in the panel.
74
74
      */
75
 
    property color panelForegroundColor: theme.palette.selected.backgroundText
 
75
    property color panelForegroundColor: styledItem.enabled
 
76
                                            ? theme.palette.normal.backgroundText
 
77
                                            : theme.palette.disabled.backgroundText
76
78
 
77
79
    /*!
78
80
      The text color of unselected sections and the section divider.
79
81
     */
80
 
    property color sectionColor: theme.palette.selected.backgroundText
 
82
    property color sectionColor: styledItem.enabled
 
83
                                    ? theme.palette.normal.backgroundText
 
84
                                    : theme.palette.disabled.backgroundText
81
85
 
82
86
    /*!
83
87
      The text color of the selected section.
84
88
     */
85
 
    property color selectedSectionColor: UbuntuColors.orange
 
89
    property color selectedSectionColor: styledItem.enabled
 
90
                                            ? theme.palette.selected.backgroundText
 
91
                                            : theme.palette.selectedDisabled.backgroundText
86
92
 
87
93
    /*!
88
94
      The background color of the pressed section.
89
95
     */
90
 
    property color sectionHighlightColor: theme.palette.selected.background
 
96
    property color sectionHighlightColor: theme.palette.highlighted.background
91
97
 
92
98
    implicitHeight: headerStyle.contentHeight + divider.height + sectionsItem.height
93
99