2023-04-01 21:29:47 +02:00
|
|
|
# Lua file containing the current colorscheme.
|
2024-01-12 01:01:22 +01:00
|
|
|
{ lib, config, inputs, ... }: {
|
2023-04-01 21:29:47 +02:00
|
|
|
options.satellite.colorscheme.lua = lib.mkOption {
|
|
|
|
type = lib.types.lines;
|
|
|
|
description = "Lua file containing the current colorscheme";
|
|
|
|
};
|
|
|
|
|
2023-12-10 19:45:28 +01:00
|
|
|
config.satellite.colorscheme.lua =
|
|
|
|
let
|
2024-01-12 01:01:22 +01:00
|
|
|
e = import ./korora-lua.nix {
|
|
|
|
inherit lib;
|
|
|
|
korora = inputs.korora.lib;
|
|
|
|
};
|
|
|
|
|
2023-12-10 19:45:28 +01:00
|
|
|
theme = {
|
|
|
|
name = config.lib.stylix.scheme.scheme;
|
|
|
|
base00 = config.lib.stylix.scheme.base00;
|
|
|
|
base01 = config.lib.stylix.scheme.base01;
|
|
|
|
base02 = config.lib.stylix.scheme.base02;
|
|
|
|
base03 = config.lib.stylix.scheme.base03;
|
|
|
|
base04 = config.lib.stylix.scheme.base04;
|
|
|
|
base05 = config.lib.stylix.scheme.base05;
|
|
|
|
base06 = config.lib.stylix.scheme.base06;
|
|
|
|
base07 = config.lib.stylix.scheme.base07;
|
|
|
|
base08 = config.lib.stylix.scheme.base07;
|
|
|
|
base09 = config.lib.stylix.scheme.base09;
|
|
|
|
base0A = config.lib.stylix.scheme.base0A;
|
|
|
|
base0B = config.lib.stylix.scheme.base0B;
|
|
|
|
base0C = config.lib.stylix.scheme.base0C;
|
|
|
|
base0D = config.lib.stylix.scheme.base0D;
|
|
|
|
base0E = config.lib.stylix.scheme.base0E;
|
|
|
|
base0F = config.lib.stylix.scheme.base0F;
|
|
|
|
# TODO: check if this works with the genetic algorithm
|
|
|
|
source = config.stylix.base16Scheme;
|
|
|
|
fonts = {
|
|
|
|
serif = config.stylix.fonts.serif.name;
|
|
|
|
sansSerif = config.stylix.fonts.sansSerif.name;
|
|
|
|
monospace = config.stylix.fonts.monospace.name;
|
|
|
|
};
|
|
|
|
opacity = {
|
|
|
|
terminal = config.stylix.opacity.terminal;
|
|
|
|
applications = config.stylix.opacity.applications;
|
|
|
|
desktop = config.stylix.opacity.desktop;
|
|
|
|
popups = config.stylix.opacity.popups;
|
|
|
|
};
|
|
|
|
# Whether to enable transparency for different targets
|
|
|
|
transparent = {
|
|
|
|
terminal = config.stylix.opacity.terminal < 1.0;
|
|
|
|
applcations = config.stylix.opacity.applications < 1.0;
|
|
|
|
desktop = config.stylix.opacity.desktop < 1.0;
|
|
|
|
popups = config.stylix.opacity.popups < 1.0;
|
|
|
|
};
|
|
|
|
rounding = {
|
2023-12-10 23:48:46 +01:00
|
|
|
enable = config.satellite.theming.rounding.enable;
|
|
|
|
radius = config.satellite.theming.rounding.radius;
|
2023-12-10 19:45:28 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
2024-01-12 01:01:22 +01:00
|
|
|
e.encode theme;
|
2023-04-01 21:29:47 +02:00
|
|
|
}
|