[Notifications] Remove "Notifications" heading

It is redundant with the title added by system tray. Even when added standalone it is kind of obvious that this is notifications.
The clear button is moved next to the configure button.

Differential Revision: https://phabricator.kde.org/D21361
wilder-5.19
Kai Uwe Broulik 7 years ago
parent 70611825b1
commit f6f0465165
  1. 34
      applets/notifications/package/contents/ui/FullRepresentation.qml

@ -71,6 +71,7 @@ ColumnLayout{
RowLayout {
Layout.fillWidth: true
spacing: 0
RowLayout {
id: dndRow
@ -190,6 +191,13 @@ ColumnLayout{
Layout.fillWidth: true
}
PlasmaComponents.ToolButton {
iconName: "edit-clear-history"
tooltip: i18n("Clear History")
visible: plasmoid.action("clearHistory").visible
onClicked: action_clearHistory()
}
PlasmaComponents.ToolButton {
iconName: "configure"
// remove mnemonics
@ -340,24 +348,6 @@ ColumnLayout{
prefix: "pressed"
}
header: RowLayout {
width: list.width
PlasmaExtras.Heading {
Layout.fillWidth: true
level: 3
opacity: 0.6
text: list.count === 0 ? i18n("No unread notifications.") : i18n("Notifications")
}
PlasmaComponents.ToolButton {
iconName: "edit-clear-history"
tooltip: i18n("Clear History")
visible: plasmoid.action("clearHistory").visible
onClicked: action_clearHistory()
}
}
add: Transition {
SequentialAnimation {
PauseAnimation { duration: units.longDuration }
@ -557,6 +547,14 @@ ColumnLayout{
}
}
}
PlasmaExtras.Heading {
width: list.width
level: 3
opacity: 0.6
text: i18n("No unread notifications.")
visible: list.count === 0
}
}
}
}

Loading…
Cancel
Save