From 3bc9a625b89c7fe4367fde5d9b1db2decf9df30b Mon Sep 17 00:00:00 2001 From: Lemmy Date: Sun, 4 Jan 2026 13:54:51 -0500 Subject: [PATCH] Colors: removed Colors.transparent / black and white in favor of their direct shorthands --- Commons/Color.qml | 5 ----- Modules/Background/Background.qml | 2 +- Modules/Background/Overview.qml | 2 +- Modules/Bar/Extras/BarPill.qml | 4 ++-- Modules/Bar/Extras/BarPillHorizontal.qml | 17 +++++--------- Modules/Bar/Extras/BarPillVertical.qml | 17 +++++--------- Modules/Bar/Extras/TrayMenu.qml | 6 ++--- Modules/Bar/Widgets/Battery.qml | 4 ++-- Modules/Bar/Widgets/ControlCenter.qml | 4 ++-- Modules/Bar/Widgets/CustomButton.qml | 2 +- Modules/Bar/Widgets/DarkMode.qml | 4 ++-- Modules/Bar/Widgets/NightLight.qml | 4 ++-- Modules/Bar/Widgets/NoctaliaPerformance.qml | 4 ++-- Modules/Bar/Widgets/NotificationHistory.qml | 4 ++-- Modules/Bar/Widgets/PowerProfile.qml | 4 ++-- Modules/Bar/Widgets/ScreenRecorder.qml | 4 ++-- Modules/Bar/Widgets/SessionMenu.qml | 4 ++-- Modules/Bar/Widgets/Taskbar.qml | 2 +- Modules/Bar/Widgets/Tray.qml | 12 +++++----- Modules/Bar/Widgets/WallpaperSelector.qml | 4 ++-- Modules/Bar/Widgets/Workspace.qml | 6 ++--- Modules/Cards/AudioCard.qml | 4 ++-- Modules/Cards/BrightnessCard.qml | 2 +- Modules/Cards/CalendarMonthCard.qml | 2 +- Modules/Cards/MediaCard.qml | 4 ++-- Modules/Cards/TimerCard.qml | 4 ++-- Modules/DesktopWidgets/DesktopWidgets.qml | 2 +- .../DesktopWidgets/DraggableDesktopWidget.qml | 6 ++--- .../DesktopWidgets/Widgets/DesktopClock.qml | 2 +- Modules/Dock/Dock.qml | 4 ++-- Modules/Dock/DockMenu.qml | 4 ++-- Modules/LockScreen/LockScreen.qml | 14 ++++++------ .../Backgrounds/PanelBackground.qml | 2 +- Modules/MainScreen/BarContentWindow.qml | 2 +- Modules/MainScreen/MainScreen.qml | 2 +- Modules/MainScreen/PopupMenuWindow.qml | 2 +- Modules/MainScreen/ScreenCorners.qml | 4 ++-- Modules/Notification/Notification.qml | 6 ++--- Modules/OSD/OSD.qml | 2 +- Modules/Panels/Bluetooth/BluetoothPanel.qml | 2 +- Modules/Panels/Launcher/Launcher.qml | 2 +- .../NotificationHistoryPanel.qml | 14 ++++++------ Modules/Panels/SessionMenu/SessionMenu.qml | 8 +++---- .../Bar/WidgetSettings/TraySettings.qml | 2 +- Modules/Panels/Settings/SettingsContent.qml | 22 +++++++++---------- Modules/Panels/Settings/SettingsPanel.qml | 2 +- .../Panels/Settings/SettingsPanelWindow.qml | 2 +- Modules/Panels/Settings/Tabs/AboutTab.qml | 8 +++---- .../Tabs/SessionMenu/SessionMenuTab.qml | 6 ++--- Modules/Panels/Settings/Tabs/WallpaperTab.qml | 2 +- Modules/Panels/Wallpaper/WallpaperPanel.qml | 14 ++++++------ Modules/Panels/WiFi/WiFiNetworksList.qml | 2 +- Modules/Panels/WiFi/WiFiPanel.qml | 2 +- Modules/Toast/ToastScreen.qml | 2 +- Modules/Tooltip/Tooltip.qml | 2 +- Services/Control/CurrentScreenDetector.qml | 2 +- Services/UI/ImageCacheService.qml | 2 +- Widgets/NButton.qml | 6 ++--- Widgets/NCollapsible.qml | 2 +- Widgets/NColorPicker.qml | 2 +- Widgets/NColorPickerDialog.qml | 6 ++--- Widgets/NComboBox.qml | 4 ++-- Widgets/NContextMenu.qml | 2 +- Widgets/NDivider.qml | 4 ++-- Widgets/NDropShadow.qml | 2 +- Widgets/NFilePicker.qml | 16 +++++++------- Widgets/NGridView.qml | 2 +- Widgets/NIconPicker.qml | 4 ++-- Widgets/NImageRounded.qml | 4 ++-- Widgets/NListView.qml | 2 +- Widgets/NPopupContextMenu.qml | 6 ++--- Widgets/NRadioButton.qml | 2 +- Widgets/NReorderCheckboxes.qml | 2 +- Widgets/NScrollView.qml | 2 +- Widgets/NSearchableComboBox.qml | 2 +- Widgets/NSectionEditor.qml | 2 +- Widgets/NSpinBox.qml | 10 ++++----- Widgets/NTextInput.qml | 4 ++-- 78 files changed, 173 insertions(+), 192 deletions(-) diff --git a/Commons/Color.qml b/Commons/Color.qml index 1614a6520..0339c39bf 100644 --- a/Commons/Color.qml +++ b/Commons/Color.qml @@ -45,11 +45,6 @@ Singleton { readonly property color mHover: customColorsData.mHover readonly property color mOnHover: customColorsData.mOnHover - // --- Absolute Colors - readonly property color transparent: "transparent" - readonly property color black: "#000000" - readonly property color white: "#ffffff" - // -------------------------------- // Default colors: Rose Pine QtObject { diff --git a/Modules/Background/Background.qml b/Modules/Background/Background.qml index 51cebbbe1..cfac5d221 100644 --- a/Modules/Background/Background.qml +++ b/Modules/Background/Background.qml @@ -95,7 +95,7 @@ Variants { } } - color: Color.transparent + color: "transparent" screen: modelData WlrLayershell.layer: WlrLayer.Background WlrLayershell.exclusionMode: ExclusionMode.Ignore diff --git a/Modules/Background/Overview.qml b/Modules/Background/Overview.qml index cfa3c8810..d233c132f 100644 --- a/Modules/Background/Overview.qml +++ b/Modules/Background/Overview.qml @@ -84,7 +84,7 @@ Loader { }); } - color: Color.transparent + color: "transparent" screen: modelData WlrLayershell.layer: WlrLayer.Background WlrLayershell.exclusionMode: ExclusionMode.Ignore diff --git a/Modules/Bar/Extras/BarPill.qml b/Modules/Bar/Extras/BarPill.qml index c6b2e3dbd..c07ded86d 100644 --- a/Modules/Bar/Extras/BarPill.qml +++ b/Modules/Bar/Extras/BarPill.qml @@ -19,8 +19,8 @@ Item { property bool oppositeDirection: false property bool hovered: false property bool rotateText: false - property color customBackgroundColor: Color.transparent - property color customTextIconColor: Color.transparent + property color customBackgroundColor: "transparent" + property color customTextIconColor: "transparent" readonly property string barPosition: Settings.data.bar.position readonly property bool isVerticalBar: barPosition === "left" || barPosition === "right" diff --git a/Modules/Bar/Extras/BarPillHorizontal.qml b/Modules/Bar/Extras/BarPillHorizontal.qml index b8aec3b87..c265cb800 100644 --- a/Modules/Bar/Extras/BarPillHorizontal.qml +++ b/Modules/Bar/Extras/BarPillHorizontal.qml @@ -19,8 +19,8 @@ Item { property bool forceClose: false property bool oppositeDirection: false property bool hovered: false - property color customBackgroundColor: Color.transparent - property color customTextIconColor: Color.transparent + property color customBackgroundColor: "transparent" + property color customTextIconColor: "transparent" readonly property bool collapseToIcon: forceClose && !forceOpen @@ -50,14 +50,7 @@ Item { readonly property color bgColor: hovered ? Color.mHover : (customBackgroundColor.a > 0) ? customBackgroundColor : Style.capsuleColor readonly property color fgColor: hovered ? Color.mOnHover : (customTextIconColor.a > 0) ? customTextIconColor : Color.mOnSurface - readonly property real iconSize: { - switch (root.density) { - case "compact": - return Math.max(1, Math.round(pillHeight * 0.65)); - default: - return Math.max(1, Math.round(pillHeight * 0.48)); - } - } + readonly property real iconSize: Style.toOdd(pillHeight * 0.48) width: { if (collapseToIcon) { @@ -110,7 +103,7 @@ Item { } opacity: revealed ? Style.opacityFull : Style.opacityNone - color: Color.transparent // Make pill background transparent to avoid double opacity + color: "transparent" // Make pill background transparent to avoid double opacity topLeftRadius: oppositeDirection ? 0 : Style.radiusM bottomLeftRadius: oppositeDirection ? 0 : Style.radiusM @@ -163,7 +156,7 @@ Item { width: hasIcon ? pillHeight : 0 height: pillHeight radius: Math.min(Style.radiusL, width / 2) - color: Color.transparent // Make icon background transparent to avoid double opacity + color: "transparent" // Make icon background transparent to avoid double opacity anchors.verticalCenter: parent.verticalCenter x: oppositeDirection ? 0 : (parent.width - width) diff --git a/Modules/Bar/Extras/BarPillVertical.qml b/Modules/Bar/Extras/BarPillVertical.qml index 80fa97a92..79fa1d38a 100644 --- a/Modules/Bar/Extras/BarPillVertical.qml +++ b/Modules/Bar/Extras/BarPillVertical.qml @@ -20,8 +20,8 @@ Item { property bool oppositeDirection: false property bool hovered: false property bool rotateText: false - property color customBackgroundColor: Color.transparent - property color customTextIconColor: Color.transparent + property color customBackgroundColor: "transparent" + property color customTextIconColor: "transparent" readonly property bool collapseToIcon: forceClose && !forceOpen @@ -57,14 +57,7 @@ Item { readonly property color bgColor: hovered ? Color.mHover : (customBackgroundColor.a > 0) ? customBackgroundColor : Style.capsuleColor readonly property color fgColor: hovered ? Color.mOnHover : (customTextIconColor.a > 0) ? customTextIconColor : Color.mOnSurface - readonly property real iconSize: { - switch (root.density) { - case "compact": - return Math.max(1, Math.round(pillHeight * 0.65)); - default: - return Math.max(1, Math.round(pillHeight * 0.48)); - } - } + readonly property real iconSize: Style.toOdd(pillHeight * 0.48) // For vertical bars: width is just icon size, height includes pill space width: buttonSize @@ -126,7 +119,7 @@ Item { } opacity: revealed ? Style.opacityFull : Style.opacityNone - color: Color.transparent // Make pill background transparent to avoid double opacity + color: "transparent" // Make pill background transparent to avoid double opacity // Radius logic for vertical expansion - rounded on the side that connects to icon topLeftRadius: openUpward ? Style.radiusM : 0 @@ -184,7 +177,7 @@ Item { width: buttonSize height: buttonSize radius: Math.min(Style.radiusL, width / 2) - color: Color.transparent // Make icon background transparent to avoid double opacity + color: "transparent" // Make icon background transparent to avoid double opacity // Icon positioning based on direction x: 0 diff --git a/Modules/Bar/Extras/TrayMenu.qml b/Modules/Bar/Extras/TrayMenu.qml index deda2441c..cb07597b0 100644 --- a/Modules/Bar/Extras/TrayMenu.qml +++ b/Modules/Bar/Extras/TrayMenu.qml @@ -48,7 +48,7 @@ PopupWindow { // Use the content height of the Flickable for implicit height implicitHeight: Math.min(screen?.height * 0.9, flickable.contentHeight + (Style.marginS * 2)) visible: false - color: Color.transparent + color: "transparent" anchor.item: anchorItem anchor.rect.x: { if (anchorItem && screen) { @@ -249,7 +249,7 @@ PopupWindow { } } - color: Color.transparent + color: "transparent" property var subMenu: null NDivider { @@ -261,7 +261,7 @@ PopupWindow { Rectangle { id: innerRect anchors.fill: parent - color: mouseArea.containsMouse ? Color.mHover : Color.transparent + color: mouseArea.containsMouse ? Color.mHover : "transparent" radius: Style.radiusS visible: !(modelData?.isSeparator ?? false) diff --git a/Modules/Bar/Widgets/Battery.qml b/Modules/Bar/Widgets/Battery.qml index e534a33ae..5a9b597b0 100644 --- a/Modules/Bar/Widgets/Battery.qml +++ b/Modules/Bar/Widgets/Battery.qml @@ -205,8 +205,8 @@ Item { autoHide: false forceOpen: isReady && displayMode === "alwaysShow" forceClose: displayMode === "alwaysHide" || (initializationComplete && !isReady) - customBackgroundColor: !initializationComplete ? Color.transparent : (charging ? Color.mPrimary : (isLowBattery ? Color.mError : Color.transparent)) - customTextIconColor: !initializationComplete ? Color.transparent : (charging ? Color.mOnPrimary : (isLowBattery ? Color.mOnError : Color.transparent)) + customBackgroundColor: !initializationComplete ? "transparent" : (charging ? Color.mPrimary : (isLowBattery ? Color.mError : "transparent")) + customTextIconColor: !initializationComplete ? "transparent" : (charging ? Color.mOnPrimary : (isLowBattery ? Color.mOnError : "transparent")) tooltipText: { let lines = []; diff --git a/Modules/Bar/Widgets/ControlCenter.qml b/Modules/Bar/Widgets/ControlCenter.qml index fd7085297..de32551a6 100644 --- a/Modules/Bar/Widgets/ControlCenter.qml +++ b/Modules/Bar/Widgets/ControlCenter.qml @@ -90,8 +90,8 @@ NIconButton { colorFg: iconColor colorBgHover: useDistroLogo ? Color.mSurfaceVariant : Color.mHover colorFgHover: iconHoverColor - colorBorder: Color.transparent - colorBorderHover: useDistroLogo ? Color.mHover : Color.transparent + colorBorder: "transparent" + colorBorderHover: useDistroLogo ? Color.mHover : "transparent" border.color: Style.capsuleBorderColor border.width: Style.capsuleBorderWidth diff --git a/Modules/Bar/Widgets/CustomButton.qml b/Modules/Bar/Widgets/CustomButton.qml index 8d79da08d..9fff00a4d 100644 --- a/Modules/Bar/Widgets/CustomButton.qml +++ b/Modules/Bar/Widgets/CustomButton.qml @@ -187,7 +187,7 @@ Item { rotateText: isVerticalBar && currentMaxTextLength > 0 autoHide: false forceOpen: _pillForceOpen - customTextIconColor: isColorizing ? iconColor : Color.transparent + customTextIconColor: isColorizing ? iconColor : "transparent" tooltipText: { var tooltipLines = []; diff --git a/Modules/Bar/Widgets/DarkMode.qml b/Modules/Bar/Widgets/DarkMode.qml index 3d3b39503..876aac5d8 100644 --- a/Modules/Bar/Widgets/DarkMode.qml +++ b/Modules/Bar/Widgets/DarkMode.qml @@ -16,8 +16,8 @@ NIconButton { customRadius: Style.radiusL colorBg: Style.capsuleColor colorFg: Color.mOnSurface - colorBorder: Color.transparent - colorBorderHover: Color.transparent + colorBorder: "transparent" + colorBorderHover: "transparent" onClicked: Settings.data.colorSchemes.darkMode = !Settings.data.colorSchemes.darkMode border.color: Style.capsuleBorderColor diff --git a/Modules/Bar/Widgets/NightLight.qml b/Modules/Bar/Widgets/NightLight.qml index 0c1bacd63..53069b090 100644 --- a/Modules/Bar/Widgets/NightLight.qml +++ b/Modules/Bar/Widgets/NightLight.qml @@ -19,8 +19,8 @@ NIconButton { customRadius: Style.radiusL colorBg: Settings.data.nightLight.forced ? Color.mPrimary : Style.capsuleColor colorFg: Settings.data.nightLight.forced ? Color.mOnPrimary : Color.mOnSurface - colorBorder: Color.transparent - colorBorderHover: Color.transparent + colorBorder: "transparent" + colorBorderHover: "transparent" border.color: Style.capsuleBorderColor border.width: Style.capsuleBorderWidth diff --git a/Modules/Bar/Widgets/NoctaliaPerformance.qml b/Modules/Bar/Widgets/NoctaliaPerformance.qml index d81e1c26d..a00a3751c 100644 --- a/Modules/Bar/Widgets/NoctaliaPerformance.qml +++ b/Modules/Bar/Widgets/NoctaliaPerformance.qml @@ -19,8 +19,8 @@ NIconButton { customRadius: Style.radiusL colorBg: PowerProfileService.noctaliaPerformanceMode ? Color.mPrimary : Style.capsuleColor colorFg: PowerProfileService.noctaliaPerformanceMode ? Color.mOnPrimary : Color.mOnSurface - colorBorder: Color.transparent - colorBorderHover: Color.transparent + colorBorder: "transparent" + colorBorderHover: "transparent" border.color: Style.capsuleBorderColor border.width: Style.capsuleBorderWidth diff --git a/Modules/Bar/Widgets/NotificationHistory.qml b/Modules/Bar/Widgets/NotificationHistory.qml index 9c7f98742..185dbd780 100644 --- a/Modules/Bar/Widgets/NotificationHistory.qml +++ b/Modules/Bar/Widgets/NotificationHistory.qml @@ -56,8 +56,8 @@ NIconButton { tooltipDirection: BarService.getTooltipDirection() colorBg: Style.capsuleColor colorFg: Color.mOnSurface - colorBorder: Color.transparent - colorBorderHover: Color.transparent + colorBorder: "transparent" + colorBorderHover: "transparent" border.color: Style.capsuleBorderColor border.width: Style.capsuleBorderWidth visible: count > 0 || !hideWhenZero diff --git a/Modules/Bar/Widgets/PowerProfile.qml b/Modules/Bar/Widgets/PowerProfile.qml index 396cd7d17..d63a2ef46 100644 --- a/Modules/Bar/Widgets/PowerProfile.qml +++ b/Modules/Bar/Widgets/PowerProfile.qml @@ -23,8 +23,8 @@ NIconButton { tooltipDirection: BarService.getTooltipDirection() colorBg: (PowerProfileService.profile === PowerProfile.Balanced) ? Style.capsuleColor : Color.mPrimary colorFg: (PowerProfileService.profile === PowerProfile.Balanced) ? Color.mOnSurface : Color.mOnPrimary - colorBorder: Color.transparent - colorBorderHover: Color.transparent + colorBorder: "transparent" + colorBorderHover: "transparent" border.color: Style.capsuleBorderColor border.width: Style.capsuleBorderWidth onClicked: PowerProfileService.cycleProfile() diff --git a/Modules/Bar/Widgets/ScreenRecorder.qml b/Modules/Bar/Widgets/ScreenRecorder.qml index 20a921b1d..9bfe3a612 100644 --- a/Modules/Bar/Widgets/ScreenRecorder.qml +++ b/Modules/Bar/Widgets/ScreenRecorder.qml @@ -27,8 +27,8 @@ NIconButton { customRadius: Style.radiusL colorBg: ScreenRecorderService.isRecording ? Color.mPrimary : Style.capsuleColor colorFg: ScreenRecorderService.isRecording ? Color.mOnPrimary : Color.mOnSurface - colorBorder: Color.transparent - colorBorderHover: Color.transparent + colorBorder: "transparent" + colorBorderHover: "transparent" border.color: Style.capsuleBorderColor border.width: Style.capsuleBorderWidth diff --git a/Modules/Bar/Widgets/SessionMenu.qml b/Modules/Bar/Widgets/SessionMenu.qml index 23ba0205b..432bd5638 100644 --- a/Modules/Bar/Widgets/SessionMenu.qml +++ b/Modules/Bar/Widgets/SessionMenu.qml @@ -55,8 +55,8 @@ NIconButton { tooltipDirection: BarService.getTooltipDirection() colorBg: Style.capsuleColor colorFg: root.iconColor - colorBorder: Color.transparent - colorBorderHover: Color.transparent + colorBorder: "transparent" + colorBorderHover: "transparent" border.color: Style.capsuleBorderColor border.width: Style.capsuleBorderWidth diff --git a/Modules/Bar/Widgets/Taskbar.qml b/Modules/Bar/Widgets/Taskbar.qml index bee31cbaf..991465aa9 100644 --- a/Modules/Bar/Widgets/Taskbar.qml +++ b/Modules/Bar/Widgets/Taskbar.qml @@ -614,7 +614,7 @@ Rectangle { anchors.horizontalCenter: parent.horizontalCenter width: Style.toOdd(root.itemSize * 0.25) height: 4 - color: taskbarItem.isFocused ? Color.mPrimary : Color.transparent + color: taskbarItem.isFocused ? Color.mPrimary : "transparent" radius: Math.min(Style.radiusXXS, width / 2) } } diff --git a/Modules/Bar/Widgets/Tray.qml b/Modules/Bar/Widgets/Tray.qml index 06a050d66..c628a5047 100644 --- a/Modules/Bar/Widgets/Tray.qml +++ b/Modules/Bar/Widgets/Tray.qml @@ -294,10 +294,10 @@ Rectangle { baseSize: Style.capsuleHeight applyUiScale: false customRadius: Style.radiusL - colorBg: Color.transparent + colorBg: "transparent" colorFg: Settings.data.colorSchemes.darkMode ? Color.mOnSurface : Color.mOnPrimary - colorBorder: Color.transparent - colorBorderHover: Color.transparent + colorBorder: "transparent" + colorBorderHover: "transparent" icon: { switch (barPosition) { case "bottom": @@ -450,10 +450,10 @@ Rectangle { baseSize: Style.capsuleHeight applyUiScale: false customRadius: Style.radiusL - colorBg: Color.transparent + colorBg: "transparent" colorFg: Color.mOnSurface - colorBorder: Color.transparent - colorBorderHover: Color.transparent + colorBorder: "transparent" + colorBorderHover: "transparent" icon: { switch (barPosition) { case "bottom": diff --git a/Modules/Bar/Widgets/WallpaperSelector.qml b/Modules/Bar/Widgets/WallpaperSelector.qml index 371535a97..4554291de 100644 --- a/Modules/Bar/Widgets/WallpaperSelector.qml +++ b/Modules/Bar/Widgets/WallpaperSelector.qml @@ -20,8 +20,8 @@ NIconButton { tooltipDirection: BarService.getTooltipDirection() colorBg: Style.capsuleColor colorFg: Color.mOnSurface - colorBorder: Color.transparent - colorBorderHover: Color.transparent + colorBorder: "transparent" + colorBorderHover: "transparent" border.color: Style.capsuleBorderColor border.width: Style.capsuleBorderWidth diff --git a/Modules/Bar/Widgets/Workspace.qml b/Modules/Bar/Widgets/Workspace.qml index 899a2672d..c4021ab04 100644 --- a/Modules/Bar/Widgets/Workspace.qml +++ b/Modules/Bar/Widgets/Workspace.qml @@ -604,7 +604,7 @@ Item { width: workspacePillContainer.width + 18 * root.masterProgress * scale height: workspacePillContainer.height + 18 * root.masterProgress * scale radius: width / 2 - color: Color.transparent + color: "transparent" border.color: root.effectColor border.width: Math.max(1, Math.round((2 + 6 * (1.0 - root.masterProgress)))) opacity: root.effectsActive && model.isFocused ? (1.0 - root.masterProgress) * 0.7 : 0 @@ -752,7 +752,7 @@ Item { width: workspacePillContainerVertical.width + 18 * root.masterProgress * scale height: workspacePillContainerVertical.height + 18 * root.masterProgress * scale radius: width / 2 - color: Color.transparent + color: "transparent" border.color: root.effectColor border.width: Math.max(1, Math.round((2 + 6 * (1.0 - root.masterProgress)))) opacity: root.effectsActive && model.isFocused ? (1.0 - root.masterProgress) * 0.7 : 0 @@ -955,7 +955,7 @@ Item { width: groupedWorkspaceNumberContainer.width + 12 * root.masterProgress height: groupedWorkspaceNumberContainer.height + 12 * root.masterProgress radius: width / 2 - color: Color.transparent + color: "transparent" border.color: root.effectColor border.width: Math.max(1, Math.round((2 + 4 * (1.0 - root.masterProgress)))) opacity: root.effectsActive && groupedContainer.workspaceModel.isFocused ? (1.0 - root.masterProgress) * 0.7 : 0 diff --git a/Modules/Cards/AudioCard.qml b/Modules/Cards/AudioCard.qml index 22d2fab17..0857c0053 100644 --- a/Modules/Cards/AudioCard.qml +++ b/Modules/Cards/AudioCard.qml @@ -152,7 +152,7 @@ NBox { icon: AudioService.muted ? "volume-off" : "volume-high" baseSize: Style.baseWidgetSize * 0.5 colorFg: AudioService.muted ? Color.mError : Color.mOnSurface - colorBg: Color.transparent + colorBg: "transparent" colorBgHover: Color.mHover colorFgHover: Color.mOnHover onClicked: { @@ -224,7 +224,7 @@ NBox { icon: AudioService.inputMuted ? "microphone-off" : "microphone" baseSize: Style.baseWidgetSize * 0.5 colorFg: AudioService.inputMuted ? Color.mError : Color.mOnSurface - colorBg: Color.transparent + colorBg: "transparent" colorBgHover: Color.mHover colorFgHover: Color.mOnHover onClicked: AudioService.setInputMuted(!AudioService.inputMuted) diff --git a/Modules/Cards/BrightnessCard.qml b/Modules/Cards/BrightnessCard.qml index bd07a58d6..5cbfd1e29 100644 --- a/Modules/Cards/BrightnessCard.qml +++ b/Modules/Cards/BrightnessCard.qml @@ -91,7 +91,7 @@ NBox { } baseSize: Style.baseWidgetSize * 0.5 colorFg: Color.mOnSurface - colorBg: Color.transparent + colorBg: "transparent" colorBgHover: Color.mHover colorFgHover: Color.mOnHover } diff --git a/Modules/Cards/CalendarMonthCard.qml b/Modules/Cards/CalendarMonthCard.qml index 38b694fe7..cd97f11b6 100644 --- a/Modules/Cards/CalendarMonthCard.qml +++ b/Modules/Cards/CalendarMonthCard.qml @@ -342,7 +342,7 @@ NBox { height: Style.baseWidgetSize * 0.9 anchors.centerIn: parent radius: Style.radiusM - color: modelData.today ? Color.mSecondary : Color.transparent + color: modelData.today ? Color.mSecondary : "transparent" NText { anchors.centerIn: parent diff --git a/Modules/Cards/MediaCard.qml b/Modules/Cards/MediaCard.qml index 631d80ea8..c0e5ce27f 100644 --- a/Modules/Cards/MediaCard.qml +++ b/Modules/Cards/MediaCard.qml @@ -129,7 +129,7 @@ NBox { // Border Rectangle { anchors.fill: parent - color: Color.transparent + color: "transparent" border.color: Style.boxBorderColor border.width: Style.borderS radius: Style.radiusM @@ -197,7 +197,7 @@ NBox { height: Style.barHeight visible: MediaService.getAvailablePlayers().length > 1 radius: Style.radiusM - color: Color.transparent + color: "transparent" property var currentPlayer: MediaService.getAvailablePlayers()[MediaService.selectedPlayerIndex] diff --git a/Modules/Cards/TimerCard.qml b/Modules/Cards/TimerCard.qml index 4ada764d9..a6628eee0 100644 --- a/Modules/Cards/TimerCard.qml +++ b/Modules/Cards/TimerCard.qml @@ -434,7 +434,7 @@ NBox { Layout.fillWidth: true Layout.preferredWidth: 0 implicitHeight: startButton.implicitHeight - color: Color.transparent + color: "transparent" NButton { id: startButton @@ -456,7 +456,7 @@ NBox { Layout.fillWidth: true Layout.preferredWidth: 0 implicitHeight: resetButton.implicitHeight - color: Color.transparent + color: "transparent" NButton { id: resetButton diff --git a/Modules/DesktopWidgets/DesktopWidgets.qml b/Modules/DesktopWidgets/DesktopWidgets.qml index ec4425ad4..5c30dc9c6 100644 --- a/Modules/DesktopWidgets/DesktopWidgets.qml +++ b/Modules/DesktopWidgets/DesktopWidgets.qml @@ -54,7 +54,7 @@ Variants { sourceComponent: PanelWindow { id: window - color: Color.transparent + color: "transparent" screen: screenLoader.modelData WlrLayershell.layer: WlrLayer.Bottom diff --git a/Modules/DesktopWidgets/DraggableDesktopWidget.qml b/Modules/DesktopWidgets/DraggableDesktopWidget.qml index c4c8cac85..64b6c926d 100644 --- a/Modules/DesktopWidgets/DraggableDesktopWidget.qml +++ b/Modules/DesktopWidgets/DraggableDesktopWidget.qml @@ -343,8 +343,8 @@ Item { id: decorationRect anchors.fill: parent anchors.margins: -outlineMargin - color: DesktopWidgetRegistry.editMode ? Qt.rgba(Color.mPrimary.r, Color.mPrimary.g, Color.mPrimary.b, 0.1) : Color.transparent - border.color: (DesktopWidgetRegistry.editMode || internal.isDragging) ? (internal.isDragging ? Color.mOutline : Color.mPrimary) : Color.transparent + color: DesktopWidgetRegistry.editMode ? Qt.rgba(Color.mPrimary.r, Color.mPrimary.g, Color.mPrimary.b, 0.1) : "transparent" + border.color: (DesktopWidgetRegistry.editMode || internal.isDragging) ? (internal.isDragging ? Color.mOutline : Color.mPrimary) : "transparent" border.width: DesktopWidgetRegistry.editMode ? 3 : 0 radius: Math.round(Style.radiusL * root.widgetScale) z: -1 @@ -367,7 +367,7 @@ Item { shadowEnabled: true shadowBlur: Style.shadowBlur * 1.5 shadowOpacity: Style.shadowOpacity * 0.6 - shadowColor: Color.black + shadowColor: "black" shadowHorizontalOffset: Settings.data.general.shadowOffsetX shadowVerticalOffset: Settings.data.general.shadowOffsetY blurMax: Style.shadowBlurMax diff --git a/Modules/DesktopWidgets/Widgets/DesktopClock.qml b/Modules/DesktopWidgets/Widgets/DesktopClock.qml index e669d47f4..8b0e210cf 100644 --- a/Modules/DesktopWidgets/Widgets/DesktopClock.qml +++ b/Modules/DesktopWidgets/Widgets/DesktopClock.qml @@ -42,7 +42,7 @@ DraggableDesktopWidget { NClock { now: root.now clockStyle: root.clockStyle - backgroundColor: Color.transparent + backgroundColor: "transparent" clockColor: clockTextColor progressColor: Color.mPrimary opacity: root.widgetOpacity diff --git a/Modules/Dock/Dock.qml b/Modules/Dock/Dock.qml index f4869736a..fea58dd51 100644 --- a/Modules/Dock/Dock.qml +++ b/Modules/Dock/Dock.qml @@ -303,7 +303,7 @@ Loader { anchors.left: true anchors.right: true focusable: false - color: Color.transparent + color: "transparent" WlrLayershell.namespace: "noctalia-dock-peek-" + (screen?.name || "unknown") WlrLayershell.exclusionMode: ExclusionMode.Ignore @@ -343,7 +343,7 @@ Loader { screen: modelData focusable: false - color: Color.transparent + color: "transparent" WlrLayershell.namespace: "noctalia-dock-" + (screen?.name || "unknown") WlrLayershell.exclusionMode: exclusive ? ExclusionMode.Auto : ExclusionMode.Ignore diff --git a/Modules/Dock/DockMenu.qml b/Modules/Dock/DockMenu.qml index 057bf3033..cd654de1a 100644 --- a/Modules/Dock/DockMenu.qml +++ b/Modules/Dock/DockMenu.qml @@ -28,7 +28,7 @@ PopupWindow { implicitWidth: menuContentWidth + (Style.marginM * 2) implicitHeight: contextMenuColumn.implicitHeight + (Style.marginM * 2) - color: Color.transparent + color: "transparent" visible: false // Hidden text element for measuring text width @@ -360,7 +360,7 @@ PopupWindow { Rectangle { Layout.fillWidth: true height: 32 - color: root.hoveredItem === index ? Color.mHover : Color.transparent + color: root.hoveredItem === index ? Color.mHover : "transparent" radius: Style.radiusXS Row { diff --git a/Modules/LockScreen/LockScreen.qml b/Modules/LockScreen/LockScreen.qml index 84f2ffbaa..e5a13b5a6 100644 --- a/Modules/LockScreen/LockScreen.qml +++ b/Modules/LockScreen/LockScreen.qml @@ -249,7 +249,7 @@ Loader { anchors.fill: parent visible: Settings.data.general.showScreenCorners - property color cornerColor: Settings.data.general.forceBlackScreenCorners ? Color.black : Color.mSurface + property color cornerColor: Settings.data.general.forceBlackScreenCorners ? "black" : Color.mSurface property real cornerRadius: Style.screenRadius property real cornerSize: Style.screenRadius @@ -425,12 +425,12 @@ Loader { Layout.preferredHeight: 70 Layout.alignment: Qt.AlignVCenter radius: width / 2 - color: Color.transparent + color: "transparent" Rectangle { anchors.fill: parent radius: parent.radius - color: Color.transparent + color: "transparent" border.color: Qt.alpha(Color.mPrimary, 0.8) border.width: 2 @@ -725,7 +725,7 @@ Loader { Layout.fillWidth: !(Settings.data.location.weatherEnabled && LocationService.data.weather !== null) Layout.preferredHeight: 50 radius: Style.radiusL - color: Color.transparent + color: "transparent" clip: true visible: MediaService.currentPlayer && MediaService.canPlay @@ -778,7 +778,7 @@ Loader { Layout.preferredWidth: 34 Layout.preferredHeight: 34 radius: Math.min(Style.radiusL, width / 2) - color: Color.transparent + color: "transparent" clip: true NImageRounded { @@ -1150,7 +1150,7 @@ Loader { width: 36 height: 36 radius: Math.min(Style.iRadiusL, width / 2) - color: eyeButtonArea.containsMouse ? Color.mPrimary : Color.transparent + color: eyeButtonArea.containsMouse ? Color.mPrimary : "transparent" visible: passwordInput.text.length > 0 enabled: !lockContext.unlockInProgress @@ -1193,7 +1193,7 @@ Loader { width: 36 height: 36 radius: Math.min(Style.iRadiusL, width / 2) - color: submitButtonArea.containsMouse ? Color.mPrimary : Color.transparent + color: submitButtonArea.containsMouse ? Color.mPrimary : "transparent" border.color: Color.mPrimary border.width: Style.borderS enabled: !lockContext.unlockInProgress diff --git a/Modules/MainScreen/Backgrounds/PanelBackground.qml b/Modules/MainScreen/Backgrounds/PanelBackground.qml index 9e9eeb99d..4ced652d0 100644 --- a/Modules/MainScreen/Backgrounds/PanelBackground.qml +++ b/Modules/MainScreen/Backgrounds/PanelBackground.qml @@ -41,7 +41,7 @@ ShapePath { // Effective background color: use panel's if defined, else default readonly property color effectiveBackgroundColor: { if (!assignedPanel) - return Color.transparent; + return "transparent"; if (assignedPanel.panelBackgroundColor !== undefined) { return assignedPanel.panelBackgroundColor; } diff --git a/Modules/MainScreen/BarContentWindow.qml b/Modules/MainScreen/BarContentWindow.qml index b7d0cd1cb..c60720bdd 100644 --- a/Modules/MainScreen/BarContentWindow.qml +++ b/Modules/MainScreen/BarContentWindow.qml @@ -18,7 +18,7 @@ PanelWindow { id: barWindow // Note: screen property is inherited from PanelWindow and should be set by parent - color: Color.transparent // Transparent - background is in MainScreen below + color: "transparent" // Transparent - background is in MainScreen below Component.onCompleted: { Logger.d("BarContentWindow", "Bar content window created for screen:", barWindow.screen?.name); diff --git a/Modules/MainScreen/MainScreen.qml b/Modules/MainScreen/MainScreen.qml index 8cd6ef194..286518a02 100644 --- a/Modules/MainScreen/MainScreen.qml +++ b/Modules/MainScreen/MainScreen.qml @@ -81,7 +81,7 @@ PanelWindow { if (dimmerOpacity > 0 && isPanelOpen && !isPanelClosing) { return Qt.alpha(Color.mShadow, dimmerOpacity); } - return Color.transparent; + return "transparent"; } Behavior on color { diff --git a/Modules/MainScreen/PopupMenuWindow.qml b/Modules/MainScreen/PopupMenuWindow.qml index 6ac90ec67..893fd67f2 100644 --- a/Modules/MainScreen/PopupMenuWindow.qml +++ b/Modules/MainScreen/PopupMenuWindow.qml @@ -29,7 +29,7 @@ PanelWindow { anchors.right: true anchors.bottom: true visible: false - color: Color.transparent + color: "transparent" // Use Top layer (same as MainScreen) for proper event handling WlrLayershell.layer: WlrLayer.Top diff --git a/Modules/MainScreen/ScreenCorners.qml b/Modules/MainScreen/ScreenCorners.qml index 09429ae8d..d91cc4497 100644 --- a/Modules/MainScreen/ScreenCorners.qml +++ b/Modules/MainScreen/ScreenCorners.qml @@ -31,7 +31,7 @@ Item { id: cornersPath // Corner configuration - readonly property color cornerColor: Settings.data.general.forceBlackScreenCorners ? Color.black : Color.mSurface + readonly property color cornerColor: Settings.data.general.forceBlackScreenCorners ? "black" : Color.mSurface readonly property real cornerRadius: Style.screenRadius readonly property real cornerSize: Style.screenRadius @@ -50,7 +50,7 @@ Item { // ShapePath configuration strokeWidth: -1 // No stroke, fill only - fillColor: shouldShow ? cornerColor : Color.transparent + fillColor: shouldShow ? cornerColor : "transparent" // Smooth color animation Behavior on fillColor { diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index d9918b144..bcd1b527f 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -48,7 +48,7 @@ Variants { WlrLayershell.layer: (Settings.data.notifications?.overlayLayer) ? WlrLayer.Overlay : WlrLayer.Top WlrLayershell.exclusionMode: ExclusionMode.Ignore - color: Color.transparent + color: "transparent" // Make shadow area click-through, only notification content is clickable mask: Region { @@ -230,7 +230,7 @@ Variants { anchors.left: parent.left anchors.right: parent.right height: 2 - color: Color.transparent + color: "transparent" readonly property real availableWidth: parent.width - (2 * parent.radius) @@ -422,7 +422,7 @@ Variants { Layout.alignment: Qt.AlignVCenter radius: Math.min(Style.radiusL, Layout.preferredWidth / 2) imagePath: model.originalImage || "" - borderColor: Color.transparent + borderColor: "transparent" borderWidth: 0 fallbackIcon: "bell" fallbackIconSize: 24 diff --git a/Modules/OSD/OSD.qml b/Modules/OSD/OSD.qml index 6b7735747..24a40a772 100644 --- a/Modules/OSD/OSD.qml +++ b/Modules/OSD/OSD.qml @@ -523,7 +523,7 @@ Variants { implicitWidth: verticalMode ? longVWidth : (root.currentOSDType === OSD.Type.CustomText ? customTextHWidth : (isShortMode ? lockKeyHWidth : longHWidth)) implicitHeight: verticalMode ? (root.currentOSDType === OSD.Type.CustomText ? customTextVHeight : (isShortMode ? lockKeyVHeight : longVHeight)) : longHHeight - color: Color.transparent + color: "transparent" WlrLayershell.namespace: "noctalia-osd-" + (screen?.name || "unknown") WlrLayershell.keyboardFocus: WlrKeyboardFocus.None diff --git a/Modules/Panels/Bluetooth/BluetoothPanel.qml b/Modules/Panels/Bluetooth/BluetoothPanel.qml index 519f82704..5c2e72ff1 100644 --- a/Modules/Panels/Bluetooth/BluetoothPanel.qml +++ b/Modules/Panels/Bluetooth/BluetoothPanel.qml @@ -17,7 +17,7 @@ SmartPanel { panelContent: Rectangle { id: panelContent - color: Color.transparent + color: "transparent" // Calculate content height based on header + devices list (or minimum for empty states) property real headerHeight: headerRow.implicitHeight + Style.marginM * 2 diff --git a/Modules/Panels/Launcher/Launcher.qml b/Modules/Panels/Launcher/Launcher.qml index ed4f5ccc8..f0925bf93 100644 --- a/Modules/Panels/Launcher/Launcher.qml +++ b/Modules/Panels/Launcher/Launcher.qml @@ -641,7 +641,7 @@ SmartPanel { // --------------------------------------------------- panelContent: Rectangle { id: ui - color: Color.transparent + color: "transparent" opacity: resultsReady ? 1.0 : 0.0 // Preview Panel (external) - uses provider's preview component diff --git a/Modules/Panels/NotificationHistory/NotificationHistoryPanel.qml b/Modules/Panels/NotificationHistory/NotificationHistoryPanel.qml index fe891d293..c9b5e249f 100644 --- a/Modules/Panels/NotificationHistory/NotificationHistoryPanel.qml +++ b/Modules/Panels/NotificationHistory/NotificationHistoryPanel.qml @@ -22,7 +22,7 @@ SmartPanel { panelContent: Rectangle { id: panelContent - color: Color.transparent + color: "transparent" // State (lazy-loaded with panelContent) property var rangeCounts: [0, 0, 0, 0] @@ -249,7 +249,7 @@ SmartPanel { fontSize: Style.fontSizeXS outlined: false - backgroundColor: isActive ? Color.mPrimary : (hovered ? Color.mHover : Color.transparent) + backgroundColor: isActive ? Color.mPrimary : (hovered ? Color.mHover : "transparent") textColor: isActive ? Color.mOnPrimary : (hovered ? Color.mOnHover : Color.mOnSurface) hoverColor: backgroundColor @@ -392,7 +392,7 @@ SmartPanel { height: Math.round(40 * Style.uiScaleRatio) radius: Math.min(Style.radiusL, width / 2) imagePath: model.cachedImage || model.originalImage || "" - borderColor: Color.transparent + borderColor: "transparent" borderWidth: 0 fallbackIcon: "bell" fallbackIconSize: 24 @@ -421,7 +421,7 @@ SmartPanel { else if (model.urgency === 0) return Color.mOnSurfaceVariant; else - return Color.transparent; + return "transparent"; } } @@ -516,7 +516,7 @@ SmartPanel { // Overlay gradient to smooth the hard cut due to scrolling at the bottom (only visible when scrollable) Rectangle { anchors.fill: parent - color: Color.transparent + color: "transparent" visible: scrollView.ScrollBar.vertical && scrollView.ScrollBar.vertical.size < 1.0 opacity: { const scrollBar = scrollView.ScrollBar.vertical; @@ -533,11 +533,11 @@ SmartPanel { gradient: Gradient { GradientStop { position: 0.0 - color: Color.transparent + color: "transparent" } GradientStop { position: 0.85 - color: Color.transparent + color: "transparent" } GradientStop { position: 1.0 diff --git a/Modules/Panels/SessionMenu/SessionMenu.qml b/Modules/Panels/SessionMenu/SessionMenu.qml index 5dd9b985c..17cd6be40 100644 --- a/Modules/Panels/SessionMenu/SessionMenu.qml +++ b/Modules/Panels/SessionMenu/SessionMenu.qml @@ -19,7 +19,7 @@ SmartPanel { readonly property bool largeButtonsLayout: Settings.data.sessionMenu.largeButtonsLayout || "grid" // Make panel background transparent for large buttons style - panelBackgroundColor: largeButtonsStyle ? Color.transparent : Color.mSurface + panelBackgroundColor: largeButtonsStyle ? "transparent" : Color.mSurface preferredWidth: largeButtonsStyle ? 0 : Math.round(440 * Style.uiScaleRatio) preferredWidthRatio: largeButtonsStyle ? 1.0 : 0 @@ -438,7 +438,7 @@ SmartPanel { panelContent: Rectangle { id: panelContent - color: Color.transparent + color: "transparent" focus: true // For large buttons style, use full screen dimensions @@ -557,7 +557,7 @@ SmartPanel { tooltipText: timerActive ? I18n.tr("tooltips.cancel-timer") : I18n.tr("tooltips.close") Layout.alignment: Qt.AlignVCenter baseSize: Style.baseWidgetSize * 0.7 - colorBg: timerActive ? Qt.alpha(Color.mError, 0.08) : Color.transparent + colorBg: timerActive ? Qt.alpha(Color.mError, 0.08) : "transparent" colorFg: timerActive ? Color.mError : Color.mOnSurface onClicked: { if (timerActive) { @@ -641,7 +641,7 @@ SmartPanel { if (isSelected || mouseArea.containsMouse) { return Color.mHover; } - return Color.transparent; + return "transparent"; } border.width: pending ? Math.max(Style.borderM) : 0 diff --git a/Modules/Panels/Settings/Bar/WidgetSettings/TraySettings.qml b/Modules/Panels/Settings/Bar/WidgetSettings/TraySettings.qml index f371b7277..cf5873493 100644 --- a/Modules/Panels/Settings/Bar/WidgetSettings/TraySettings.qml +++ b/Modules/Panels/Settings/Bar/WidgetSettings/TraySettings.qml @@ -110,7 +110,7 @@ ColumnLayout { id: itemBackground anchors.fill: parent anchors.margins: Style.marginXS - color: Color.transparent // Make background transparent + color: "transparent" // Make background transparent border.color: Color.mOutline border.width: Style.borderS radius: Style.radiusS diff --git a/Modules/Panels/Settings/SettingsContent.qml b/Modules/Panels/Settings/SettingsContent.qml index d771eae2b..838b594fd 100644 --- a/Modules/Panels/Settings/SettingsContent.qml +++ b/Modules/Panels/Settings/SettingsContent.qml @@ -352,8 +352,8 @@ Item { Layout.alignment: Qt.AlignTop radius: sidebar.panelVeryTransparent ? Style.radiusM : 0 - color: sidebar.panelVeryTransparent ? Color.mSurfaceVariant : Color.transparent - border.color: sidebar.panelVeryTransparent ? Style.boxBorderColor : Color.transparent + color: sidebar.panelVeryTransparent ? Color.mSurfaceVariant : "transparent" + border.color: sidebar.panelVeryTransparent ? Style.boxBorderColor : "transparent" Behavior on Layout.preferredWidth { NumberAnimation { @@ -380,7 +380,7 @@ Item { height: parent.height anchors.left: parent.left radius: Style.radiusS - color: toggleMouseArea.containsMouse ? Color.mHover : Color.transparent + color: toggleMouseArea.containsMouse ? Color.mHover : "transparent" Behavior on color { ColorAnimation { @@ -440,7 +440,7 @@ Item { width: sidebarList.width - (sidebarList.verticalScrollBarActive ? Style.marginM : 0) height: tabEntryRow.implicitHeight + Style.marginS * 2 radius: Style.radiusS - color: selected ? Color.mPrimary : (tabItem.hovering ? Color.mHover : Color.transparent) + color: selected ? Color.mPrimary : (tabItem.hovering ? Color.mHover : "transparent") readonly property bool selected: index === root.currentTabIndex property bool hovering: false property color tabTextColor: selected ? Color.mOnPrimary : (tabItem.hovering ? Color.mOnHover : Color.mOnSurface) @@ -551,7 +551,7 @@ Item { anchors.fill: parent anchors.margins: Style.borderS radius: Style.radiusM - color: Color.transparent + color: "transparent" visible: sidebarList.verticalScrollBarActive opacity: (sidebarList.contentY + sidebarList.height >= sidebarList.contentHeight - 10) ? 0 : 1 @@ -565,11 +565,11 @@ Item { gradient: Gradient { GradientStop { position: 0.0 - color: Color.transparent + color: "transparent" } GradientStop { position: 0.95 - color: Color.transparent + color: "transparent" } GradientStop { position: 1.0 @@ -633,7 +633,7 @@ Item { Layout.fillHeight: true Layout.leftMargin: -Style.marginM Layout.rightMargin: -Style.marginL - color: Color.transparent + color: "transparent" Repeater { model: root.tabsModel @@ -683,7 +683,7 @@ Item { // Overlay gradient for content scrolling Rectangle { anchors.fill: parent - color: Color.transparent + color: "transparent" visible: root.activeScrollView && root.activeScrollView.ScrollBar.vertical && root.activeScrollView.ScrollBar.vertical.size < 1.0 opacity: { if (!root.activeScrollView) @@ -702,11 +702,11 @@ Item { gradient: Gradient { GradientStop { position: 0.0 - color: Color.transparent + color: "transparent" } GradientStop { position: 0.95 - color: Color.transparent + color: "transparent" } GradientStop { position: 1.0 diff --git a/Modules/Panels/Settings/SettingsPanel.qml b/Modules/Panels/Settings/SettingsPanel.qml index d4d57ebd5..65b8b4278 100644 --- a/Modules/Panels/Settings/SettingsPanel.qml +++ b/Modules/Panels/Settings/SettingsPanel.qml @@ -221,7 +221,7 @@ SmartPanel { panelContent: Rectangle { id: panelContent - color: Color.transparent + color: "transparent" SettingsContent { id: settingsContent diff --git a/Modules/Panels/Settings/SettingsPanelWindow.qml b/Modules/Panels/Settings/SettingsPanelWindow.qml index 515cacac0..7acbf535e 100644 --- a/Modules/Panels/Settings/SettingsPanelWindow.qml +++ b/Modules/Panels/Settings/SettingsPanelWindow.qml @@ -63,7 +63,7 @@ FloatingWindow { // Main content Rectangle { anchors.fill: parent - color: Color.transparent + color: "transparent" radius: Style.radiusL SettingsContent { diff --git a/Modules/Panels/Settings/Tabs/AboutTab.qml b/Modules/Panels/Settings/Tabs/AboutTab.qml index cefd86c0c..e33f983e2 100644 --- a/Modules/Panels/Settings/Tabs/AboutTab.qml +++ b/Modules/Panels/Settings/Tabs/AboutTab.qml @@ -232,7 +232,7 @@ ColumnLayout { width: supportRow.implicitWidth + Style.marginXL height: supportRow.implicitHeight + Style.marginM radius: Style.radiusS - color: supportArea.containsMouse ? Qt.alpha(Color.mOnSurface, 0.05) : Color.transparent + color: supportArea.containsMouse ? Qt.alpha(Color.mOnSurface, 0.05) : "transparent" border.width: 0 Behavior on color { @@ -304,7 +304,7 @@ ColumnLayout { width: Math.max(Math.round(topContributorsFlow.width / 2 - Style.marginM - 1), Math.round(Style.baseWidgetSize * 4)) height: Math.round(Style.baseWidgetSize * 2.3) radius: Style.radiusM - color: contributorArea.containsMouse ? Color.mHover : Color.transparent + color: contributorArea.containsMouse ? Color.mHover : "transparent" border.width: 1 border.color: contributorArea.containsMouse ? Color.mPrimary : Color.mOutline @@ -382,7 +382,7 @@ ColumnLayout { Rectangle { visible: wrapper.isRounded anchors.fill: parent - color: Color.transparent + color: "transparent" radius: width * 0.5 border.width: Style.borderM border.color: Color.mPrimary @@ -468,7 +468,7 @@ ColumnLayout { width: nameText.implicitWidth + Style.marginM * 2 height: nameText.implicitHeight + Style.marginS * 2 radius: Style.radiusS - color: nameArea.containsMouse ? Color.mHover : Color.transparent + color: nameArea.containsMouse ? Color.mHover : "transparent" border.width: Style.borderS border.color: nameArea.containsMouse ? Color.mPrimary : Color.mOutline diff --git a/Modules/Panels/Settings/Tabs/SessionMenu/SessionMenuTab.qml b/Modules/Panels/Settings/Tabs/SessionMenu/SessionMenuTab.qml index 1c05d06be..0727f9564 100644 --- a/Modules/Panels/Settings/Tabs/SessionMenu/SessionMenuTab.qml +++ b/Modules/Panels/Settings/Tabs/SessionMenu/SessionMenuTab.qml @@ -339,8 +339,8 @@ ColumnLayout { Rectangle { anchors.fill: parent radius: Style.radiusM - color: delegateItem.dragging ? Color.mSurfaceVariant : Color.transparent - border.color: delegateItem.dragging ? Color.mOutline : Color.transparent + color: delegateItem.dragging ? Color.mSurfaceVariant : "transparent" + border.color: delegateItem.dragging ? Color.mOutline : "transparent" border.width: Style.borderS Behavior on color { @@ -361,7 +361,7 @@ ColumnLayout { Layout.preferredHeight: Style.baseWidgetSize * 0.7 Layout.alignment: Qt.AlignVCenter radius: Style.radiusXS - color: dragHandleMouseArea.containsMouse ? Color.mSurfaceVariant : Color.transparent + color: dragHandleMouseArea.containsMouse ? Color.mSurfaceVariant : "transparent" Behavior on color { ColorAnimation { diff --git a/Modules/Panels/Settings/Tabs/WallpaperTab.qml b/Modules/Panels/Settings/Tabs/WallpaperTab.qml index dd69bfd17..a2e25e66d 100644 --- a/Modules/Panels/Settings/Tabs/WallpaperTab.qml +++ b/Modules/Panels/Settings/Tabs/WallpaperTab.qml @@ -433,7 +433,7 @@ ColumnLayout { implicitHeight: Math.max(Style.baseWidgetSize * 0.55, 24) implicitWidth: chipLabel.implicitWidth + Style.marginM * 1.5 border.width: Style.borderS - border.color: selected ? Color.transparent : Color.mOutline + border.color: selected ? "transparent" : Color.mOutline MouseArea { anchors.fill: parent diff --git a/Modules/Panels/Wallpaper/WallpaperPanel.qml b/Modules/Panels/Wallpaper/WallpaperPanel.qml index 8735105e4..ffab6c267 100644 --- a/Modules/Panels/Wallpaper/WallpaperPanel.qml +++ b/Modules/Panels/Wallpaper/WallpaperPanel.qml @@ -170,7 +170,7 @@ SmartPanel { } } - color: Color.transparent + color: "transparent" // Wallhaven settings popup Loader { @@ -588,11 +588,11 @@ SmartPanel { gradient: Gradient { GradientStop { position: 0.0 - color: Color.transparent + color: "transparent" } GradientStop { position: 0.9 - color: Color.transparent + color: "transparent" } GradientStop { position: 1.0 @@ -786,7 +786,7 @@ SmartPanel { background: Rectangle { implicitWidth: parent.handleWidth implicitHeight: 100 - color: Color.transparent + color: "transparent" opacity: parent.policy === ScrollBar.AlwaysOn || parent.active ? 0.3 : 0.0 radius: parent.handleRadius / 2 @@ -1155,7 +1155,7 @@ SmartPanel { background: Rectangle { implicitWidth: parent.handleWidth implicitHeight: 100 - color: Color.transparent + color: "transparent" opacity: parent.policy === ScrollBar.AlwaysOn || parent.active ? 0.3 : 0.0 radius: parent.handleRadius / 2 @@ -1182,7 +1182,7 @@ SmartPanel { id: imageContainer Layout.fillWidth: true Layout.preferredHeight: Math.round(wallhavenGridView.itemSize * 0.67) - color: Color.transparent + color: "transparent" Image { id: img @@ -1198,7 +1198,7 @@ SmartPanel { Rectangle { anchors.fill: parent - color: Color.transparent + color: "transparent" border.color: wallhavenGridView.currentIndex === index ? Color.mHover : Color.mSurface border.width: Math.max(1, Style.borderL * 1.5) } diff --git a/Modules/Panels/WiFi/WiFiNetworksList.qml b/Modules/Panels/WiFi/WiFiNetworksList.qml index b39ea110d..ee1f124ad 100644 --- a/Modules/Panels/WiFi/WiFiNetworksList.qml +++ b/Modules/Panels/WiFi/WiFiNetworksList.qml @@ -209,7 +209,7 @@ NBox { Rectangle { visible: modelData.cached && !modelData.connected && NetworkService.forgettingNetwork !== modelData.ssid && NetworkService.disconnectingFrom !== modelData.ssid - color: Color.transparent + color: "transparent" border.color: Color.mOutline border.width: Style.borderS radius: height * 0.5 diff --git a/Modules/Panels/WiFi/WiFiPanel.qml b/Modules/Panels/WiFi/WiFiPanel.qml index 8d16c613a..40986a27c 100644 --- a/Modules/Panels/WiFi/WiFiPanel.qml +++ b/Modules/Panels/WiFi/WiFiPanel.qml @@ -81,7 +81,7 @@ SmartPanel { } panelContent: Rectangle { - color: Color.transparent + color: "transparent" // Calculate content height based on header + networks list (or minimum for empty states) property real headerHeight: headerRow.implicitHeight + Style.marginM * 2 diff --git a/Modules/Toast/ToastScreen.qml b/Modules/Toast/ToastScreen.qml index 843a3c551..e1244e84d 100644 --- a/Modules/Toast/ToastScreen.qml +++ b/Modules/Toast/ToastScreen.qml @@ -192,7 +192,7 @@ Item { implicitWidth: Math.round(toastItem.width) implicitHeight: Math.round(toastItem.height) - color: Color.transparent + color: "transparent" WlrLayershell.layer: (Settings.data.notifications && Settings.data.notifications.overlayLayer) ? WlrLayer.Overlay : WlrLayer.Top WlrLayershell.namespace: "noctalia-toast-" + (screen?.name || "unknown") diff --git a/Modules/Tooltip/Tooltip.qml b/Modules/Tooltip/Tooltip.qml index e7d29dc50..0ded79306 100644 --- a/Modules/Tooltip/Tooltip.qml +++ b/Modules/Tooltip/Tooltip.qml @@ -29,7 +29,7 @@ PopupWindow { property int screenY: 0 visible: false - color: Color.transparent + color: "transparent" anchor.item: targetItem anchor.rect.x: anchorX diff --git a/Services/Control/CurrentScreenDetector.qml b/Services/Control/CurrentScreenDetector.qml index 2915ce1fa..3c24ce4e6 100644 --- a/Services/Control/CurrentScreenDetector.qml +++ b/Services/Control/CurrentScreenDetector.qml @@ -101,7 +101,7 @@ Item { sourceComponent: PanelWindow { implicitWidth: 0 implicitHeight: 0 - color: Color.transparent + color: "transparent" WlrLayershell.exclusionMode: ExclusionMode.Ignore WlrLayershell.namespace: "noctalia-screen-detector" mask: Region {} diff --git a/Services/UI/ImageCacheService.qml b/Services/UI/ImageCacheService.qml index 1fa3532a3..39f65a7d0 100644 --- a/Services/UI/ImageCacheService.qml +++ b/Services/UI/ImageCacheService.qml @@ -428,7 +428,7 @@ Singleton { implicitHeight: 0 WlrLayershell.exclusionMode: ExclusionMode.Ignore WlrLayershell.namespace: "noctalia-image-cache-renderer" - color: Color.transparent + color: "transparent" mask: Region {} Image { diff --git a/Widgets/NButton.qml b/Widgets/NButton.qml index 02df26fbf..795b8d1e5 100644 --- a/Widgets/NButton.qml +++ b/Widgets/NButton.qml @@ -40,10 +40,10 @@ Rectangle { radius: root.buttonRadius color: { if (!enabled) - return outlined ? Color.transparent : Qt.lighter(Color.mSurfaceVariant, 1.2); + return outlined ? "transparent" : Qt.lighter(Color.mSurfaceVariant, 1.2); if (hovered) return hoverColor; - return outlined ? Color.transparent : backgroundColor; + return outlined ? "transparent" : backgroundColor; } border.width: outlined ? Style.borderS : 0 @@ -52,7 +52,7 @@ Rectangle { return Color.mOutline; if (hovered) return backgroundColor; - return outlined ? backgroundColor : Color.transparent; + return outlined ? backgroundColor : "transparent"; } opacity: enabled ? 1.0 : 0.6 diff --git a/Widgets/NCollapsible.qml b/Widgets/NCollapsible.qml index cf92d88d7..10ebc5315 100644 --- a/Widgets/NCollapsible.qml +++ b/Widgets/NCollapsible.qml @@ -58,7 +58,7 @@ ColumnLayout { // Hover effect overlay Rectangle { anchors.fill: parent - color: headerArea.containsMouse ? Color.mOnSurface : Color.transparent + color: headerArea.containsMouse ? Color.mOnSurface : "transparent" opacity: headerArea.containsMouse ? 0.08 : 0 radius: headerContainer.radius // Reference the container's radius directly diff --git a/Widgets/NColorPicker.qml b/Widgets/NColorPicker.qml index 4919986f1..3118eae70 100644 --- a/Widgets/NColorPicker.qml +++ b/Widgets/NColorPicker.qml @@ -8,7 +8,7 @@ Rectangle { id: root property var screen - property color selectedColor: Color.black + property color selectedColor: "black" signal colorSelected(color color) diff --git a/Widgets/NColorPickerDialog.qml b/Widgets/NColorPickerDialog.qml index ad7cbe105..83afb220c 100644 --- a/Widgets/NColorPickerDialog.qml +++ b/Widgets/NColorPickerDialog.qml @@ -11,7 +11,7 @@ Popup { id: root property var screen - property color selectedColor: Color.black + property color selectedColor: "black" enum EditMode { R, @@ -113,7 +113,7 @@ Popup { family: Settings.data.ui.fontFixed pointSize: Style.fontSizeL font.weight: Style.fontWeightMedium - color: root.selectedColor.r + root.selectedColor.g + root.selectedColor.b > 1.5 ? Color.black : Color.white + color: root.selectedColor.r + root.selectedColor.g + root.selectedColor.b > 1.5 ? "black" : "white" Layout.alignment: Qt.AlignHCenter } @@ -121,7 +121,7 @@ Popup { text: "RGB(" + Math.round(root.selectedColor.r * 255) + ", " + Math.round(root.selectedColor.g * 255) + ", " + Math.round(root.selectedColor.b * 255) + ")" family: Settings.data.ui.fontFixed pointSize: Style.fontSizeM - color: root.selectedColor.r + root.selectedColor.g + root.selectedColor.b > 1.5 ? Color.black : Color.white + color: root.selectedColor.r + root.selectedColor.g + root.selectedColor.b > 1.5 ? "black" : "white" Layout.alignment: Qt.AlignHCenter } diff --git a/Widgets/NComboBox.qml b/Widgets/NComboBox.qml index b084c92ca..c85902768 100644 --- a/Widgets/NComboBox.qml +++ b/Widgets/NComboBox.qml @@ -225,7 +225,7 @@ RowLayout { background: Rectangle { implicitWidth: 6 implicitHeight: 100 - color: Color.transparent + color: "transparent" opacity: parent.active ? 0.3 : 0.0 radius: Style.iRadiusM / 2 @@ -245,7 +245,7 @@ RowLayout { width: listView.width height: delegateText.implicitHeight + Style.marginS * 2 radius: Style.iRadiusS - color: isHighlighted ? Color.mHover : Color.transparent + color: isHighlighted ? Color.mHover : "transparent" Behavior on color { ColorAnimation { diff --git a/Widgets/NContextMenu.qml b/Widgets/NContextMenu.qml index e9c63a1c7..e1dcb70a7 100644 --- a/Widgets/NContextMenu.qml +++ b/Widgets/NContextMenu.qml @@ -84,7 +84,7 @@ Popup { property var popup: root background: Rectangle { - color: menuItem.hovered && menuItem.enabled ? Color.mHover : Color.transparent + color: menuItem.hovered && menuItem.enabled ? Color.mHover : "transparent" radius: Style.iRadiusS Behavior on color { diff --git a/Widgets/NDivider.qml b/Widgets/NDivider.qml index 7320f5739..29753cae3 100644 --- a/Widgets/NDivider.qml +++ b/Widgets/NDivider.qml @@ -12,7 +12,7 @@ Rectangle { orientation: vertical ? Gradient.Vertical : Gradient.Horizontal GradientStop { position: 0.0 - color: Color.transparent + color: "transparent" } GradientStop { position: 0.1 @@ -24,7 +24,7 @@ Rectangle { } GradientStop { position: 1.0 - color: Color.transparent + color: "transparent" } } } diff --git a/Widgets/NDropShadow.qml b/Widgets/NDropShadow.qml index a25b286dd..0a223f40e 100644 --- a/Widgets/NDropShadow.qml +++ b/Widgets/NDropShadow.qml @@ -13,7 +13,7 @@ Item { property real shadowHorizontalOffset: Settings.data.general.shadowOffsetX property real shadowVerticalOffset: Settings.data.general.shadowOffsetY property real shadowOpacity: Style.shadowOpacity - property color shadowColor: Color.black + property color shadowColor: "black" property real shadowBlur: Style.shadowBlur layer.enabled: Settings.data.general.enableShadows && !PowerProfileService.noctaliaPerformanceMode diff --git a/Widgets/NFilePicker.qml b/Widgets/NFilePicker.qml index 3c9bfc59c..c811ff1d9 100644 --- a/Widgets/NFilePicker.qml +++ b/Widgets/NFilePicker.qml @@ -143,7 +143,7 @@ Popup { id: filePickerPanel anchors.fill: parent anchors.margins: Style.marginL - color: Color.transparent + color: "transparent" property string filterText: "" property var currentSelection: [] @@ -428,7 +428,7 @@ Popup { background: Rectangle { implicitWidth: 6 implicitHeight: 100 - color: Color.transparent + color: "transparent" opacity: parent.policy === ScrollBar.AlwaysOn || parent.active ? 0.3 : 0.0 radius: (Style.iRadiusM) / 2 Behavior on opacity { @@ -472,14 +472,14 @@ Popup { id: gridItem width: gridView.itemSize height: gridView.cellHeight - color: Color.transparent + color: "transparent" radius: Style.iRadiusM property bool isSelected: filePickerPanel.currentSelection.includes(model.filePath) Rectangle { anchors.fill: parent - color: Color.transparent + color: "transparent" radius: parent.radius border.color: isSelected ? Color.mSecondary : Color.mSurface border.width: Style.borderL @@ -492,9 +492,9 @@ Popup { Rectangle { anchors.fill: parent - color: (mouseArea.containsMouse && !isSelected) ? Color.mHover : Color.transparent + color: (mouseArea.containsMouse && !isSelected) ? Color.mHover : "transparent" radius: parent.radius - border.color: (mouseArea.containsMouse && !isSelected) ? Color.mHover : Color.transparent + border.color: (mouseArea.containsMouse && !isSelected) ? Color.mHover : "transparent" border.width: Style.borderS Behavior on color { ColorAnimation { @@ -517,7 +517,7 @@ Popup { id: iconContainer Layout.fillWidth: true Layout.preferredHeight: Math.round(gridView.itemSize * 0.67) - color: Color.transparent + color: "transparent" property bool isImage: { if (model.fileIsDir) @@ -671,7 +671,7 @@ Popup { return Color.mSecondary; if (mouseArea.containsMouse) return Color.mHover; - return Color.transparent; + return "transparent"; } radius: Style.iRadiusS Behavior on color { diff --git a/Widgets/NGridView.qml b/Widgets/NGridView.qml index b027fc6a8..19efde1d2 100644 --- a/Widgets/NGridView.qml +++ b/Widgets/NGridView.qml @@ -19,7 +19,7 @@ Item { property color handleColor: Qt.alpha(Color.mHover, 0.8) property color handleHoverColor: handleColor property color handlePressedColor: handleColor - property color trackColor: Color.transparent + property color trackColor: "transparent" property real handleWidth: 6 property real handleRadius: Style.iRadiusM property int verticalPolicy: ScrollBar.AsNeeded diff --git a/Widgets/NIconPicker.qml b/Widgets/NIconPicker.qml index e9b9a9bcd..99b20b9f9 100644 --- a/Widgets/NIconPicker.qml +++ b/Widgets/NIconPicker.qml @@ -96,8 +96,8 @@ Popup { height: grid.cellHeight radius: Style.iRadiusS - color: (root.selectedIcon === modelData) ? Qt.alpha(Color.mPrimary, 0.15) : Color.transparent - border.color: (root.selectedIcon === modelData) ? Color.mPrimary : Color.transparent + color: (root.selectedIcon === modelData) ? Qt.alpha(Color.mPrimary, 0.15) : "transparent" + border.color: (root.selectedIcon === modelData) ? Color.mPrimary : "transparent" border.width: (root.selectedIcon === modelData) ? Style.borderS : 0 MouseArea { diff --git a/Widgets/NImageRounded.qml b/Widgets/NImageRounded.qml index fd7f3df81..ff474a830 100644 --- a/Widgets/NImageRounded.qml +++ b/Widgets/NImageRounded.qml @@ -12,7 +12,7 @@ Item { property string fallbackIcon: "" property real fallbackIconSize: Style.fontSizeXXL property real borderWidth: 0 - property color borderColor: Color.transparent + property color borderColor: "transparent" property int imageFillMode: Image.PreserveAspectFit readonly property bool showFallback: (fallbackIcon !== undefined && fallbackIcon !== "") && (imagePath === undefined || imagePath === "") @@ -21,7 +21,7 @@ Item { Rectangle { anchors.fill: parent radius: root.radius - color: Color.transparent + color: "transparent" border.width: root.borderWidth border.color: root.borderColor diff --git a/Widgets/NListView.qml b/Widgets/NListView.qml index ceb69a5bc..6dc90ad88 100644 --- a/Widgets/NListView.qml +++ b/Widgets/NListView.qml @@ -9,7 +9,7 @@ Item { property color handleColor: Qt.alpha(Color.mHover, 0.8) property color handleHoverColor: handleColor property color handlePressedColor: handleColor - property color trackColor: Color.transparent + property color trackColor: "transparent" property real handleWidth: 6 property real handleRadius: Style.iRadiusM property int verticalPolicy: ScrollBar.AsNeeded diff --git a/Widgets/NPopupContextMenu.qml b/Widgets/NPopupContextMenu.qml index deea14cfc..9679752f3 100644 --- a/Widgets/NPopupContextMenu.qml +++ b/Widgets/NPopupContextMenu.qml @@ -28,7 +28,7 @@ PopupWindow { implicitWidth: calculatedWidth implicitHeight: Math.min(600, flickable.contentHeight + (Style.marginS * 2)) visible: false - color: Color.transparent + color: "transparent" NText { id: textMeasure @@ -230,12 +230,12 @@ PopupWindow { Layout.preferredWidth: parent.width Layout.preferredHeight: modelData.visible !== false ? root.itemHeight : 0 visible: modelData.visible !== false - color: Color.transparent + color: "transparent" Rectangle { id: innerRect anchors.fill: parent - color: mouseArea.containsMouse ? Color.mHover : Color.transparent + color: mouseArea.containsMouse ? Color.mHover : "transparent" radius: Style.iRadiusS opacity: modelData.enabled !== false ? 1.0 : 0.5 diff --git a/Widgets/NRadioButton.qml b/Widgets/NRadioButton.qml index 3e32d4cac..326955dbd 100644 --- a/Widgets/NRadioButton.qml +++ b/Widgets/NRadioButton.qml @@ -16,7 +16,7 @@ RadioButton { implicitWidth: Style.baseWidgetSize * 0.625 * pointSize / Style.fontSizeM implicitHeight: Style.baseWidgetSize * 0.625 * pointSize / Style.fontSizeM radius: Math.min(Style.iRadiusL, width / 2) - color: Color.transparent + color: "transparent" border.color: root.checked ? Color.mPrimary : Color.mOnSurface border.width: Style.borderM anchors.verticalCenter: parent.verticalCenter diff --git a/Widgets/NReorderCheckboxes.qml b/Widgets/NReorderCheckboxes.qml index 8b4a8a59a..ece48c50b 100644 --- a/Widgets/NReorderCheckboxes.qml +++ b/Widgets/NReorderCheckboxes.qml @@ -99,7 +99,7 @@ Item { Layout.preferredWidth: root.baseSize Layout.preferredHeight: root.baseSize radius: Style.iRadiusXS - color: dragHandleMouseArea.containsMouse ? Color.mSurfaceVariant : Color.transparent + color: dragHandleMouseArea.containsMouse ? Color.mSurfaceVariant : "transparent" Behavior on color { ColorAnimation { diff --git a/Widgets/NScrollView.qml b/Widgets/NScrollView.qml index 465fbe61b..12f3459c0 100644 --- a/Widgets/NScrollView.qml +++ b/Widgets/NScrollView.qml @@ -9,7 +9,7 @@ T.ScrollView { property color handleColor: Qt.alpha(Color.mHover, 0.8) property color handleHoverColor: handleColor property color handlePressedColor: handleColor - property color trackColor: Color.transparent + property color trackColor: "transparent" property real handleWidth: 6 property real handleRadius: Style.iRadiusM property int verticalPolicy: ScrollBar.AsNeeded diff --git a/Widgets/NSearchableComboBox.qml b/Widgets/NSearchableComboBox.qml index 4863b5e13..95665d58b 100644 --- a/Widgets/NSearchableComboBox.qml +++ b/Widgets/NSearchableComboBox.qml @@ -343,7 +343,7 @@ RowLayout { } background: Rectangle { anchors.fill: parent - color: highlighted ? Color.mHover : Color.transparent + color: highlighted ? Color.mHover : "transparent" radius: Style.iRadiusS Behavior on color { ColorAnimation { diff --git a/Widgets/NSectionEditor.qml b/Widgets/NSectionEditor.qml index e070532a4..8b4e0bbef 100644 --- a/Widgets/NSectionEditor.qml +++ b/Widgets/NSectionEditor.qml @@ -477,7 +477,7 @@ NBox { width: 0 height: Style.baseWidgetSize * 1.15 radius: Style.iRadiusL - color: Color.transparent + color: "transparent" border.color: Color.mOutline border.width: Style.borderS opacity: 0.7 diff --git a/Widgets/NSpinBox.qml b/Widgets/NSpinBox.qml index 08321e541..02182110c 100644 --- a/Widgets/NSpinBox.qml +++ b/Widgets/NSpinBox.qml @@ -152,7 +152,7 @@ RowLayout { height: parent.height radius: Math.min(Style.iRadiusL, width / 2) anchors.left: parent.left - color: decreaseArea.containsMouse ? Color.mHover : Color.transparent + color: decreaseArea.containsMouse ? Color.mHover : "transparent" Behavior on color { ColorAnimation { duration: Style.animationFast @@ -175,7 +175,7 @@ RowLayout { height: 100 radius: width / 4 - color: decreaseArea.containsMouse ? Color.mHover : Color.transparent + color: decreaseArea.containsMouse ? Color.mHover : "transparent" Behavior on color { ColorAnimation { duration: Style.animationFast @@ -251,7 +251,7 @@ RowLayout { height: parent.height radius: Math.min(Style.iRadiusL, width / 2) anchors.right: parent.right - color: increaseArea.containsMouse ? Color.mHover : Color.transparent + color: increaseArea.containsMouse ? Color.mHover : "transparent" Behavior on color { ColorAnimation { duration: Style.animationFast @@ -274,7 +274,7 @@ RowLayout { height: 100 radius: width / 4 - color: increaseArea.containsMouse ? Color.mHover : Color.transparent + color: increaseArea.containsMouse ? Color.mHover : "transparent" Behavior on color { ColorAnimation { duration: Style.animationFast @@ -336,7 +336,7 @@ RowLayout { anchors.verticalCenter: parent.verticalCenter anchors.margins: 4 height: parent.height - color: Color.transparent + color: "transparent" RowLayout { anchors.centerIn: parent diff --git a/Widgets/NTextInput.qml b/Widgets/NTextInput.qml index 6f8f06d05..af94b4c14 100644 --- a/Widgets/NTextInput.qml +++ b/Widgets/NTextInput.qml @@ -213,8 +213,8 @@ ColumnLayout { Layout.alignment: Qt.AlignVCenter border.width: 0 - colorBg: Color.transparent - colorBgHover: Color.transparent + colorBg: "transparent" + colorBgHover: "transparent" colorFg: Color.mOnSurface colorFgHover: Color.mError