style(themes): brand the launcher mark and rework waybar icon sizing
All checks were successful
Check / eval (push) Successful in 3m11s
All checks were successful
Check / eval (push) Successful in 3m11s
- Pin `font-family: Nomarchy` on #custom-nomarchy (boreal, executive-slate) so the branded mark at U+F000 wins over the Nerd Font's glass glyph at the same codepoint (summer bars already pinned it). - Enlarge the icons on icon+text modules via a Pango span, with a gap so the glyph no longer crowds the value. The volume module gets a wider gap: its level glyph is unusually wide and overlapped the % otherwise. - Bump icon-only status modules (caffeine, speedometer, …) to match, so they don't read smaller than their neighbours. The generated bar sizes everything relative to fonts.size (+2/+3pt) so it scales per theme. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -158,12 +158,12 @@ let
|
||||
# Active keyboard layout (per focused device) — only placed in
|
||||
# modules-right when showLanguage (see above).
|
||||
"hyprland/language" = {
|
||||
format = " {short}";
|
||||
format = "<span size='${toString (t.fonts.size + 2)}pt'></span> {short}";
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
pulseaudio = {
|
||||
format = "{icon} {volume}%";
|
||||
format = "<span size='${toString (t.fonts.size + 2)}pt'>{icon}</span> {volume}%";
|
||||
format-muted = "";
|
||||
format-icons.default = [ "" "" "" ];
|
||||
on-click = "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
|
||||
@@ -187,8 +187,8 @@ let
|
||||
|
||||
battery = {
|
||||
states = { warning = 25; critical = 10; };
|
||||
format = "{icon} {capacity}%";
|
||||
format-charging = " {capacity}%";
|
||||
format = "<span size='${toString (t.fonts.size + 2)}pt'>{icon}</span> {capacity}%";
|
||||
format-charging = "<span size='${toString (t.fonts.size + 2)}pt'></span> {capacity}%";
|
||||
format-icons = [ "" "" "" "" "" ];
|
||||
};
|
||||
|
||||
@@ -361,9 +361,15 @@ let
|
||||
always the alert color. */
|
||||
#custom-doctor { color: @bad; }
|
||||
|
||||
/* The power-profile speedometer glyph renders small in its em box —
|
||||
size it up so it reads at a glance like the other indicators. */
|
||||
#custom-powerprofile { font-size: ${toString (t.fonts.size + 3)}pt; }
|
||||
/* Icon-only status modules carry no text, so they don't get the
|
||||
(size+2)pt Pango icon span the icon+text modules use — bump their
|
||||
font-size to match, or these glyphs read smaller than the volume /
|
||||
battery / language icons beside them. */
|
||||
#custom-recording, #custom-updates, #custom-vpn, #custom-nightlight, #custom-doctor, #custom-notification { font-size: ${toString (t.fonts.size + 2)}pt; }
|
||||
|
||||
/* The speedometer + caffeine glyphs render small in their em box —
|
||||
size them up a touch more so they read at a glance. */
|
||||
#custom-powerprofile, #idle_inhibitor { font-size: ${toString (t.fonts.size + 3)}pt; }
|
||||
|
||||
/* notifications waiting → accent; Do-Not-Disturb → muted bell-off */
|
||||
#custom-notification.notification { color: @accent; }
|
||||
|
||||
Reference in New Issue
Block a user