on xenial help sign in
fix color of initially invisible items (like Bluetooth or Files)
c74052eLukáš Tinkl
qml/Panel/IndicatorItem.qml−7
@@ -113,13 +113,6 @@ IndicatorDelegate {
113 source: modelData
113 source: modelData
114 color: root.color
114 color: root.color
115 Behavior on color { ColorAnimation { duration: UbuntuAnimation.FastDuration; easing: UbuntuAnimation.StandardEasing } }
115 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 } }
123 }
116 }
124 }
117 }
125 }
118 }
tests/qmltests/Panel/tst_IndicatorItemRow.qml+1−1
@@ -39,7 +39,7 @@ IndicatorTest {
39 color: "blue"
39 color: "blue"
40
40
41 Rectangle {
41 Rectangle {
42− color: "black"
42+ color: theme.palette.normal.background
43 anchors.fill: indicatorsRow
43 anchors.fill: indicatorsRow
44 }
44 }
45
45