diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-09 18:10:11 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-09 18:10:11 +1000 |
| commit | 3a8b9c61be5ab4babfbd5b54db5069defc6e5ad3 (patch) | |
| tree | 3db97d474787e33b5182ac40824e66df61a85ec1 /services/Colours.qml | |
| parent | dashboard: fix cover art rounding (diff) | |
| download | caelestia-shell-3a8b9c61be5ab4babfbd5b54db5069defc6e5ad3.tar.gz caelestia-shell-3a8b9c61be5ab4babfbd5b54db5069defc6e5ad3.tar.bz2 caelestia-shell-3a8b9c61be5ab4babfbd5b54db5069defc6e5ad3.zip | |
notifs: fix actions colour when transp
Also more colour adjustments
Diffstat (limited to 'services/Colours.qml')
| -rw-r--r-- | services/Colours.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/Colours.qml b/services/Colours.qml index eab898e..568fc1f 100644 --- a/services/Colours.qml +++ b/services/Colours.qml @@ -33,7 +33,7 @@ Singleton { const wallLuminance = getLuminance(wallColour); const luminance = getLuminance(c); - const offset = (!light || layer == 1 ? 1 : -layer / 2) * (light ? 0.2 : 0.3) * (1 - transparency.base) * (1 + wallLuminance * (light ? 3 : 2.5)); + const offset = (!light || layer == 1 ? 1 : -layer / 2) * (light ? 0.2 : 0.3) * (1 - transparency.base) * (1 + wallLuminance * (light ? (layer == 1 ? 3 : 1) : 2.5)); const scale = (luminance + offset) / luminance; const r = Math.max(0, Math.min(1, c.r * scale)); const g = Math.max(0, Math.min(1, c.g * scale)); |