From f3698b1b20d36dd530e8ad6972faefc3457d6e0a Mon Sep 17 00:00:00 2001 From: Sridou Date: Fri, 7 Nov 2025 21:57:09 +0530 Subject: [PATCH 1/9] added IPC call for calendar --- Services/IPCService.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Services/IPCService.qml b/Services/IPCService.qml index e7175219..6788b02c 100644 --- a/Services/IPCService.qml +++ b/Services/IPCService.qml @@ -35,6 +35,16 @@ Item { } } + IpcHandler { + target: "calendar" + function toggle() { + root.withTargetScreen(screen => { + var calendarPanel = PanelService.getPanel("calendarPanel", screen) + calendarPanel.toggle(null, "Clock") + }) + } + } + IpcHandler { target: "notifications" function toggleHistory() { From 74b2c302970ffe18dfa9c3b89a5fd9189120b154 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Fri, 7 Nov 2025 19:34:37 +0100 Subject: [PATCH 2/9] Notification: fix notification popup out of screen issue --- Modules/Notification/Notification.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index 69ce1a65..a0dc4849 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -86,8 +86,8 @@ Variants { // Margins for PanelWindow (not anchors.topMargin!) margins.top: isTop ? Style.marginM + barOffset : 0 margins.bottom: isBottom ? Style.marginM + barOffset : 0 - margins.left: isLeft ? -Style.marginXL * 1.65 + barOffset : 0 - margins.right: isRight ? -Style.marginXL * 1.65 + barOffset : 0 + margins.left: isLeft ? Style.marginM + barOffset : 0 + margins.right: isRight ? Style.marginM + barOffset : 0 implicitWidth: notifWidth implicitHeight: notificationStack.implicitHeight + Style.marginL From bfb20df2cdc6a5436b43096d12f23df3e2ec966c Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Fri, 7 Nov 2025 19:45:33 +0100 Subject: [PATCH 3/9] AboutTab: fix centering of contributors --- Modules/Panels/Settings/Tabs/AboutTab.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Panels/Settings/Tabs/AboutTab.qml b/Modules/Panels/Settings/Tabs/AboutTab.qml index 919525f8..3bd64a45 100644 --- a/Modules/Panels/Settings/Tabs/AboutTab.qml +++ b/Modules/Panels/Settings/Tabs/AboutTab.qml @@ -179,8 +179,8 @@ ColumnLayout { } RowLayout { - anchors.fill: parent - anchors.margins: Style.marginS + anchors.centerIn: parent + width: parent.width - (Style.marginS * 2) spacing: Style.marginM Item { From 2ad51bb67dffbec397faa12c636c373b7f540ef4 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Fri, 7 Nov 2025 19:47:49 +0100 Subject: [PATCH 4/9] OSD: add proper handling for volume overdrive --- Modules/OSD/OSD.qml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/Modules/OSD/OSD.qml b/Modules/OSD/OSD.qml index 64549d45..0cc39773 100644 --- a/Modules/OSD/OSD.qml +++ b/Modules/OSD/OSD.qml @@ -73,17 +73,29 @@ Variants { return 0 } + // Get maximum value for current OSD type + function getMaxValue() { + if (currentOSDType === "volume" || currentOSDType === "inputVolume") { + return Settings.data.audio.volumeOverdrive ? 1.5 : 1.0 + } else if (currentOSDType === "brightness") { + return 1.0 + } + return 1.0 + } + // Get display percentage function getDisplayPercentage() { if (currentOSDType === "volume") { if (isMuted) return "0%" - const pct = Math.round(Math.min(1.0, currentVolume) * 100) + const max = getMaxValue() + const pct = Math.round(Math.min(max, currentVolume) * 100) return pct + "%" } else if (currentOSDType === "inputVolume") { if (isInputMuted) return "0%" - const pct = Math.round(Math.min(1.0, currentInputVolume) * 100) + const max = getMaxValue() + const pct = Math.round(Math.min(max, currentInputVolume) * 100) return pct + "%" } else if (currentOSDType === "brightness") { const pct = Math.round(Math.min(1.0, currentBrightness) * 100) @@ -304,7 +316,7 @@ Variants { anchors.left: parent.left anchors.top: parent.top anchors.bottom: parent.bottom - width: parent.width * Math.min(1.0, root.getCurrentValue()) + width: parent.width * Math.min(1.0, root.getCurrentValue() / root.getMaxValue()) radius: parent.radius color: root.getProgressColor() @@ -393,7 +405,7 @@ Variants { anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom - height: parent.height * Math.min(1.0, root.getCurrentValue()) + height: parent.height * Math.min(1.0, root.getCurrentValue() / root.getMaxValue()) radius: parent.radius color: root.getProgressColor() From 493a1b7f65498042868670973567b7bed6edf8e0 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Fri, 7 Nov 2025 20:03:30 +0100 Subject: [PATCH 5/9] WallpaperPanel: adjust scrollbar style --- Modules/Panels/Settings/Tabs/WallpaperTab.qml | 1 + Modules/Panels/Wallpaper/WallpaperPanel.qml | 45 +++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/Modules/Panels/Settings/Tabs/WallpaperTab.qml b/Modules/Panels/Settings/Tabs/WallpaperTab.qml index 018ac7d7..6fb57733 100644 --- a/Modules/Panels/Settings/Tabs/WallpaperTab.qml +++ b/Modules/Panels/Settings/Tabs/WallpaperTab.qml @@ -85,6 +85,7 @@ ColumnLayout { border.color: Color.mOutline border.width: Style.borderS implicitHeight: contentCol.implicitHeight + Style.marginL * 2 + clip: true ColumnLayout { id: contentCol diff --git a/Modules/Panels/Wallpaper/WallpaperPanel.qml b/Modules/Panels/Wallpaper/WallpaperPanel.qml index 3cca50d9..9da8f70a 100644 --- a/Modules/Panels/Wallpaper/WallpaperPanel.qml +++ b/Modules/Panels/Wallpaper/WallpaperPanel.qml @@ -426,6 +426,51 @@ SmartPanel { ScrollBar.vertical: ScrollBar { policy: ScrollBar.AsNeeded + parent: wallpaperGridView + x: wallpaperGridView.mirrored ? 0 : wallpaperGridView.width - width + y: 0 + height: wallpaperGridView.height + active: wallpaperGridView.ScrollBar.horizontal.active + + property color handleColor: Qt.alpha(Color.mHover, 0.8) + property color handleHoverColor: handleColor + property color handlePressedColor: handleColor + property real handleWidth: 6 + property real handleRadius: Style.radiusM + + contentItem: Rectangle { + implicitWidth: parent.handleWidth + implicitHeight: 100 + radius: parent.handleRadius + color: parent.pressed ? parent.handlePressedColor : parent.hovered ? parent.handleHoverColor : parent.handleColor + opacity: parent.policy === ScrollBar.AlwaysOn || parent.active ? 1.0 : 0.0 + + Behavior on opacity { + NumberAnimation { + duration: Style.animationFast + } + } + + Behavior on color { + ColorAnimation { + duration: Style.animationFast + } + } + } + + background: Rectangle { + implicitWidth: parent.handleWidth + implicitHeight: 100 + color: Color.transparent + opacity: parent.policy === ScrollBar.AlwaysOn || parent.active ? 0.3 : 0.0 + radius: parent.handleRadius / 2 + + Behavior on opacity { + NumberAnimation { + duration: Style.animationFast + } + } + } } delegate: ColumnLayout { From 5b3b2ae2aa84d9939a2c96ed62472f9371da6388 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Fri, 7 Nov 2025 14:12:39 -0500 Subject: [PATCH 6/9] SmartPanel: fix dynamic UI scaling --- Modules/MainScreen/SmartPanel.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Modules/MainScreen/SmartPanel.qml b/Modules/MainScreen/SmartPanel.qml index b2be2539..e4bda7a2 100644 --- a/Modules/MainScreen/SmartPanel.qml +++ b/Modules/MainScreen/SmartPanel.qml @@ -106,6 +106,16 @@ Item { signal opened signal closed + Connections { + target: Style + + function onUiScaleRatioChanged() { + if (root.isPanelOpen && root.isPanelVisible) { + root.setPosition() + } + } + } + // Panel visibility and sizing visible: isPanelVisible width: parent ? parent.width : 0 From f8cffcd3ac8883042be091f30e8da745605c4a7c Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Fri, 7 Nov 2025 14:13:51 -0500 Subject: [PATCH 7/9] ControlCenter: +20 px width --- Modules/Panels/ControlCenter/ControlCenterPanel.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Panels/ControlCenter/ControlCenterPanel.qml b/Modules/Panels/ControlCenter/ControlCenterPanel.qml index 8675b2a2..510d781f 100644 --- a/Modules/Panels/ControlCenter/ControlCenterPanel.qml +++ b/Modules/Panels/ControlCenter/ControlCenterPanel.qml @@ -30,7 +30,7 @@ SmartPanel { panelAnchorBottom: !shouldCenter && controlCenterPosition !== "close_to_bar_button" && controlCenterPosition.startsWith("bottom_") panelAnchorTop: !shouldCenter && controlCenterPosition !== "close_to_bar_button" && controlCenterPosition.startsWith("top_") - preferredWidth: Math.round(440 * Style.uiScaleRatio) + preferredWidth: Math.round(460 * Style.uiScaleRatio) preferredHeight: { var height = 0 var count = 0 From 6c5aad1bb3230481738f9742ca6817c8a46d2aa4 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Fri, 7 Nov 2025 21:05:59 +0100 Subject: [PATCH 8/9] OSD: fix warning WallpaperPanel: fix warning --- Modules/OSD/OSD.qml | 2 -- Modules/Panels/Wallpaper/WallpaperPanel.qml | 1 - 2 files changed, 3 deletions(-) diff --git a/Modules/OSD/OSD.qml b/Modules/OSD/OSD.qml index 0cc39773..835965e6 100644 --- a/Modules/OSD/OSD.qml +++ b/Modules/OSD/OSD.qml @@ -345,8 +345,6 @@ Variants { horizontalAlignment: Text.AlignRight verticalAlignment: Text.AlignVCenter Layout.preferredWidth: Math.round(50 * Style.uiScaleRatio) - anchors.verticalCenter: parent.verticalCenter - anchors.verticalCenterOffset: 0 } } } diff --git a/Modules/Panels/Wallpaper/WallpaperPanel.qml b/Modules/Panels/Wallpaper/WallpaperPanel.qml index 9da8f70a..40de7685 100644 --- a/Modules/Panels/Wallpaper/WallpaperPanel.qml +++ b/Modules/Panels/Wallpaper/WallpaperPanel.qml @@ -430,7 +430,6 @@ SmartPanel { x: wallpaperGridView.mirrored ? 0 : wallpaperGridView.width - width y: 0 height: wallpaperGridView.height - active: wallpaperGridView.ScrollBar.horizontal.active property color handleColor: Qt.alpha(Color.mHover, 0.8) property color handleHoverColor: handleColor From b9199b370706b6557c2ef4071f176481738bd32c Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Fri, 7 Nov 2025 15:12:41 -0500 Subject: [PATCH 9/9] Wallpaper: switch a info log to debug --- Modules/Panels/Wallpaper/WallpaperPanel.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Panels/Wallpaper/WallpaperPanel.qml b/Modules/Panels/Wallpaper/WallpaperPanel.qml index 40de7685..60e2cd41 100644 --- a/Modules/Panels/Wallpaper/WallpaperPanel.qml +++ b/Modules/Panels/Wallpaper/WallpaperPanel.qml @@ -349,7 +349,7 @@ SmartPanel { return } wallpapersList = WallpaperService.getWallpapersList(targetScreen.name) - Logger.i("WallpaperPanel", "Got", wallpapersList.length, "wallpapers for screen", targetScreen.name) + Logger.d("WallpaperPanel", "Got", wallpapersList.length, "wallpapers for screen", targetScreen.name) // Pre-compute basenames once for better performance wallpapersWithNames = wallpapersList.map(function (p) {