nixcfg/homeManagerModules/theme.nix
Aly Raffauf 4b0ef05dae
Some checks failed
git-mirror / gitlab-sync (push) Has been cancelled
nix-build / clean-install-build (push) Has been cancelled
nix-build / rofi-bluetooth-build (push) Has been cancelled
nix-build / fallarbor-build (push) Has been cancelled
nix-build / lavaridge-build (push) Has been cancelled
nix-build / mauville-build (push) Has been cancelled
nix-build / petalburg-build (push) Has been cancelled
nix-build / rustboro-build (push) Has been cancelled
nix-build / slateport-build (push) Has been cancelled
nix-check / fmt-check (push) Has been cancelled
nix-check / eval-check (push) Has been cancelled
theme: remove hotfix for missing kio
2024-12-11 09:28:35 -05:00

68 lines
1.9 KiB
Nix

{
config,
lib,
pkgs,
...
}: let
cfg = config.ar.home;
in {
config = lib.mkIf cfg.theme.enable {
home.packages = [
pkgs.adwaita-icon-theme
pkgs.liberation_ttf
];
qt = lib.mkIf (!config.ar.home.desktop.kde.enable) {
enable = true;
platformTheme.name = "kde";
style.name = "Breeze";
};
stylix = {
iconTheme = {
enable = true;
dark = "Papirus-Dark";
light = "Papirus";
package = pkgs.papirus-icon-theme.override {color = "adwaita";};
};
targets.gtk.extraCss = builtins.concatStringsSep "\n" [
(lib.optionalString (
(cfg.desktop.hyprland.enable) && (config.stylix.polarity == "light") && !cfg.desktop.gnome.enable
) ''
tooltip {
&.background { background-color: alpha(${config.lib.stylix.colors.withHashtag.base05}, ${builtins.toString config.stylix.opacity.popups}); }
background-color: alpha(${config.lib.stylix.colors.withHashtag.base05}, ${builtins.toString config.stylix.opacity.popups});
}'')
(lib.optionalString (cfg.theme.gtk.hideTitleBar && !cfg.desktop.gnome.enable) ''
/* No (default) title bar on wayland */
headerbar.default-decoration {
/* You may need to tweak these values depending on your GTK theme */
border-radius: 0;
border: 0;
box-shadow: none;
font-size: 0;
margin-bottom: 50px;
margin-top: -100px;
min-height: 0;
padding: 0;
}
.titlebar,
.titlebar .background
{
border-radius: 0;
}
/* rm -rf window shadows */
window.csd, /* gtk4? */
window.csd decoration { /* gtk3 */
border-radius: 0;
box-shadow: none;
}'')
];
};
};
}