2024-05-21 14:53:46 -07:00
|
|
|
{ config, lib, ... }:
|
2024-04-29 11:19:40 -07:00
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
2024-04-29 11:19:40 -07:00
|
|
|
cfg = config.programs.gh-dash.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.gh-dash.enable;
|
2024-05-21 17:23:55 -07:00
|
|
|
theme = "${sources.gh-dash}/themes/${cfg.flavor}/catppuccin-${cfg.flavor}-${cfg.accent}.yml";
|
2024-04-29 11:19:40 -07:00
|
|
|
in
|
|
|
|
{
|
2024-06-28 09:29:30 -07:00
|
|
|
options.programs.gh-dash.catppuccin = lib.ctp.mkCatppuccinOpt { name = "gh-dash"; } // {
|
2024-04-29 11:19:40 -07:00
|
|
|
accent = lib.ctp.mkAccentOpt "gh-dash";
|
|
|
|
};
|
|
|
|
|
|
|
|
config.programs.gh-dash.settings = lib.mkIf enable (lib.ctp.fromYaml theme);
|
|
|
|
}
|