XFCE's window button tooltips obscure applications. Move them down?
by clipping from LinuxQuestions.org on (#5NB72)
I have spent much of the afternoon fiddling with GTK3 CSS to try and get the tooltips on my XFCE desktop looking bland, old, non-intrusive, functional, familiar, and worst of all, unfashionable.
I have nearly got it, with only a bit too much background showing on tooltips. By default(ish) the tooltips were excessively big black boxes with white text, and I have been trying to make it so the tooltips look as XFCE has since it has been my main Linux GUI on Slackware 12.2.
The position of the tooltips on my Windows 95 type layout get in the way of applications. My desktop widgets tend to be set up to be as small as I can tolerate, and to be out the way whilst always being available. But with XFCE 4.16 the tool tips float above the menu buttons or applications on the panel, and stay there whilst the pointer is still on a button. In the past the tooltips sat within the panel. The current version's tooltips get in the way of the bottom of maximised applications, such as their status bars, or the prompt in a shell.
I know, again, status bars and command prompts. Not cool :)
This screenshot is staged, but not faked. I just changed xterm's prompt and its title bar, so in this shot the tooltip has a lot of text in it. But even a little [xterm] sooner or later will get in the way of something.
https://bayimg.com/8cf83732cc9aef459...6141036e8a.jpg
This code makes the above happen, but this is by no means "correct". It is a pastiche of copied efforts off forums, blogs, and my fiddling. Production-grade for $CURRENT_LAUGHABLE_VENDOR
~/.config/gtk-3.0/gtk.css
Code:tooltip {
text-shadow: none;
border-radius: 0px;
box-shadow: none;
}
tooltip.background {
position: static;
background-color: #ffffdf;
background-clip: padding-box; }
tooltip.background label {
margin: -7;
margin-top: -8;
padding: 0; }
tooltip decoration {
background-color: none; }
tooltip * {
color: #000000; }I have tried moving the tooltip by changing the position property, but it doesn't seem to want to budge.
A convenience I found today was that `xfce4-panel -r` after saving changed CSS restarts the panels, applying the new settings. No logout and in.
I do find CSS pretty cryptic, and the above code has been very much trial-and-error. Can the tooltips even be moved? I can kinda understand that they might always try not to block a parent widget. But it isn't like widgets are used in isolation.
Any hints would be appreciated.
EDIT: This is how XFCE on Slackware 14.2 does it. The tooltip over/within the panel means it can't get in the way of applications.
https://bayimg.com/908d185c4e805c4c6...fdc995c2ba.jpg


I have nearly got it, with only a bit too much background showing on tooltips. By default(ish) the tooltips were excessively big black boxes with white text, and I have been trying to make it so the tooltips look as XFCE has since it has been my main Linux GUI on Slackware 12.2.
The position of the tooltips on my Windows 95 type layout get in the way of applications. My desktop widgets tend to be set up to be as small as I can tolerate, and to be out the way whilst always being available. But with XFCE 4.16 the tool tips float above the menu buttons or applications on the panel, and stay there whilst the pointer is still on a button. In the past the tooltips sat within the panel. The current version's tooltips get in the way of the bottom of maximised applications, such as their status bars, or the prompt in a shell.
I know, again, status bars and command prompts. Not cool :)
This screenshot is staged, but not faked. I just changed xterm's prompt and its title bar, so in this shot the tooltip has a lot of text in it. But even a little [xterm] sooner or later will get in the way of something.
https://bayimg.com/8cf83732cc9aef459...6141036e8a.jpg
This code makes the above happen, but this is by no means "correct". It is a pastiche of copied efforts off forums, blogs, and my fiddling. Production-grade for $CURRENT_LAUGHABLE_VENDOR
~/.config/gtk-3.0/gtk.css
Code:tooltip {
text-shadow: none;
border-radius: 0px;
box-shadow: none;
}
tooltip.background {
position: static;
background-color: #ffffdf;
background-clip: padding-box; }
tooltip.background label {
margin: -7;
margin-top: -8;
padding: 0; }
tooltip decoration {
background-color: none; }
tooltip * {
color: #000000; }I have tried moving the tooltip by changing the position property, but it doesn't seem to want to budge.
A convenience I found today was that `xfce4-panel -r` after saving changed CSS restarts the panels, applying the new settings. No logout and in.
I do find CSS pretty cryptic, and the above code has been very much trial-and-error. Can the tooltips even be moved? I can kinda understand that they might always try not to block a parent widget. But it isn't like widgets are used in isolation.
Any hints would be appreciated.
EDIT: This is how XFCE on Slackware 14.2 does it. The tooltip over/within the panel means it can't get in the way of applications.
https://bayimg.com/908d185c4e805c4c6...fdc995c2ba.jpg