Skip to content

Commit

Permalink
fixup!: jankyborders: hexadecimal colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Eveeifyeve committed Feb 17, 2025
1 parent 9eb18d6 commit f2a1c4e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/jankyborders/darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@ let
lib.throwIfNot (percentage >= 0 && percentage <= 1)
"value must be between 0 and 1 (inclusive): ${toString percentage}"
(lib.toHexString (builtins.floor (percentage * 255 + 0.5)));

mkColor = color: "0x${opacityHex config.opacity.desktop}${color}";
mkColor =
color:
"0x${
lib.strings.replaceStrings [ "#" ] [ "" ] color
} ${opacityHex config.opacity.desktop}";
in
{
options.stylix.targets.jankyborders.enable =
Expand Down

0 comments on commit f2a1c4e

Please sign in to comment.