on xenial help sign in
fix color of initially invisible items (like Bluetooth or Files)

the theme.palette.disabled.backgroundText color already alters the opacity of the icon, no need to further tune it down and thus making the indicator almost invisible

commitc74052edf3f4b7de5c1b9c341d81bcce06811963 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 16 Mar 2016, 22:31 (11 years ago) parent6906b41
2 files changed+1−8
qml/Panel/IndicatorItem.qml−7 tests/qmltests/Panel/tst_IndicatorItemRow.qml+1−1
qml/Panel/IndicatorItem.qml−7
@@ -113,13 +113,6 @@ IndicatorDelegate {
113113 source: modelData
114114 color: root.color
115115 Behavior on color { ColorAnimation { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing } }
116−
117− opacity: {
118− if (!expanded) return 1.0;
119− if (!selected) return 0.6;
120− return 1.0;
121− }
122− Behavior on opacity { NumberAnimation { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing } }
123116 }
124117 }
125118 }
tests/qmltests/Panel/tst_IndicatorItemRow.qml+1−1
@@ -39,7 +39,7 @@ IndicatorTest {
3939 color: "blue"
4040
4141 Rectangle {
42− color: "black"
42+ color: theme.palette.normal.background
4343 anchors.fill: indicatorsRow
4444 }
4545