Web lists-archives.com

Re: They broke the CSS custom color settings in 3.20

On Sat, 2016-11-12 at 21:59 +0100, Stefan Salewski wrote:
> So it may be impossible to
> avoid black shadow.

Some initial great success. Found


tooltip {
  &.background {
    // background-color needs to be set this way otherwise it gets drawn twice
    // see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
    background-color: transparentize(black, 0.2);
    background-clip: padding-box;
    border: 1px solid $tooltip_borders_color; // this suble border is meant to
                                              // not make the tooltip melt with
                                              // very dark backgrounds

  padding: 4px; /* not working */
  border-radius: 5px;
  box-shadow: none; // otherwise it gets inherited by windowframe.csd
  text-shadow: 0 1px black;

  // FIXME: we need a border or tooltips vanish on black background.
  decoration { background-color: transparent; }

  * { // Yeah this is ugly
    padding: 4px;
    background-color: transparent;
    color: white;

So there is indeed a text-shadow field, and indeed with

str0 = "tooltip {text-shadow: 0 0 black; ...

I can avoid that black shadow. Now I have at least true white font on
white background. And chances are good that I will find out how to get
black text.

Of course, the fact that we have to care about tooltip colors in this
way for gtksourceview dark color schemes is not really nice. At least a
tooltip related function for inverting colors would be nice.
gtk-list mailing list