From 02f0ce1d7c6f2e28a6555bc0a50bf08c14eb538e Mon Sep 17 00:00:00 2001 From: ocpway Date: Thu, 30 Jul 2026 04:58:30 +0300 Subject: [PATCH] Make popover background dark without depending on @background The omarchy matte-black theme file (~/.config/omarchy/current/theme/waybar.css) is empty, so @background and @foreground are undefined GTK variables. A tooltip rule using background-color: @background resolves to nothing, so the popover rendered transparent. Replace the theme variables with the literal matte-black colors (#121212 / #bebebe) from colors.toml so the popover is dark even though the theme file is empty. Scoped to the tooltip; the bar background is left unchanged. --- config/waybar-style.css | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/config/waybar-style.css b/config/waybar-style.css index 499b5e5..b78b812 100644 --- a/config/waybar-style.css +++ b/config/waybar-style.css @@ -13,14 +13,16 @@ /* Dark popover background for the ocd tooltip window. Waybar scopes tooltip styles globally: this rule applies to every - tooltip in the bar, not just ours (Waybar wiki / PR #4930). It uses - @background / @foreground, the same dark theme color the rest of - the bar already uses (imported by omarchy's theme file), so the - change matches the bar instead of introducing a new color. + tooltip in the bar, not just ours (Waybar wiki / PR #4930). + Literal hex, not @background: the omarchy matte-black theme file + (~/.config/omarchy/current/theme/waybar.css) is empty, so @background + / @foreground are undefined GTK variables and a reference here would + render transparent. #121212 / #bebebe are the matte-black colors.toml + values, so the popover still matches the intended theme. Also make the tooltip font monospace so the block-char bars line up. */ tooltip { - background-color: @background; - color: @foreground; + background-color: #121212; + color: #bebebe; padding: 6px 8px; border-radius: 6px; font-family: monospace;