foliate: use mkTarget
This commit is contained in:
parent
18211a9f41
commit
02f3d00467
1 changed files with 22 additions and 23 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue