Introduced Notification server, and added background thorugh quickshell

This commit is contained in:
2025-09-13 23:51:14 -04:00
parent 55a97da636
commit 7081a48426
13 changed files with 263 additions and 10 deletions

View File

@@ -29,7 +29,7 @@ Scope {
right: true
}
implicitHeight: 45
implicitHeight: Config.options.bar.height
RowLayout { // Left Section
id: leftSection

View File

@@ -33,7 +33,7 @@ Item {
} else if (event.button === Qt.ForwardButton) {
MprisController.shiftPlayer(1);
} else if (event.button === Qt.LeftButton) {
GlobalStates.mediaControlsOpen = !GlobalStates.mediaControlsOpen
GlobalStates.mediaControlsOpen = !GlobalStates.mediaControlsOpen;
}
}
}

View File

@@ -1,3 +1,4 @@
import qs
import qs.common
import qs.common.widgets
import QtQuick
@@ -9,6 +10,14 @@ Item {
height: parent.height
implicitWidth: rowLayout.implicitWidth
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton
onPressed: (event) => {
GlobalStates.notificationPanelOpen = !GlobalStates.notificationPanelOpen;
}
}
RowLayout {
id: rowLayout
@@ -19,9 +28,9 @@ Item {
Layout.alignment: Qt.AlignVCenter
font.pixelSize: Appearance.font.pixelSize.larger
color: Appearance.m3colors.m3error
text: "" + NotificationServer.amountNotifications
text: "" + NotificationService.amountNotifications
visible: {
NotificationServer.amountNotifications > 0
NotificationService.amountNotifications > 0
}
}
@@ -29,9 +38,9 @@ Item {
Layout.alignment: Qt.AlignVCenter
visible: true
fill: 1
text: NotificationServer.amountNotifications > 0 ? "notifications_unread" : "notifications"
text: NotificationService.amountNotifications > 0 ? "notifications_unread" : "notifications"
iconSize: Appearance.font.pixelSize.larger
color: NotificationServer.amountNotifications > 0 ? Appearance.m3colors.m3error : Appearance.m3colors.m3onSecondaryContainer
color: NotificationService.amountNotifications > 0 ? Appearance.m3colors.m3error : Appearance.m3colors.m3onSecondaryContainer
}
}
}