Streamline notifications plasmoid

- Get rid of hardcoded sizes (was quite cramped here)
- Get rid of huge "Transfers" heading. It was the same size as the systray title and added little value

REVIEW: 119719
wilder-5.14
Kai Uwe Broulik 12 years ago
parent 13af6cd3b6
commit 80dcc16861
  1. 7
      applets/notifications/package/contents/ui/Jobs.qml
  2. 10
      applets/notifications/package/contents/ui/NotificationDelegate.qml

@ -91,11 +91,6 @@ Column {
}
}
PlasmaExtras.Heading {
visible: jobsRepeater.count > 0 && notifications && notifications.count > 0
text: i18n("Transfers")
}
Item {
visible: jobsRepeater.count > 3
@ -120,4 +115,4 @@ Column {
toolIconSize: notificationsApplet.toolIconSize
}
}
}
}

@ -25,7 +25,7 @@ PlasmaComponents.ListItem {
id: notificationItem
width: popupFlickable.width
property int layoutSpacing: 4
property int layoutSpacing: units.smallSpacing
property int toolIconSize: units.iconSizes.smallMedium
opacity: 1-Math.abs(x)/width
@ -145,7 +145,7 @@ PlasmaComponents.ListItem {
anchors {
top: parent.top
right: closeButton.left
rightMargin: 5
rightMargin: units.smallSpacing
}
width: notificationItem.toolIconSize
height: width
@ -207,8 +207,8 @@ PlasmaComponents.ListItem {
left: appIconItem.right
right: actionsColumn.left
verticalCenter: parent.verticalCenter
leftMargin: 6
rightMargin: 6
leftMargin: units.smallSpacing * 2
rightMargin: units.smallSpacing * 2
}
height: bodyText.paintedHeight
@ -248,7 +248,7 @@ PlasmaComponents.ListItem {
id: actionsColumn
anchors {
right: parent.right
rightMargin: 6
rightMargin: units.smallSpacing
verticalCenter: parent.verticalCenter
}

Loading…
Cancel
Save