Move notifications button to space drawer.

Since this means that the space drawer can no longer be hidden when there are no spaces,
also make it less empty by adding a button for creating new spaces.
More things will come in the future.

BUG: 479051
This commit is contained in:
Tobias Fella
2024-01-05 17:58:02 +01:00
parent dcc1935150
commit 4926488d49
3 changed files with 46 additions and 26 deletions

View File

@@ -129,24 +129,6 @@ Kirigami.Page {
topMargin: Math.round(Kirigami.Units.smallSpacing / 2)
KirigamiComponents.FloatingButton {
icon.name: "notifications"
text: i18n("View notifications")
anchors.right: parent.right
anchors.rightMargin: Kirigami.Units.largeSpacing
anchors.bottom: parent.bottom
anchors.bottomMargin: Kirigami.Units.largeSpacing
width: Kirigami.Units.gridUnit * 2
height: width
visible: !root.collapsed
QQC2.ToolTip.text: text
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
QQC2.ToolTip.visible: hovered
onClicked: pageStack.pushDialogLayer("qrc:/org/kde/neochat/qml/NotificationsView.qml", {connection: root.connection}, {
title: i18nc("@title", "Notifications")
});
}
header: QQC2.ItemDelegate {
width: visible ? ListView.view.width : 0
height: visible ? Kirigami.Units.gridUnit * 2 : 0