<div class="gmail_quote">2010/5/1 Ingo Klöcker <span dir="ltr"><<a href="mailto:kloecker@kde.org">kloecker@kde.org</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On Friday 30 April 2010, Andriy Rysin wrote:<br>
> 2010/4/29 Aaron J. Seigo <<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>><br>
> > On April 25, 2010, Andriy Rysin wrote:<br>
</div><div class="im">> > > drawing the text I need to find a way to leave the taskbar<br>
> > > background (but this was also the problem before).<br>
> ><br>
> > looking at the code in Flags, i think i can see the problem: you<br>
> > probably just<br>
> > need to fill the pixmap first with Qt::transparent so the<br>
> > background is, well,<br>
> > transparent :) then you can paint the text, flag, etc over top of<br>
> > that.<br>
><br>
> yep, I found it today and already pushed the code for transparency<br>
> The problem with text over the flag is that it's hard to find the<br>
> right way to paint readable text with all the possible flag colors<br>
> and their combination. So for now it'll be either text or flag, so<br>
> far the early feedback was pretty positive.<br>
<br>
</div>Drawing a dark outline around white text usually is a good solution for<br>
this problem. To get something like an outline which also looks good for<br>
small fonts you could draw the text in black, then blur it and then draw<br>
the text in white over the blurred black text.<br>
<br></blockquote><div>That's very similar to what was done before, though as flags are quite different in size/colors/darkness, the white text was drawn with black one shifted 1px for a shadow, plus flags had to be dimmed otherwise text was not readable anyway. Even though the final text image was more or less readable on most flags it was quite ugly both code- and look-wise...<br>
</div></div>I'm really starting to like "flag-only"/"text-only" solution  better.<br><br>Thanks,<br>Andriy<br><br>