on xenial help sign in
add expandable chevron, simplify height handling
commitb8df2bfb83148c160b7e3b629ab11406a6bf92c5 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 6 Apr 2016, 14:08 (11 years ago) parentcc91632
1 file changed+10−11
qml/Notifications/Notification.qml+10−11
qml/Notifications/Notification.qml+10−11
@@ -118,17 +118,6 @@ StyledItem {
118118 }
119119 }
120120
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−
132121 visible: type !== Notification.PlaceHolder
133122
134123 BorderImage {
@@ -314,6 +303,16 @@ StyledItem {
314303 visible: type === Notification.SnapDecision && notification.state !== "contracted"
315304 }
316305
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+
317316 ShapedIcon {
318317 id: centeredIcon
319318 objectName: "centeredIcon"