From 34fb458889d3897e160ae9ab71b971a4d2120149 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 24 Aug 2024 22:32:53 -0400 Subject: [PATCH] theme: better gtk tooltips to match waybar --- homeManagerModules/theme.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/homeManagerModules/theme.nix b/homeManagerModules/theme.nix index 14781d21..4f8aed53 100644 --- a/homeManagerModules/theme.nix +++ b/homeManagerModules/theme.nix @@ -39,6 +39,26 @@ in { // Control rounded corners window.background { border-radius: ${toString cfg.borders.radius}; } + 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}; + } + + background-color: alpha(${config.lib.stylix.colors.withHashtag.base00}, ${builtins.toString config.stylix.opacity.popups}); + border-radius: ${toString cfg.borders.radius}; + border: 1px solid ${config.lib.stylix.colors.withHashtag.base0D}; + color: white; + } + + ${ + lib.optionalString (config.stylix.polarity == "light") " + 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.strings.optionalString cfg.gtk.hideTitleBar