From 622c34a5519f0f0e22d86c9b63eca8f5090332ef Mon Sep 17 00:00:00 2001 From: quadbyte Date: Mon, 18 Aug 2025 09:53:24 -0400 Subject: [PATCH] Using fontSizeReduced for Tray, PowerMenu and MediaCard player selector --- Modules/Bar/TrayMenu.qml | 6 +++--- Modules/SidePanel/Cards/MediaCard.qml | 2 +- Modules/SidePanel/PowerMenu.qml | 5 +++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Modules/Bar/TrayMenu.qml b/Modules/Bar/TrayMenu.qml index 355e313..19b9771 100644 --- a/Modules/Bar/TrayMenu.qml +++ b/Modules/Bar/TrayMenu.qml @@ -116,7 +116,7 @@ PopupWindow { return 8 * scaling } else { // Calculate based on text content - const textHeight = text.contentHeight || (Style.fontSizeSmall * scaling * 1.2) + const textHeight = text.contentHeight || (Style.fontSizeReduced * scaling * 1.2) return Math.max(32 * scaling, textHeight + 8) } } @@ -149,7 +149,7 @@ PopupWindow { ?? true) ? (mouseArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface) : Color.applyOpacity( Color.mOnSurface, 64) text: modelData?.text ?? "" - font.pointSize: Style.fontSizeSmall * scaling + font.pointSize: Style.fontSizeReduced * scaling verticalAlignment: Text.AlignVCenter elide: Text.ElideRight } @@ -164,7 +164,7 @@ PopupWindow { NIcon { text: modelData?.hasChildren ? "menu" : "" - font.pointSize: Style.fontSizeSmall * scaling + font.pointSize: Style.fontSizeReduced * scaling verticalAlignment: Text.AlignVCenter visible: modelData?.hasChildren ?? false color: Color.mOnSurface diff --git a/Modules/SidePanel/Cards/MediaCard.qml b/Modules/SidePanel/Cards/MediaCard.qml index a0da7a6..7b651c3 100644 --- a/Modules/SidePanel/Cards/MediaCard.qml +++ b/Modules/SidePanel/Cards/MediaCard.qml @@ -129,7 +129,7 @@ NBox { width: playerSelector.width contentItem: NText { text: modelData.identity - font.pointSize: Style.fontSizeSmall * scaling + font.pointSize: Style.fontSizeReduced * scaling color: highlighted ? Color.mSurface : Color.mOnSurface verticalAlignment: Text.AlignVCenter elide: Text.ElideRight diff --git a/Modules/SidePanel/PowerMenu.qml b/Modules/SidePanel/PowerMenu.qml index 992581c..918ca9a 100644 --- a/Modules/SidePanel/PowerMenu.qml +++ b/Modules/SidePanel/PowerMenu.qml @@ -83,6 +83,7 @@ NPanel { Text { text: "Lock Screen" color: lockButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface + font.pointSize: Style.fontSizeReduced * scaling verticalAlignment: Text.AlignVCenter anchors.verticalCenter: parent.verticalCenter anchors.verticalCenterOffset: 1 * scaling @@ -137,6 +138,7 @@ NPanel { Text { text: "Suspend" color: suspendButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface + font.pointSize: Style.fontSizeReduced * scaling verticalAlignment: Text.AlignVCenter anchors.verticalCenter: parent.verticalCenter anchors.verticalCenterOffset: 1 * scaling @@ -189,6 +191,7 @@ NPanel { Text { text: "Reboot" color: rebootButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface + font.pointSize: Style.fontSizeReduced * scaling verticalAlignment: Text.AlignVCenter anchors.verticalCenter: parent.verticalCenter anchors.verticalCenterOffset: 1 * scaling @@ -241,6 +244,7 @@ NPanel { Text { text: "Logout" color: logoutButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface + font.pointSize: Style.fontSizeReduced * scaling verticalAlignment: Text.AlignVCenter anchors.verticalCenter: parent.verticalCenter anchors.verticalCenterOffset: 1 * scaling @@ -293,6 +297,7 @@ NPanel { Text { text: "Shutdown" color: shutdownButtonArea.containsMouse ? Color.mOnTertiary : Color.mOnSurface + font.pointSize: Style.fontSizeReduced * scaling verticalAlignment: Text.AlignVCenter anchors.verticalCenter: parent.verticalCenter anchors.verticalCenterOffset: 1 * scaling