From 7fe87c063365b12ab5a0358cf26c44bffaaaa235 Mon Sep 17 00:00:00 2001 From: quadbyte Date: Tue, 12 Aug 2025 10:24:20 -0400 Subject: [PATCH] Fix illegal Colors.fontXXXX --- Modules/Bar/TrayMenu.qml | 8 ++++---- Widgets/NTextInput.qml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Modules/Bar/TrayMenu.qml b/Modules/Bar/TrayMenu.qml index 6770a45..aaf42e4 100644 --- a/Modules/Bar/TrayMenu.qml +++ b/Modules/Bar/TrayMenu.qml @@ -128,7 +128,7 @@ PopupWindow { color: (modelData?.enabled ?? true) ? (mouseArea.containsMouse ? Colors.onAccent : Colors.textPrimary) : Colors.textDisabled text: modelData?.text ?? "" - font.pointSize: Colors.fontSizeSmall * scaling + font.pointSize: Style.fontSizeSmall * scaling verticalAlignment: Text.AlignVCenter elide: Text.ElideRight } @@ -145,7 +145,7 @@ PopupWindow { Text { text: modelData?.hasChildren ? "menu" : "" font.family: "Material Symbols Outlined" - font.pointSize: Colors.fontSizeSmall * scaling + font.pointSize: Style.fontSizeSmall * scaling verticalAlignment: Text.AlignVCenter visible: modelData?.hasChildren ?? false color: Colors.textPrimary @@ -363,7 +363,7 @@ PopupWindow { Layout.fillWidth: true color: (modelData?.enabled ?? true) ? bg.hoverTextColor : Colors.textDisabled text: modelData?.text ?? "" - font.pointSize: Colors.fontSizeSmall * scaling + font.pointSize: Style.fontSizeSmall * scaling verticalAlignment: Text.AlignVCenter elide: Text.ElideRight } @@ -380,7 +380,7 @@ PopupWindow { NText { text: modelData?.hasChildren ? "\uE5CC" : "" font.family: "Material Symbols Outlined" - font.pointSize: Colors.fontSizeSmall * scaling + font.pointSize: Style.fontSizeSmall * scaling verticalAlignment: Text.AlignVCenter visible: modelData?.hasChildren ?? false } diff --git a/Widgets/NTextInput.qml b/Widgets/NTextInput.qml index bbd70f1..b2e00bf 100644 --- a/Widgets/NTextInput.qml +++ b/Widgets/NTextInput.qml @@ -54,7 +54,7 @@ Item { color: Colors.textPrimary placeholderTextColor: Colors.textSecondary background: null - font.pointSize: Colors.fontSizeSmall * scaling + font.pointSize: Style.fontSizeSmall * scaling onEditingFinished: root.onEditingFinished() // Text changes are observable via the aliased 'text' property (root.text) and its 'textChanged' signal. // No additional callback is invoked here to avoid conflicts with QML's onTextChanged handler semantics.