theme: overhaul (#78)
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-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 / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

* add nord css

* waybar: workaround to avoid hardcoding rgba colors

* alacritty: fix fotn references

* kitty: add custom theme

* waybar: fmt

* aly: remove zed transparency rules

* theme: customize adwaita

* aly: set colors

* desktop: borders 2px -> 4px

* mako: increase border size

* theme: add teritiary color

* hyprland: ignorezero for rofi

* theme: remove teritary color option

* rofi: dynamic theme

* waybar: cleanup

* aly: override helix theme to rose-pine-moon

* return to old defaults

* theme: restore gtk recoloring

* waybar: remove transparency

* aly/theme: mtch rosé pine font color

* theme: add global border-radius options

* theme: add borderRadius

* mauville: override with rose pine dawn colors

* mauville: force override with rose pine dawn colors
This commit is contained in:
Aly Raffauf 2024-08-09 18:16:46 -04:00 committed by GitHub
parent 7394dc9339
commit 3671401d62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 106 additions and 43 deletions

View file

@ -22,11 +22,11 @@ in {
font = { font = {
normal = { normal = {
family = cfg.theme.font.monospaceFont.name; family = cfg.theme.monospaceFont.name;
style = "Regular"; style = "Regular";
}; };
size = cfg.theme.font.monospaceFont.size + 1; size = cfg.theme.monospaceFont.size + 1;
}; };
selection.save_to_clipboard = true; selection.save_to_clipboard = true;

View file

@ -68,7 +68,7 @@
}; };
settings = { settings = {
theme = "adwaita-dark"; theme = lib.mkDefault "adwaita-dark";
editor = { editor = {
auto-completion = true; auto-completion = true;
auto-format = true; auto-format = true;

View file

@ -22,7 +22,7 @@ in {
tab_bar_style = "powerline"; tab_bar_style = "powerline";
}; };
theme = "Adwaita dark"; theme = lib.mkDefault "Adwaita dark";
}; };
}; };
} }

View file

@ -70,7 +70,7 @@ in {
"rofi/theme.rasi".text = '' "rofi/theme.rasi".text = ''
* { * {
selected-normal-foreground: ${cfg.theme.colors.text}; selected-normal-foreground: ${cfg.theme.colors.secondary};
foreground: ${cfg.theme.colors.text}; foreground: ${cfg.theme.colors.text};
normal-foreground: @foreground; normal-foreground: @foreground;
alternate-normal-background: transparent; alternate-normal-background: transparent;
@ -81,14 +81,14 @@ in {
alternate-urgent-background: transparent; alternate-urgent-background: transparent;
active-foreground: ${cfg.theme.colors.primary}CC; active-foreground: ${cfg.theme.colors.primary}CC;
lightbg: rgba ( 238, 232, 213, 80 % ); lightbg: rgba ( 238, 232, 213, 80 % );
selected-active-foreground: ${cfg.theme.colors.text}; selected-active-foreground: ${cfg.theme.colors.secondary};
alternate-active-background: transparent; alternate-active-background: transparent;
background: transparent; background: transparent;
bordercolor: ${cfg.theme.colors.background}99; bordercolor: ${cfg.theme.colors.background}99;
alternate-normal-foreground: @foreground; alternate-normal-foreground: @foreground;
normal-background: transparent; normal-background: transparent;
lightfg: ${cfg.theme.colors.primary}CC; lightfg: ${cfg.theme.colors.primary}CC;
selected-normal-background: ${cfg.theme.colors.primary}; selected-normal-background: ${cfg.theme.colors.background};
border-color: ${cfg.theme.colors.primary}CC; border-color: ${cfg.theme.colors.primary}CC;
spacing: 2; spacing: 2;
separatorcolor: ${cfg.theme.colors.primary}CC; separatorcolor: ${cfg.theme.colors.primary}CC;
@ -98,12 +98,13 @@ in {
background-color: transparent; background-color: transparent;
alternate-active-foreground: @active-foreground; alternate-active-foreground: @active-foreground;
active-background: transparent; active-background: transparent;
selected-active-background: ${cfg.theme.colors.primary}; selected-active-background: ${cfg.theme.colors.background};
} }
window { window {
background-color: ${cfg.theme.colors.background}99; background-color: ${cfg.theme.colors.background}CC;
border: 2; border: 4;
border-radius: 10px; border-color: @border-color;
border-radius: ${toString cfg.theme.borderRadius}px;
padding: 0; padding: 0;
} }
mainbox { mainbox {

View file

@ -111,11 +111,12 @@ in {
"blur,waybar" "blur,waybar"
"ignorezero,gtk-layer-shell" "ignorezero,gtk-layer-shell"
"ignorezero,notifications" "ignorezero,notifications"
"ignorezero,rofi"
"ignorezero,swayosd" "ignorezero,swayosd"
"ignorezero,waybar" "ignorezero,waybar"
]; ];
rounding = 10; rounding = cfg.theme.borderRadius;
shadow_range = 4; shadow_range = 4;
shadow_render_power = 3; shadow_render_power = 3;
}; };
@ -148,7 +149,7 @@ in {
"col.active_border" = "rgba(${lib.strings.removePrefix "#" cfg.theme.colors.secondary}CC) rgba(${lib.strings.removePrefix "#" cfg.theme.colors.primary}CC) 45deg"; "col.active_border" = "rgba(${lib.strings.removePrefix "#" cfg.theme.colors.secondary}CC) rgba(${lib.strings.removePrefix "#" cfg.theme.colors.primary}CC) 45deg";
"col.inactive_border" = "rgba(${lib.strings.removePrefix "#" cfg.theme.colors.inactive}99)"; "col.inactive_border" = "rgba(${lib.strings.removePrefix "#" cfg.theme.colors.inactive}99)";
allow_tearing = false; allow_tearing = false;
border_size = 2; border_size = 4;
gaps_in = 5; gaps_in = 5;
gaps_out = 6; gaps_out = 6;
layout = "dwindle"; layout = "dwindle";

View file

@ -257,15 +257,15 @@ in {
bindswitch --reload --locked lid:on output eDP-1 disable bindswitch --reload --locked lid:on output eDP-1 disable
bindswitch --reload --locked lid:off output eDP-1 enable bindswitch --reload --locked lid:off output eDP-1 enable
default_border pixel 2 default_border pixel 4
default_floating_border pixel 2 default_floating_border pixel 4
'' ''
+ lib.strings.optionalString (config.wayland.windowManager.sway.package + lib.strings.optionalString (config.wayland.windowManager.sway.package
== pkgs.swayfx) '' == pkgs.swayfx) ''
blur enable blur enable
blur_passes 2 blur_passes 2
# corner_radius 10 # corner_radius ${toString cfg.theme.borderRadius}
shadows enable shadows enable
shadows_on_csd enable shadows_on_csd enable
shadow_color ${cfg.theme.colors.shadow} shadow_color ${cfg.theme.colors.shadow}

View file

@ -226,6 +226,12 @@ in {
type = lib.types.bool; type = lib.types.bool;
}; };
borderRadius = lib.mkOption {
description = "Global border radius.";
default = 10;
type = lib.types.int;
};
colors = { colors = {
text = lib.mkOption { text = lib.mkOption {
description = "Text color."; description = "Text color.";

View file

@ -12,8 +12,8 @@ in {
anchor = "top-center"; anchor = "top-center";
backgroundColor = "${cfg.theme.colors.background}99"; backgroundColor = "${cfg.theme.colors.background}99";
borderColor = "${cfg.theme.colors.primary}CC"; borderColor = "${cfg.theme.colors.primary}CC";
borderRadius = 10; borderRadius = cfg.theme.borderRadius;
borderSize = 2; borderSize = 4;
defaultTimeout = 10000; defaultTimeout = 10000;
enable = true; enable = true;
font = "${cfg.theme.sansFont.name} Regular ${toString cfg.theme.sansFont.size}"; font = "${cfg.theme.sansFont.name} Regular ${toString cfg.theme.sansFont.size}";

View file

@ -314,8 +314,9 @@ in {
#submap, #submap,
#tray, #tray,
#workspaces { #workspaces {
border-radius: 10px; border-radius: ${toString cfg.theme.borderRadius}px;
background: rgba (36, 36, 36, 0.6); background: ${cfg.theme.colors.background};
opacity: 1.0;
margin: 5px 10px 0px 10px; margin: 5px 10px 0px 10px;
padding: 0px 10px 0px 10px; padding: 0px 10px 0px 10px;
} }
@ -327,7 +328,7 @@ in {
#submap, #submap,
#mode { #mode {
color: ${cfg.theme.colors.text}; color: ${cfg.theme.colors.text};
background: rgba(255, 123, 99, 0.6); background: rgba(255, 123, 99, 0.8);
} }
''; '';

View file

@ -12,6 +12,25 @@
extraCss = '' extraCss = ''
@define-color accent_bg_color ${cfg.colors.primary}; @define-color accent_bg_color ${cfg.colors.primary};
@define-color accent_color @accent_bg_color; @define-color accent_color @accent_bg_color;
@define-color accent_fg_color ${cfg.colors.text};
@define-color window_bg_color ${cfg.colors.background};
@define-color window_fg_color ${cfg.colors.text};
@define-color view_bg_color ${cfg.colors.background};
@define-color view_fg_color @window_fg_color;
@define-color headerbar_bg_color ${cfg.colors.background};
@define-color headerbar_backdrop_color @window_bg_color;
@define-color headerbar_fg_color @window_fg_color;
@define-color popover_bg_color ${cfg.colors.background};
@define-color popover_fg_color @view_fg_color;
@define-color dialog_bg_color @popover_bg_color;
@define-color dialog_fg_color @popover_fg_color;
@define-color card_bg_color @popover_bg_color;
@define-color card_fg_color @window_fg_color;
@define-color sidebar_bg_color @headerbar_bg_color;
@define-color sidebar_fg_color @window_fg_color;
@define-color sidebar_backdrop_color @window_bg_color;
@define-color sidebar_shade_color rgba(0,0,0,0.25);
${ ${
lib.strings.optionalString lib.strings.optionalString

View file

@ -61,7 +61,9 @@ in {
}; };
gitui.enable = true; gitui.enable = true;
helix.settings.theme = "rose-pine-moon";
home-manager.enable = true; home-manager.enable = true;
kitty.theme = "Rosé Pine Moon";
rbw = { rbw = {
enable = true; enable = true;
@ -99,12 +101,23 @@ in {
zed = { zed = {
enable = true; enable = true;
package = unstable.zed-editor; package = unstable.zed-editor;
settings = {
auto_install_extensions = {nord = true;};
theme = {
dark = "Rosé Pine Moon";
light = "Rosé Pine Dawn";
mode = "system";
};
};
}; };
}; };
defaultApps = { defaultApps = {
enable = true; enable = true;
editor = config.ar.home.apps.zed.package; editor = config.ar.home.apps.zed.package;
fileManager = pkgs.xfce.thunar;
}; };
services = { services = {
@ -114,6 +127,17 @@ in {
theme = { theme = {
enable = true; enable = true;
borderRadius = 0;
colors = {
text = "#e0def4";
background = "#2a273f";
primary = "#3e8fb0";
secondary = "#f6c177";
inactive = "#393552";
shadow = "#232136";
};
wallpaper = "${config.xdg.dataHome}/backgrounds/wallhaven-6d7xmx.jpg"; wallpaper = "${config.xdg.dataHome}/backgrounds/wallhaven-6d7xmx.jpg";
}; };
}; };

View file

@ -3,16 +3,16 @@
pkgs, pkgs,
... ...
}: { }: {
home.file = let # home.file = let
source = builtins.fetchGit { # source = builtins.fetchGit {
url = "https://github.com/rafaelmardojai/firefox-gnome-theme.git"; # url = "https://github.com/rafaelmardojai/firefox-gnome-theme.git";
rev = "fb5b578a4f49ae8705e5fea0419242ed1b8dba70"; # rev = "fb5b578a4f49ae8705e5fea0419242ed1b8dba70";
ref = "master"; # ref = "master";
}; # };
in { # in {
".mozilla/firefox/default/chrome".source = source; # ".mozilla/firefox/default/chrome".source = source;
".mozilla/firefox/work/chrome".source = source; # ".mozilla/firefox/work/chrome".source = source;
}; # };
programs.firefox = { programs.firefox = {
enable = true; enable = true;

View file

@ -84,16 +84,16 @@ in {
}; };
}; };
home.file = let # home.file = let
source = builtins.fetchGit { # source = builtins.fetchGit {
url = "https://github.com/rafaelmardojai/thunderbird-gnome-theme.git"; # url = "https://github.com/rafaelmardojai/thunderbird-gnome-theme.git";
rev = "628fcccb7788e3e0ad34f67114f563c87ac8c1dc"; # rev = "628fcccb7788e3e0ad34f67114f563c87ac8c1dc";
ref = "main"; # ref = "main";
}; # };
in { # in {
".thunderbird/default/chrome".source = source; # ".thunderbird/default/chrome".source = source;
".thunderbird/work/chrome".source = source; # ".thunderbird/work/chrome".source = source;
}; # };
programs = { programs = {
himalaya.enable = true; himalaya.enable = true;

View file

@ -16,7 +16,18 @@
hyprland.monitors = ["desc:LG Electronics LG ULTRAWIDE 311NTAB5M720,preferred,auto,1.25,vrr,2"]; hyprland.monitors = ["desc:LG Electronics LG ULTRAWIDE 311NTAB5M720,preferred,auto,1.25,vrr,2"];
}; };
theme.darkMode = false; theme = {
colors = lib.mkForce {
text = "#575279";
background = "#fffaf3";
primary = "#286983";
secondary = "#ea9d34";
inactive = "#393552";
shadow = "#232136";
};
darkMode = false;
};
}; };
} }
]; ];