From c35f37c7d785983d9acd1a1badb6d5778e0ff3f9 Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Sun, 28 Sep 2025 21:17:10 -0400 Subject: [PATCH] Use Color.transparent instead of "transparent" --- Modules/Bar/Widgets/ActiveWindow.qml | 2 +- Modules/Bar/Widgets/MediaMini.qml | 2 +- Modules/Bar/Widgets/Taskbar.qml | 2 +- Modules/Notification/Notification.qml | 2 +- Modules/OSD/OSD.qml | 2 +- Services/NotificationService.qml | 2 +- Widgets/NIconPicker.qml | 2 +- Widgets/NImageRounded.qml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Modules/Bar/Widgets/ActiveWindow.qml b/Modules/Bar/Widgets/ActiveWindow.qml index 8caf90f9..2dbccdbc 100644 --- a/Modules/Bar/Widgets/ActiveWindow.qml +++ b/Modules/Bar/Widgets/ActiveWindow.qml @@ -358,4 +358,4 @@ Item { } } } -} \ No newline at end of file +} diff --git a/Modules/Bar/Widgets/MediaMini.qml b/Modules/Bar/Widgets/MediaMini.qml index 081748af..2b5348da 100644 --- a/Modules/Bar/Widgets/MediaMini.qml +++ b/Modules/Bar/Widgets/MediaMini.qml @@ -385,4 +385,4 @@ Item { } } } -} \ No newline at end of file +} diff --git a/Modules/Bar/Widgets/Taskbar.qml b/Modules/Bar/Widgets/Taskbar.qml index e578622f..0201f95d 100644 --- a/Modules/Bar/Widgets/Taskbar.qml +++ b/Modules/Bar/Widgets/Taskbar.qml @@ -60,7 +60,7 @@ Rectangle { color: taskbarItem.isActive ? Color.mPrimary : root.color border.width: 0 radius: Math.round(Style.radiusXS * root.scaling) - border.color: "transparent" + border.color: Color.transparent z: -1 IconImage { diff --git a/Modules/Notification/Notification.qml b/Modules/Notification/Notification.qml index b7f48abe..3bb1383c 100644 --- a/Modules/Notification/Notification.qml +++ b/Modules/Notification/Notification.qml @@ -162,7 +162,7 @@ Variants { anchors.left: parent.left anchors.right: parent.right height: 2 * scaling - color: "transparent" + color: Color.transparent property real availableWidth: parent.width - (2 * parent.radius) diff --git a/Modules/OSD/OSD.qml b/Modules/OSD/OSD.qml index df6f574f..07b028e5 100644 --- a/Modules/OSD/OSD.qml +++ b/Modules/OSD/OSD.qml @@ -541,4 +541,4 @@ Variants { } } } -} \ No newline at end of file +} diff --git a/Services/NotificationService.qml b/Services/NotificationService.qml index 7eaf6f6b..aab8b7de 100644 --- a/Services/NotificationService.qml +++ b/Services/NotificationService.qml @@ -28,7 +28,7 @@ Singleton { PanelWindow { implicitHeight: 1 implicitWidth: 1 - color: "transparent" + color: Color.transparent mask: Region {} Image { diff --git a/Widgets/NIconPicker.qml b/Widgets/NIconPicker.qml index 86ea50a4..d933dfd2 100644 --- a/Widgets/NIconPicker.qml +++ b/Widgets/NIconPicker.qml @@ -112,7 +112,7 @@ Popup { height: grid.cellHeight radius: Style.radiusS * scaling clip: true - color: (root.selectedIcon === modelData) ? Qt.alpha(Color.mPrimary, 0.15) : "transparent" + color: (root.selectedIcon === modelData) ? Qt.alpha(Color.mPrimary, 0.15) : Color.transparent border.color: (root.selectedIcon === modelData) ? Color.mPrimary : Qt.rgba(0, 0, 0, 0) border.width: (root.selectedIcon === modelData) ? Style.borderS * scaling : 0 diff --git a/Widgets/NImageRounded.qml b/Widgets/NImageRounded.qml index d03dcf1d..d7306958 100644 --- a/Widgets/NImageRounded.qml +++ b/Widgets/NImageRounded.qml @@ -66,7 +66,7 @@ Rectangle { Rectangle { id: background anchors.fill: parent - color: "transparent" + color: Color.transparent z: -1 } }