Skip to content

Commit 4151f6e

Browse files
committed
fix: always apply alpha to avoid inheriting it from parent
1 parent ff8965e commit 4151f6e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

package/contents/ui/main.qml

+2-4
Original file line numberDiff line numberDiff line change
@@ -214,17 +214,15 @@ PlasmoidItem {
214214

215215
break
216216
default:
217-
newColor = "transparent"
217+
newColor = Qt.hsla(0, 0, 0, 0)
218218
}
219219
if (colorCfg.saturationEnabled) {
220220
newColor = Utils.scaleSaturation(newColor, colorCfg.saturationValue)
221221
}
222222
if (colorCfg.lightnessEnabled) {
223223
newColor = Utils.scaleLightness(newColor, colorCfg.lightnessValue)
224224
}
225-
if (colorCfg.alpha !== 1) {
226-
newColor = Qt.hsla(newColor.hslHue, newColor.hslSaturation, newColor.hslLightness, colorCfg.alpha)
227-
}
225+
newColor = Qt.hsla(newColor.hslHue, newColor.hslSaturation, newColor.hslLightness, colorCfg.alpha)
228226
return newColor
229227
}
230228

0 commit comments

Comments
 (0)