treewide: remove use of multiple with statements (#1085)

This commit is contained in:
awwpotato 2025-04-08 15:22:18 -07:00 committed by GitHub
parent a2f8840bed
commit c8bc1c1d9e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 161 additions and 155 deletions

View file

@ -3,9 +3,6 @@
lib,
...
}:
let
colors = config.lib.stylix.colors.withHashtag;
in
{
options.stylix.targets.lazygit.enable =
config.lib.stylix.mkEnableTarget "lazygit" true;
@ -13,22 +10,23 @@ in
config =
lib.mkIf (config.stylix.enable && config.stylix.targets.lazygit.enable)
{
programs.lazygit.settings.gui.theme = {
activeBorderColor = [
colors.base07
"bold"
];
inactiveBorderColor = [ colors.base04 ];
searchingActiveBorderColor = [
colors.base02
"bold"
];
optionsTextColor = [ colors.base06 ];
selectedLineBgColor = [ colors.base03 ];
cherryPickedCommitBgColor = [ colors.base02 ];
cherryPickedCommitFgColor = [ colors.base03 ];
unstagedChangesColor = [ colors.base08 ];
defaultFgColor = [ colors.base05 ];
};
programs.lazygit.settings.gui.theme =
with config.lib.stylix.colors.withHashtag; {
activeBorderColor = [
base07
"bold"
];
inactiveBorderColor = [ base04 ];
searchingActiveBorderColor = [
base02
"bold"
];
optionsTextColor = [ base06 ];
selectedLineBgColor = [ base03 ];
cherryPickedCommitBgColor = [ base02 ];
cherryPickedCommitFgColor = [ base03 ];
unstagedChangesColor = [ base08 ];
defaultFgColor = [ base05 ];
};
};
}