mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-21 16:33:55 -05:00
Aly Raffauf
d86e4c5be1
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / adjustor-build (push) Waiting to run
nix-build / clean-install-build (push) Waiting to run
nix-build / hhd-ui-build (push) Waiting to run
nix-build / rofi-bluetooth-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / pacifidlog-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-build / slateport-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* theme: don't set kde qt theme if kde is enabled * home: add kde option * nixos: add kde module * hyprland: set kde theme variables * desktop: set libadwaita headerbar buttons for kde * greetd: tuigreet -> regreet
83 lines
2.6 KiB
Nix
83 lines
2.6 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
|
|
];
|
|
|
|
gtk.iconTheme = {
|
|
name =
|
|
if config.stylix.polarity == "dark"
|
|
then "Papirus-Dark"
|
|
else "Papirus";
|
|
|
|
package = pkgs.papirus-icon-theme.override {color = "adwaita";};
|
|
};
|
|
|
|
qt = lib.mkIf (!config.ar.home.desktop.kde.enable) {
|
|
enable = true;
|
|
platformTheme.name = "kde";
|
|
style.name = "Breeze";
|
|
};
|
|
|
|
stylix.targets.gtk.extraCss = builtins.concatStringsSep "\n" [
|
|
(lib.optionalString ((cfg.desktop.hyprland.enable || cfg.desktop.sway.enable) && !cfg.desktop.gnome.enable) ''
|
|
window.background { border-radius: ${toString cfg.theme.borders.radius}; }
|
|
|
|
tooltip {
|
|
background-color: alpha(${config.lib.stylix.colors.withHashtag.base00}, ${builtins.toString config.stylix.opacity.popups});
|
|
border-radius: ${toString cfg.theme.borders.radius};
|
|
border: 1px solid ${config.lib.stylix.colors.withHashtag.base0D};
|
|
color: white;
|
|
}
|
|
|
|
tooltip.background {
|
|
background-color: alpha(${config.lib.stylix.colors.withHashtag.base00}, ${builtins.toString config.stylix.opacity.popups});
|
|
border: 1px solid ${config.lib.stylix.colors.withHashtag.base0D};
|
|
}'')
|
|
|
|
(lib.optionalString (
|
|
(cfg.desktop.hyprland.enable || cfg.desktop.sway.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;
|
|
}'')
|
|
];
|
|
};
|
|
}
|