<div class="gmail_quote">2010/6/3 Aaron J. Seigo <span dir="ltr"><<a href="mailto:aseigo@kde.org">aseigo@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 June 3, 2010, Andriy Rysin wrote:<br>
> On Jun 2, 2010, at 13:57, "Aaron J. Seigo" <<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>> wrote:<br>
> > look in kdelibs/plasma/paintutils.[h|cpp] and feel free to steal the<br>
> > code for<br>
> > shadowText(...)<br>
><br>
> Thanks, that works but I had to "steal" 7 functions in 150 lines of<br>
> code. I've got a feeling this code might belong to some common place<br>
> (e.g. kdelibs).<br>
<br>
</div>it is in kdelibs :) libplasma contains animations as well. the problem with<br>
splitting those kinds of things out into their own library is that they tend<br>
to become unused, deprecated, duplicated, etc, etc. it's happened several<br>
times in the course of ke over the last several years. but if it there is real<br>
interest, we could split libplasma into an "effects" library (though it really<br>
wouldn't be complete enough to justify calling it such a thing) and a more app<br>
focused libplasma.<br></blockquote><div>Hmm, I am not sure if it makes sense for keyboard layout indicator to link to libplasma so for now I just duped the code but if the code for text shadowing is going to move to more basic lib I'll be more than willing to link instead :)<br>
<br>Though now I have one more problem (unrelated to text shadow): if the text is wide enough the pixmap generated seems to get bigger than the space for the icon in systray, and seems like KStatusNotifierItem does not scale it or clip it but just does not show anything at all... or am I doing something wrong (again :) )?<br>
I can do (a bit more) coding in layout indicator widget to get the font smaller if text is too wide, but I am not sure if I can know the size limit I have - now that the client code is abstract from systray UI is there a way to know the size of systray icon to squeeze content in?<br>
<br>Thanks,<br>Andriy<br><br></div></div>