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.
commit35eea296594281927a89539ac9702962ebaa3893
authorMirco Müller <mirco.mueller@ubuntu.com>
dateMon 7 Oct 2013, 16:06 (13 years ago)
parent7b61e35
Notifications/Notification.qml+3
@@ -37,6 +37,7 @@ UbuntuShape {
3737 implicitHeight: contentColumn.height + contentColumn.spacing * 2
3838 color: Qt.rgba(0.132, 0.117, 0.109, 0.97)
3939 opacity: 0
40+ radius: "medium"
4041
4142 clip: true
4243
@@ -128,6 +129,8 @@ UbuntuShape {
128129 id: labelColumn
129130 width: parent.width - x
130131
132+ anchors.verticalCenter: (icon.visible && !bodyLabel.visible) ? icon.verticalCenter : null
133+
131134 Label {
132135 id: summaryLabel
133136
Notifications/NotificationMenuItemFactory.qml+2−4
@@ -53,7 +53,7 @@ Loader {
5353 id: textfield
5454
5555 Column {
56− spacing: units.gu(.5)
56+ spacing: units.gu(2)
5757
5858 anchors.left: parent.left; anchors.right: parent.right
5959
@@ -63,8 +63,6 @@ Loader {
6363 }
6464
6565 Label {
66− fontSize: "medium"
67− color: "white"
6866 text: menuData.label
6967 }
7068
@@ -72,7 +70,7 @@ Loader {
7270 id: textfield
7371
7472 anchors.left: parent.left; anchors.right: parent.right
75−
73+ height: units.gu(5)
7674 onTextChanged: {
7775 menuModel.changeState(menuIndex, text);
7876 }