Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

[tooltip] background transparency

Open Doomer-Cat opened this issue 2 years ago • 8 comments

EDIT: tooltip background color was changed from set gtk theme

Things I've tried:

  1. css
tooltip,
#clock.calendar,
#clock tooltip,
#clock > tooltip,
#clock {
    background: rgba(29, 32, 33, 0.75);
}
  1. config: (rgba too)
<span background='#1d2021c0'><big>{:%d %B %Y}</big>\n<tt><small>{calendar}</small></tt></span>

waybar_clock_calendar_issue_1

Doomer-Cat avatar Dec 10 '23 21:12 Doomer-Cat

not sure but it looks like alpha isn't used correctly either

Doomer-Cat avatar Dec 10 '23 21:12 Doomer-Cat

I successfully use transprency on my tooltips, here is what I do in style.css: tooltip { background: rgba(204, 34, 0, 0.6); }

Your question made me curious and I checked your configuration to understand where transparency breaks, here is what I figured out:

  • '#clock tooltip' doesn't work on my system either
  • your inline css within the span does set the background color on the tooltip only for the text
  • I checked the CSS tree with env GTK_DEBUG=interactive waybar but couldn't find an element tooltip subordinated to the modules

Hope this helps you at least a bit further.....

mutoroglin avatar Dec 11 '23 12:12 mutoroglin

I successfully use transprency on my tooltips, here is what I do in style.css: tooltip { background: rgba(204, 34, 0, 0.6); }

Your question made me curious and I checked your configuration to understand where transparency breaks, here is what I figured out:

  • '#clock tooltip' doesn't work on my system either
  • your inline css within the span does set the background color on the tooltip only for the text
  • I checked the CSS tree with env GTK_DEBUG=interactive waybar but couldn't find an element tooltip subordinated to the modules

Hope this helps you at least a bit further.....

You single-handedly saved me, my GTK theme was screwing up my waybar too but thanks to the GTK_DEBUG env I now found out I need to set background initial on widgets inside waybar to fix it I thank you for this information, and it should be mentioned somewhere in the docs of waybar.

ghost avatar Dec 14 '23 20:12 ghost

I successfully use transprency on my tooltips, here is what I do in style.css: tooltip { background: rgba(204, 34, 0, 0.6); }

Your question made me curious and I checked your configuration to understand where transparency breaks, here is what I figured out:

  • '#clock tooltip' doesn't work on my system either
  • your inline css within the span does set the background color on the tooltip only for the text
  • I checked the CSS tree with env GTK_DEBUG=interactive waybar but couldn't find an element tooltip subordinated to the modules

Hope this helps you at least a bit further.....

sadly setting the background for all tooltips doesn't work for me

i also tried tooltip#clock thinking that might work but didnt

Doomer-Cat avatar Dec 14 '23 22:12 Doomer-Cat

using opacity does work but with it being applied to text too sadly

tooltip {
    opacity: 0.75;
}

EDIT:

* {
      background-color: transparent;
}

tooltip {
     background-color: rgba(0, 0, 0, 0.5);
}

This works but turns everthing else transparent idk where color is set for it from elsewhere

Doomer-Cat avatar Dec 27 '23 11:12 Doomer-Cat

I finally figured it out

So it was just the set gtk theme setting it (why didn't i look into the theme files?)

tooltip * {
	background:	transparent;
}

tooltip.background {
	background:	rgba(29,32,33,0.8);
}

I achieved what i wanted, but i don't know how to change background-color indiviually for each module. So I changed the title. Please tell if anyone knows

Doomer-Cat avatar Jan 02 '24 03:01 Doomer-Cat

I finally figured it out

So it was just the set gtk theme setting it (why didn't i look into the theme files?)

tooltip * {
	background:	transparent;
}

tooltip.background {
	background:	rgba(29,32,33,0.8);
}

I achieved what i wanted, but i don't know how to change background-color indiviually for each module. So I changed the title. Please tell if anyone knows

It worked!

big-hero-dev avatar Apr 19 '24 03:04 big-hero-dev

Thank you!

TollerNamen avatar Jun 30 '25 20:06 TollerNamen