New update to current version
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import qs.modules.common
|
import qs.common
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user