New update to current version

This commit is contained in:
2026-03-12 00:10:08 -04:00
parent fbd7836ffd
commit 79f8a99c86
8 changed files with 252 additions and 253 deletions

View File

@@ -7,7 +7,7 @@ import qs.common.widgets
Scope { Scope {
Variants { Variants {
model: Quickshell.screens; model: Quickshell.screens
PanelWindow { PanelWindow {
required property var modelData required property var modelData
screen: modelData screen: modelData
@@ -85,6 +85,7 @@ Scope {
} }
ClockWidget { ClockWidget {
id: clock id: clock
Layout.alignment: Qt.AlignVCenter
Layout.fillHeight: true Layout.fillHeight: true
Layout.fillWidth: false Layout.fillWidth: false
} }

View File

@@ -1,4 +1,4 @@
import qs.modules.common import qs.common
import QtQuick import QtQuick
import QtQuick.Layouts import QtQuick.Layouts

View File

@@ -25,7 +25,7 @@ Item {
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
acceptedButtons: Qt.MiddleButton | Qt.BackButton | Qt.ForwardButton | Qt.RightButton | Qt.LeftButton acceptedButtons: Qt.MiddleButton | Qt.BackButton | Qt.ForwardButton | Qt.RightButton | Qt.LeftButton
onPressed: (event) => { onPressed: event => {
if (event.button === Qt.MiddleButton) { if (event.button === Qt.MiddleButton) {
MprisController.activePlayer().togglePlaying(); MprisController.activePlayer().togglePlaying();
} else if (event.button === Qt.BackButton) { } else if (event.button === Qt.BackButton) {
@@ -46,7 +46,7 @@ Item {
visible: MprisController.hasPlayers visible: MprisController.hasPlayers
CircularProgress { CircularProgress {
id: circularProgress id: circularProgress
visible: MprisController.hasPlayers && MprisController.activePlayer().lengthSupported visible: false && MprisController.hasPlayers && MprisController.activePlayer().lengthSupported
Layout.alignment: Qt.AlignVCenter Layout.alignment: Qt.AlignVCenter
Layout.leftMargin: rowLayout.spacing Layout.leftMargin: rowLayout.spacing
lineWidth: 2 lineWidth: 2

View File

@@ -14,7 +14,7 @@ Item {
anchors.fill: parent anchors.fill: parent
acceptedButtons: Qt.LeftButton acceptedButtons: Qt.LeftButton
onPressed: (event) => { onPressed: (event) => {
GlobalStates.notificationPanelOpen = !GlobalStates.notificationPanelOpen; GlobalStates.notificationPanelOpen = !GlobalStates.notificationPanelOpen && NotificationService.amountNotifications > 0;
} }
} }

View File

@@ -6,11 +6,11 @@ import QtQuick
Singleton { Singleton {
id: root id: root
readonly property string time: { readonly property string time: {
Qt.formatDateTime(clock.date, "ddd, MMM dd hh:mm:ss AP") Qt.formatDateTime(clock.date, "ddd, MMM dd hh:mm AP");
} }
SystemClock { SystemClock {
id: clock id: clock
precision: SystemClock.Seconds precision: SystemClock.Minutes
} }
} }

View File

@@ -17,18 +17,12 @@ Scope {
onTriggered: GlobalStates.notificationPanelOpen = false onTriggered: GlobalStates.notificationPanelOpen = false
} }
Timer {
id: quickHideTimer
interval: 1
onTriggered: GlobalStates.notificationPanelOpen = false
}
Loader { Loader {
id: notificationPanelLoader id: notificationPanelLoader
active: GlobalStates.notificationPanelOpen active: GlobalStates.notificationPanelOpen
onActiveChanged: { onActiveChanged: {
if (notificationPanelLoader.active & NotificationService.amountNotifications == 0) { if (notificationPanelLoader.active) {
quickHideTimer.restart(); hideTimer.restart();
} }
} }

View File

@@ -5,6 +5,7 @@ import Quickshell.Services.Pipewire
import Quickshell.Widgets import Quickshell.Widgets
import qs import qs
import qs.common import qs.common
import qs.common.widgets
Scope { Scope {
id: root id: root
@@ -71,10 +72,13 @@ Scope {
rightMargin: 15 rightMargin: 15
} }
IconImage { MaterialSymbol {
implicitSize: 30 iconSize: 30
visible: true
fill: 1
// comes from Quickshell.Widgets // comes from Quickshell.Widgets
source: Quickshell.iconPath("audio-volume-high-symbolic") text: "volume_up"
color: Appearance.m3colors.m3onSecondaryContainer
} }
Rectangle { Rectangle {