New update to current version
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import qs.modules.common
|
||||
import qs.common
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -14,7 +14,7 @@ Item {
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.LeftButton
|
||||
onPressed: (event) => {
|
||||
GlobalStates.notificationPanelOpen = !GlobalStates.notificationPanelOpen;
|
||||
GlobalStates.notificationPanelOpen = !GlobalStates.notificationPanelOpen && NotificationService.amountNotifications > 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user