Retune opacity for Hyprland 0.56's corrected alpha premultiplication

Hyprland 0.56 fixed premultiplication in the color-management shader
(hyprwm/Hyprland#14403), so the same opacity values now render visibly
more transparent than on 0.55. Raise each value to its perceptual
equivalent (a^(1/2.2)) to restore the previous look.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
David Heinemeier Hansson
2026-07-20 21:15:47 -07:00
co-authored by Claude Fable 5
parent 994e4dfa7d
commit f4a7b30366
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
-- Browser tags and styling.
o.window("((google-)?[cC]hrom(e|ium)|[bB]rave-browser|[mM]icrosoft-edge|Vivaldi-stable|helium)", { tag = "+chromium-based-browser" })
o.window("([fF]irefox|zen|librewolf)", { tag = "+firefox-based-browser" })
o.window({ tag = "chromium-based-browser" }, { tag = "-default-opacity", tile = true, opacity = "1.0 0.97" })
o.window({ tag = "firefox-based-browser" }, { tag = "-default-opacity", opacity = "1.0 0.97" })
o.window({ tag = "chromium-based-browser" }, { tag = "-default-opacity", tile = true, opacity = "1.0 0.985" })
o.window({ tag = "firefox-based-browser" }, { tag = "-default-opacity", opacity = "1.0 0.985" })
-- Video apps: remove chromium browser tag so they don't get opacity applied.
o.window("(^.+-youtube\\.com__.*$|^.+-app\\.zoom\\.us__wc_home.*$)", { tag = "-chromium-based-browser" })
+1 -1
View File
@@ -1,3 +1,3 @@
-- Define terminal tag to style them uniformly.
o.window("(Alacritty|kitty|com.mitchellh.ghostty|foot|wezterm)", { tag = "+terminal" })
o.window({ tag = "terminal" }, { tag = "-default-opacity", opacity = "0.97 0.9" })
o.window({ tag = "terminal" }, { tag = "-default-opacity", opacity = "0.985 0.95" })
+1 -1
View File
@@ -22,4 +22,4 @@ o.window(
require("default.hypr.apps")
-- Apply default opacity after apps have had a chance to opt out.
o.window({ tag = "default-opacity" }, { opacity = "0.97 0.9" })
o.window({ tag = "default-opacity" }, { opacity = "0.985 0.95" })
+1 -1
View File
@@ -15,4 +15,4 @@ hl.config({
})
-- Kanagawa backdrop is too strong for default opacity.
o.window({ tag = "terminal" }, { opacity = "0.98 0.95" })
o.window({ tag = "terminal" }, { opacity = "0.99 0.975" })