stylix: simplify API by renaming stylix.iconTheme option to stylix.icons
This commit is contained in:
parent
699262a0f8
commit
1021b7d732
5 changed files with 26 additions and 12 deletions
|
|
@ -33,10 +33,10 @@ mkTarget {
|
|||
}
|
||||
)
|
||||
(
|
||||
{ polarity, iconTheme }:
|
||||
{ polarity, icons }:
|
||||
{
|
||||
programs.fuzzel.settings.main."icon-theme" =
|
||||
if (polarity == "dark") then iconTheme.dark else iconTheme.light;
|
||||
programs.fuzzel.settings.main."icons" =
|
||||
if (polarity == "dark") then icons.dark else icons.light;
|
||||
}
|
||||
)
|
||||
];
|
||||
|
|
|
|||
|
|
@ -33,11 +33,11 @@
|
|||
|
||||
config = lib.mkIf (config.stylix.enable && config.stylix.targets.qt.enable) (
|
||||
let
|
||||
iconTheme =
|
||||
icons =
|
||||
if (config.stylix.polarity == "dark") then
|
||||
config.stylix.iconTheme.dark
|
||||
config.stylix.icons.dark
|
||||
else
|
||||
config.stylix.iconTheme.light;
|
||||
config.stylix.icons.light;
|
||||
|
||||
recommendedStyles = {
|
||||
gnome = if config.stylix.polarity == "dark" then "adwaita-dark" else "adwaita";
|
||||
|
|
@ -91,8 +91,8 @@
|
|||
+ lib.optionalString (config.qt.style ? name) ''
|
||||
style=${config.qt.style.name}
|
||||
''
|
||||
+ lib.optionalString (iconTheme != null) ''
|
||||
icon_theme=${iconTheme}
|
||||
+ lib.optionalString (icons != null) ''
|
||||
icon_theme=${icons}
|
||||
'';
|
||||
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue