on xenial help sign in
Make text-fields as heigh as buttons... make the summary align horizontally to the icon, if there's an icon but no body-text... avoid stating default values for items.
35eea29Mirco Müller
Notifications/Notification.qml+3
@@ -37,6 +37,7 @@ UbuntuShape {
37 implicitHeight: contentColumn.height + contentColumn.spacing * 2
37 implicitHeight: contentColumn.height + contentColumn.spacing * 2
38 color: Qt.rgba(0.132, 0.117, 0.109, 0.97)
38 color: Qt.rgba(0.132, 0.117, 0.109, 0.97)
39 opacity: 0
39 opacity: 0
40+ radius: "medium"
40
41
41 clip: true
42 clip: true
42
43
@@ -128,6 +129,8 @@ UbuntuShape {
128 id: labelColumn
129 id: labelColumn
129 width: parent.width - x
130 width: parent.width - x
130
131
132+ anchors.verticalCenter: (icon.visible && !bodyLabel.visible) ? icon.verticalCenter : null
133+
131 Label {
134 Label {
132 id: summaryLabel
135 id: summaryLabel
133
136
Notifications/NotificationMenuItemFactory.qml+2−4
@@ -53,7 +53,7 @@ Loader {
53 id: textfield
53 id: textfield
54
54
55 Column {
55 Column {
56− spacing: units.gu(.5)
56+ spacing: units.gu(2)
57
57
58 anchors.left: parent.left; anchors.right: parent.right
58 anchors.left: parent.left; anchors.right: parent.right
59
59
@@ -63,8 +63,6 @@ Loader {
63 }
63 }
64
64
65 Label {
65 Label {
66− fontSize: "medium"
67− color: "white"
68 text: menuData.label
66 text: menuData.label
69 }
67 }
70
68
@@ -72,7 +70,7 @@ Loader {
72 id: textfield
70 id: textfield
73
71
74 anchors.left: parent.left; anchors.right: parent.right
72 anchors.left: parent.left; anchors.right: parent.right
75−
73+ height: units.gu(5)
76 onTextChanged: {
74 onTextChanged: {
77 menuModel.changeState(menuIndex, text);
75 menuModel.changeState(menuIndex, text);
78 }
76 }