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 {
Variants {
model: Quickshell.screens;
model: Quickshell.screens
PanelWindow {
required property var modelData
screen: modelData
@@ -85,6 +85,7 @@ Scope {
}
ClockWidget {
id: clock
Layout.alignment: Qt.AlignVCenter
Layout.fillHeight: true
Layout.fillWidth: false
}

View File

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

View File

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

View File

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

View File

@@ -6,11 +6,11 @@ import QtQuick
Singleton {
id: root
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 {
id: clock
precision: SystemClock.Seconds
precision: SystemClock.Minutes
}
}

View File

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

View File

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