rofi: fix mkTarget usage (#1593)

Fixes: dea0337e0b ("stylix: restrict access to config while using mkTarget (#1368)")
Fixes: 713f8dae31 ("rofi: use mkTarget (#1550)")
This commit is contained in:
awwpotato 2025-07-04 12:17:17 -07:00 committed by GitHub
parent 6b2898a6b7
commit 606944b168
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,9 +1,4 @@
{
mkTarget,
lib,
config,
...
}:
{ mkTarget, config, ... }:
mkTarget {
name = "rofi";
humanName = "Rofi";
@ -20,18 +15,16 @@ mkTarget {
let
inherit (config.lib.formats.rasi) mkLiteral;
mkRgba =
opacity: color:
opacity': color:
let
c = config.lib.stylix.colors;
c = colors;
r = c."${color}-rgb-r";
g = c."${color}-rgb-g";
b = c."${color}-rgb-b";
in
mkLiteral "rgba ( ${r}, ${g}, ${b}, ${opacity} % )";
mkLiteral "rgba ( ${r}, ${g}, ${b}, ${opacity'} % )";
mkRgb = mkRgba "100";
rofiOpacity = builtins.toString (
builtins.ceil (config.stylix.opacity.popups * 100)
);
rofiOpacity = builtins.toString (builtins.ceil (opacity.popups * 100));
in
{
programs.rofi.theme = {