Commit f6f04651 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[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
parent 70611825
......@@ -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
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment