Fonts and Containments
Sebastian Kuegler
sebas at kde.org
Mon Feb 4 15:31:46 CET 2008
Right now, Plasma::Widget::font() returns QApplication::font(), so it ignores
KGlobalSettings, and especially the settings from it that would be relevant
to Plasma: desktopFont() and taskbarFont(). (Those are the ones you set up
via KControl^WSystem Settings.)
Here are a couple of thoughts about that, after a short brainstorm with Chani
on IRC.
- The difference between desktopFont() and taskbarFont() is not fully
compatible with Plasma's world order
- Closest match is probably relating those two to formfactors
- We can do without having everyone decide on which font to use by providing
the right one from Widget::font(), proposed(, ugly, hackish) patch attached.
The problem with this patch is that it only checks if there's a
managingLayout() managing the size. If someone has a better suggestion how
to tell if we're inside a panel or not (and if that is valid anyway in the
Plasma World Order, POW), shoot.
- taskbarFont() is in kdelibs as of 4.0, so it cannot be removed or renamed
(to panelFont() for example)
- desktopFont() is not in kdelibs / kglobalsettings, I've a patch here that
adds it (depending on the outcome of this discussion, I'll send it to k-c-d
for review)
I think making those changes does actually make *some* sense, but I'm not
quite sure how we want to move forward with this ...
--
sebas
http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plasma-desktopfont-taskbarfont.diff
Type: text/x-diff
Size: 1393 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080204/a9206fb2/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdelibs-kglobalsettings-add-desktopfont.diff
Type: text/x-diff
Size: 1866 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080204/a9206fb2/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20080204/a9206fb2/attachment.pgp
More information about the Panel-devel
mailing list