feat(console): Catppuccin -> Rose Pine
This commit is contained in:
parent
3849b61657
commit
c622a669d8
1 changed files with 26 additions and 24 deletions
|
@ -1,34 +1,36 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
inherit (config.catppuccin) sources;
|
||||
cfg = config.console.catppuccin;
|
||||
enable = cfg.enable && config.console.enable;
|
||||
palette = (lib.importJSON "${sources.palette}/palette.json").${cfg.flavor}.colors;
|
||||
in
|
||||
{
|
||||
options.console.catppuccin = lib.ctp.mkCatppuccinOpt { name = "console"; };
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.console.rose-pine;
|
||||
enable = cfg.enable && config.console.enable;
|
||||
|
||||
palette = (lib.importJSON "../../.sources/palette.json").${cfg.flavor}.colors;
|
||||
in {
|
||||
options.console.rose-pine = lib.rp.mkRosePineOpt {name = "console";};
|
||||
|
||||
config.console.colors = lib.mkIf enable (
|
||||
# Manually populate with colors from catppuccin/tty
|
||||
# Manually populate with colors from rose-pine/linux-tty
|
||||
# Make sure to strip initial # from hex codes
|
||||
map (color: (builtins.substring 1 6 palette.${color}.hex)) [
|
||||
"base"
|
||||
"red"
|
||||
"green"
|
||||
"yellow"
|
||||
"blue"
|
||||
"pink"
|
||||
"teal"
|
||||
"subtext1"
|
||||
"love"
|
||||
"foam"
|
||||
"gold"
|
||||
"pine"
|
||||
"iris"
|
||||
"rose"
|
||||
"text"
|
||||
|
||||
"surface2"
|
||||
"red"
|
||||
"green"
|
||||
"yellow"
|
||||
"blue"
|
||||
"pink"
|
||||
"teal"
|
||||
"subtext0"
|
||||
"overlay"
|
||||
"love"
|
||||
"foam"
|
||||
"gold"
|
||||
"pine"
|
||||
"iris"
|
||||
"rose"
|
||||
"text"
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue