Style: Fix android build.
This commit is contained in:
parent
8f00269caf
commit
f926b3bc63
|
@ -30,7 +30,13 @@ in
|
||||||
};
|
};
|
||||||
style = lib.mkOption {
|
style = lib.mkOption {
|
||||||
default = style;
|
default = style;
|
||||||
type = with lib.types; nullOr (oneOf [ path lines attrs ]);
|
type =
|
||||||
|
with lib.types;
|
||||||
|
nullOr (oneOf [
|
||||||
|
path
|
||||||
|
lines
|
||||||
|
attrs
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,43 +4,38 @@ let
|
||||||
wallpaper = config.module.wallpaper;
|
wallpaper = config.module.wallpaper;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = lib.mkMerge [
|
stylix =
|
||||||
{
|
{
|
||||||
stylix = {
|
inherit (config.module.style) cursor;
|
||||||
inherit (config.module.style) cursor;
|
enable = true;
|
||||||
enable = true;
|
autoEnable = true;
|
||||||
autoEnable = true;
|
image = wallpaper.path;
|
||||||
image = wallpaper.path;
|
polarity = "dark";
|
||||||
polarity = "dark";
|
fonts = with style.font; {
|
||||||
fonts = with style.font; {
|
inherit
|
||||||
inherit
|
emoji
|
||||||
emoji
|
monospace
|
||||||
monospace
|
sansSerif
|
||||||
sansSerif
|
serif
|
||||||
serif
|
;
|
||||||
;
|
sizes = with size; {
|
||||||
sizes = with size; {
|
|
||||||
inherit desktop terminal;
|
|
||||||
applications = application;
|
|
||||||
popups = popup;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
opacity = with style.opacity; {
|
|
||||||
inherit desktop terminal;
|
inherit desktop terminal;
|
||||||
applications = application;
|
applications = application;
|
||||||
popups = popups;
|
popups = popup;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
opacity = with style.opacity; {
|
||||||
|
inherit desktop terminal;
|
||||||
|
applications = application;
|
||||||
|
popups = popups;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
// (lib.optionalAttrs wallpaper.forceContrastText {
|
||||||
(lib.mkIf wallpaper.forceContrastText {
|
override = {
|
||||||
stylix.override = {
|
|
||||||
base04 = lib.mkForce "000000";
|
base04 = lib.mkForce "000000";
|
||||||
base05 = lib.mkForce "ffffff";
|
base05 = lib.mkForce "ffffff";
|
||||||
base06 = lib.mkForce "ffffff";
|
base06 = lib.mkForce "ffffff";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
// (lib.optionalAttrs (wallpaper.style != null) { base16Scheme = wallpaper.style; });
|
||||||
(lib.mkIf (wallpaper.style != null) { stylix.base16Scheme = wallpaper.style; })
|
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue