Skip to content

Commit

Permalink
fix: always apply alpha to avoid inheriting it from parent
Browse files Browse the repository at this point in the history
  • Loading branch information
luisbocanegra committed Jan 15, 2025
1 parent ff8965e commit 4151f6e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions package/contents/ui/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -214,17 +214,15 @@ PlasmoidItem {

break
default:
newColor = "transparent"
newColor = Qt.hsla(0, 0, 0, 0)
}
if (colorCfg.saturationEnabled) {
newColor = Utils.scaleSaturation(newColor, colorCfg.saturationValue)
}
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
}

Expand Down

0 comments on commit 4151f6e

Please sign in to comment.