From 4151f6e2d6e354993e2eb277f61b907e4150ec2f Mon Sep 17 00:00:00 2001 From: Luis Bocanegra Date: Wed, 15 Jan 2025 15:09:21 -0600 Subject: [PATCH] fix: always apply alpha to avoid inheriting it from parent --- package/contents/ui/main.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/package/contents/ui/main.qml b/package/contents/ui/main.qml index a412ea6..74352ac 100644 --- a/package/contents/ui/main.qml +++ b/package/contents/ui/main.qml @@ -214,7 +214,7 @@ PlasmoidItem { break default: - newColor = "transparent" + newColor = Qt.hsla(0, 0, 0, 0) } if (colorCfg.saturationEnabled) { newColor = Utils.scaleSaturation(newColor, colorCfg.saturationValue) @@ -222,9 +222,7 @@ PlasmoidItem { if (colorCfg.lightnessEnabled) { newColor = Utils.scaleLightness(newColor, colorCfg.lightnessValue) } - if (colorCfg.alpha !== 1) { - newColor = Qt.hsla(newColor.hslHue, newColor.hslSaturation, newColor.hslLightness, colorCfg.alpha) - } + newColor = Qt.hsla(newColor.hslHue, newColor.hslSaturation, newColor.hslLightness, colorCfg.alpha) return newColor }