Replies: 19 comments 7 replies
-
|
I tried putting those snippets in my Edit: Nevermind, you're not supposed to have a |
Beta Was this translation helpful? Give feedback.
-
|
@poperigby Does it really work? On a quick code search I cannot find any input for style attributes for tooltips. It would be great to have the possibility to stylize tooltips at all. |
Beta Was this translation helpful? Give feedback.
-
|
Here's a CSS snippet: Does that work? |
Beta Was this translation helpful? Give feedback.
-
|
Thank you, almost. The |
Beta Was this translation helpful? Give feedback.
-
|
Sorry about that. Background color should be a hexadecimal, rgba, etc. value. I accidentally put in one of my defined colors. |
Beta Was this translation helpful? Give feedback.
-
|
Just the foreground |
Beta Was this translation helpful? Give feedback.
-
|
Oh, then I misunderstood what you were saying. |
Beta Was this translation helpful? Give feedback.
-
|
It's interesting how some properties work but some simple don't (font-family, font-size). What's the reason behind this behaviour? |
Beta Was this translation helpful? Give feedback.
-
|
I found the solution for styling the foreground color: tooltip label {
color: @theme_fg_color;
}Added to the Wiki in https://github.com/Alexays/Waybar/wiki/Styling/9c4f6a764f5469d08d6a20695121156ee93dd3e5. |
Beta Was this translation helpful? Give feedback.
-
|
How can one get padding to work for tooltips? Adding it as follows doesn't work. tooltip {
padding: 5px;
} |
Beta Was this translation helpful? Give feedback.
-
|
I wonder how big a refactor it would be to allow for tooltip config per module - for example, I want monospace font on some tooltips but not for others. |
Beta Was this translation helpful? Give feedback.
-
|
You can setup custom CSS for tooltip by doing this tooltip label { tooltip itself, for whatever reason, doesn't really accept any CSS settings, but tooltip label is the place to customize. |
Beta Was this translation helpful? Give feedback.
-
|
Don't forget that CSS specificity still applies here. If you're trying to style something and it seems to be ignoring some of your rules but not others, since there's no |
Beta Was this translation helpful? Give feedback.
-
|
You can style tooltips on a per-module basis by using pango markup in the tooltip text. So for a module like this: and a bash script like this: you'll get a yellow, monospaced tooltip for this module, and default tooltip styling for other modules. Just be careful with bash escapes when interpolating strings to create the json object. |
Beta Was this translation helpful? Give feedback.
-
|
Is it possible to add images to a tooltip? |
Beta Was this translation helpful? Give feedback.
-
|
Is it possible to target the tooltip for a specific module. For example, to use a monospace font for the calendar tooltip for the clock module? |
Beta Was this translation helpful? Give feedback.
-
|
Any idea on how to do padding and margin with tooltips? |
Beta Was this translation helpful? Give feedback.
-
|
Is there a way to change the activation time for tooltip, I want it to appear instantaneously on hovering. |
Beta Was this translation helpful? Give feedback.
-
|
If you adjust the tooltip too high (with negative margin-top), eventually it starts getting cut off, is there any way around this? |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Tooltips are possible to customize, but they can't be inspected with a debug tool.
Example:
But there is no way to inspect the elements to see what is inside those tags, so it's a guessing game for now.
For example, how do i change "today-format" element style in the "clock" module?
Beta Was this translation helpful? Give feedback.
All reactions