1
Fork 0

light gruvbox

This commit is contained in:
prescientmoon 2024-05-01 17:51:24 +02:00
parent 4808dbb549
commit 9f751afced
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
11 changed files with 73 additions and 99 deletions
modules/common

View file

@ -5,15 +5,21 @@ in
{
options.satellite.theming = {
rounding = {
# Note: this is automatically set to true when the radius is strictly positive
enable = lib.mkEnableOption "rounded corners for desktop apps";
radius = lib.mkOption {
description = "How much to round corners by deafault";
default = 0.0;
example = 10;
type = lib.types.float;
};
radius = lib.mkOption { default = 0.0; type = lib.types.float; };
};
# These pretty much directly map onto hypland options
blur = {
# Note: this is automatically set to true when the passes are strictly positive
enable = lib.mkEnableOption "blurred backgrounds for desktop apps";
passes = lib.mkOption { default = 4; type = lib.types.int; };
brightness = lib.mkOption { default = 1.0; type = lib.types.float; };
contrast = lib.mkOption { default = 1.2; type = lib.types.float; };
size = lib.mkOption { default = 10.0; type = lib.types.float; };
};
get = lib.mkOption {
# No generics:(
@ -44,6 +50,7 @@ in
config.satellite.theming = {
rounding.enable = cfg.rounding.radius > 0.0;
blur.enable = cfg.blur.passes > 0;
get = themeMap:
themeMap.${config.lib.stylix.scheme.scheme}