From ecd6141739023d006c734ec1d9fa6b5075e6cfd6 Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Tue, 9 Sep 2025 08:27:44 -0400 Subject: [PATCH 1/3] Toast: better spacing/margin --- Services/CompositorService.qml | 6 ++++-- Widgets/NToast.qml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Services/CompositorService.qml b/Services/CompositorService.qml index 3a5545f..7e46e31 100644 --- a/Services/CompositorService.qml +++ b/Services/CompositorService.qml @@ -192,8 +192,10 @@ Singleton { } windowsList.push({ - "id": (toplevel.address !== undefined && toplevel.address !== null) ? String(toplevel.address) : "", - "title": (toplevel.title !== undefined && toplevel.title !== null) ? String(toplevel.title) : "", + "id": (toplevel.address !== undefined + && toplevel.address !== null) ? String(toplevel.address) : "", + "title": (toplevel.title !== undefined && toplevel.title !== null) ? String( + toplevel.title) : "", "appId": (appId !== undefined && appId !== null) ? String(appId) : "", "workspaceId": toplevel.workspace?.id || null, "isFocused": toplevel.activated === true diff --git a/Widgets/NToast.qml b/Widgets/NToast.qml index ffb7a80..c6ccbbc 100644 --- a/Widgets/NToast.qml +++ b/Widgets/NToast.qml @@ -112,8 +112,8 @@ Item { RowLayout { id: contentLayout anchors.fill: parent - anchors.margins: Style.marginM * scaling - spacing: Style.marginS * scaling + anchors.margins: Style.marginL * scaling + spacing: Style.marginL * scaling // Icon NIcon { From f6b3f6d2ec1c85b6594c757e253bc8dc40aed9b2 Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Tue, 9 Sep 2025 08:49:08 -0400 Subject: [PATCH 2/3] ProfileCard: more discrete System uptime --- Modules/SidePanel/Cards/ProfileCard.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/SidePanel/Cards/ProfileCard.qml b/Modules/SidePanel/Cards/ProfileCard.qml index a9ef68b..66ecaa2 100644 --- a/Modules/SidePanel/Cards/ProfileCard.qml +++ b/Modules/SidePanel/Cards/ProfileCard.qml @@ -47,7 +47,8 @@ NBox { } NText { text: `System uptime: ${uptimeText}` - color: Color.mOnSurface + font.pointSize: Style.fontSizeS * scaling + color: Color.mOnSurfaceVariant } } From d76d1c628afb6193191390c9c82ea75f99464f5f Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Tue, 9 Sep 2025 08:56:30 -0400 Subject: [PATCH 3/3] NIconButton: animation on color (bg+fg) --- Widgets/NIconButton.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Widgets/NIconButton.qml b/Widgets/NIconButton.qml index e5576ed..296279e 100644 --- a/Widgets/NIconButton.qml +++ b/Widgets/NIconButton.qml @@ -38,6 +38,13 @@ Rectangle { border.color: root.enabled && root.hovering ? colorBorderHover : colorBorder border.width: Math.max(1, Style.borderS * scaling) + Behavior on color { + ColorAnimation { + duration: Style.animationNormal + easing.type: Easing.InOutQuad + } + } + NIcon { icon: root.icon font.pointSize: Math.max(1, root.width * 0.4) @@ -46,6 +53,13 @@ Rectangle { x: (root.width - width) / 2 // Center vertically accounting for font metrics y: (root.height - height) / 2 + (height - contentHeight) / 2 + + Behavior on color { + ColorAnimation { + duration: Style.animationFast + easing.type: Easing.InOutQuad + } + } } NTooltip {