[tooltip] background transparency
EDIT: tooltip background color was changed from set gtk theme
Things I've tried:
- css
tooltip,
#clock.calendar,
#clock tooltip,
#clock > tooltip,
#clock {
background: rgba(29, 32, 33, 0.75);
}
- config: (rgba too)
<span background='#1d2021c0'><big>{:%d %B %Y}</big>\n<tt><small>{calendar}</small></tt></span>
not sure but it looks like alpha isn't used correctly either
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 waybarbut couldn't find an element tooltip subordinated to the modules
Hope this helps you at least a bit further.....
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 waybarbut couldn't find an element tooltip subordinated to the modulesHope 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.
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 waybarbut couldn't find an element tooltip subordinated to the modulesHope 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
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
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
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!
Thank you!