dunst: fix opacity rounding (#965)

Link: https://github.com/danth/stylix/pull/965

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
This commit is contained in:
awwpotato 2025-03-07 16:07:57 -08:00 committed by GitHub
parent 4891f1471b
commit 6eea250b10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,7 +4,7 @@ with config.lib.stylix.colors.withHashtag;
with config.stylix.fonts;
let
dunstOpacity = lib.toHexString (
((builtins.ceil (config.stylix.opacity.popups * 100)) * 255) / 100
((builtins.floor (config.stylix.opacity.popups * 100 + 0.5)) * 255) / 100
);
in
{