From 6eea250b10386be0fc23496d1039d76b3147680e Mon Sep 17 00:00:00 2001 From: awwpotato <153149335+awwpotato@users.noreply.github.com> Date: Fri, 7 Mar 2025 16:07:57 -0800 Subject: [PATCH] dunst: fix opacity rounding (#965) Link: https://github.com/danth/stylix/pull/965 Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> --- modules/dunst/hm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dunst/hm.nix b/modules/dunst/hm.nix index 85eeaffd..f22f8b62 100644 --- a/modules/dunst/hm.nix +++ b/modules/dunst/hm.nix @@ -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 {