on xenial help sign in
add expandable chevron, simplify height handling
b8df2bfLukáš Tinkl
qml/Notifications/Notification.qml+10−11
@@ -118,17 +118,6 @@ StyledItem {
118 }
118 }
119 }
119 }
120
120
121− states:[
122− State {
123− name: "contracted"
124− PropertyChanges {target: notification; height: topRow.childrenRect.height + notification.margins * 2}
125− },
126− State {
127− name: "expanded"
128− PropertyChanges {target: notification; height: implicitHeight}
129− }
130− ]
131−
132 visible: type !== Notification.PlaceHolder
121 visible: type !== Notification.PlaceHolder
133
122
134 BorderImage {
123 BorderImage {
@@ -314,6 +303,16 @@ StyledItem {
314 visible: type === Notification.SnapDecision && notification.state !== "contracted"
303 visible: type === Notification.SnapDecision && notification.state !== "contracted"
315 }
304 }
316
305
306+ Icon {
307+ id: chevron
308+ name: "go-down"
309+ visible: type === Notification.SnapDecision && notification.state === "contracted"
310+ width: height
311+ height: visible ? units.gu(1.5) : 0
312+ anchors.horizontalCenter: parent.horizontalCenter
313+ color: theme.palette.normal.backgroundTertiaryText
314+ }
315+
317 ShapedIcon {
316 ShapedIcon {
318 id: centeredIcon
317 id: centeredIcon
319 objectName: "centeredIcon"
318 objectName: "centeredIcon"