foliate: use mkTarget

This commit is contained in:
awwpotato 2025-05-21 14:02:23 -07:00
parent 18211a9f41
commit 02f3d00467
No known key found for this signature in database

View file

@ -1,30 +1,29 @@
{ config, lib, ... }:
{ mkTarget, ... }:
mkTarget {
name = "foliate";
humanName = "Foliate";
{
options.stylix.targets.foliate.enable =
config.lib.stylix.mkEnableTarget "Foliate" true;
configElements =
{ colors }:
{
programs.foliate = {
settings."viewer/view" = {
theme = "stylix.json";
};
config =
lib.mkIf (config.stylix.enable && config.stylix.targets.foliate.enable)
{
programs.foliate = {
settings."viewer/view" = {
theme = "stylix.json";
themes.stylix = with colors.withHashtag; {
label = "Stylix";
light = {
fg = base00;
bg = base05;
link = base0D;
};
themes.stylix = with config.lib.stylix.colors.withHashtag; {
label = "Stylix";
light = {
fg = base00;
bg = base05;
link = base0D;
};
dark = {
fg = base05;
bg = base00;
link = base0D;
};
dark = {
fg = base05;
bg = base00;
link = base0D;
};
};
};
};
}