Colors: removed Colors.transparent / black and white in favor of their direct shorthands

This commit is contained in:
Lemmy
2026-01-04 13:54:51 -05:00
parent b2175a5f48
commit 3bc9a625b8
78 changed files with 173 additions and 192 deletions
@@ -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;
}
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -81,7 +81,7 @@ PanelWindow {
if (dimmerOpacity > 0 && isPanelOpen && !isPanelClosing) {
return Qt.alpha(Color.mShadow, dimmerOpacity);
}
return Color.transparent;
return "transparent";
}
Behavior on color {
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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 {