LBCrion/sfwbar

Does tooltip can be customized

Closed this issue · 10 comments

the tooltip is too big for me, I tried padding and margin. it didn't seem like taking effect.

I tried two ways in CSS section as following, both of they didn't take effect . even the size of the font in tooltip had no any change.
1.
tooltip {
background-color: @theme_bg_color; /* the content of offical T2 config */
font-size: 10px;
}

/*tooltip {
background-color: @theme_bg_color;
font-size: 10px;
} */
tooltip * { font-size: 10px; }

it seems to me that the reason probably is not the font size ,instead, the distance between the text and the border.
tooltip

I found this problem with tooltips for almost every GTK program except chromium.

Thank your very much! Only 0px can appear the effect, and more than 0px will not appear the obvious effect or have no effect in the first place.

when i changed the backgroud-color of tooltip, The tooltip's looks like the one shown below
6
The section of tooltip is set up as follows:
tooltip * {
background-color: #e1dedb;
margin: 0px;
border: none;
padding: 0px;
}
can I chang the color of border from black to #e1dedb?

try:

tooltip {
  border: none;
}

it did not take effect. Here's my context about tooltip.
tooltip * {
background-color: @theme_bg_color;
margin: 0px;
border: none;
border-color: red;
padding: 0px;
}
tooltip {
border: none;
}

try setting tooltip background-color to #e1dedb? Essentially you have a tooltip {} section to control visualization of the tooltip itself and tooltip * {} for all widgets within the tooltip. If both are set to not have borders and to the same background color, there shouldn't be anything around the tooltip.

it worked, thank your very much!