On Wed, Apr 9, 2014 at 6:41 PM, Jerome Leclanche <adys...@gmail.com> wrote:
> On Wed, Apr 9, 2014 at 11:30 AM, PCMan <pcman...@gmail.com> wrote:
>> Hello,
>> I just worked on lxqt-config-appearance to make it more complete.
>> Here is a list of changes:
>> 1. Add a page for "widget style". Users can choose a Qstyle from the
>> list just like what they can do with qtconfig.
>> 2. Font configuration was partially implemented. Now only changing
>> font family and size works.
>> The latest lxqt-session and lxqt-qt-plugin are needed for the new
>> lxqt-config-appearance to work.
>
> Great! I'll be testing these soon.
>
>>
>> Some problems are noted:
>> 1. the font antialias and hinting settings implemented via Xrdb only
>> works for gtk+ programs. Qt reads xrdb resources, too. However, the
>> values are overwritten by fontconfig. To overcome this, doing some
>> hacks with fontconfig is needed. :-(
>> 2. The changes cannot be applied on the fly. Only newly started apps
>> can apply the change.
>> 3. KDE applications do not follow the config values I stored in
>> ~/.config/Trolltech.conf. Maybe we should also hack
>> ~/.kde4/share/config/kdeglobals?
>> KDE apps seem to ignore the settings of Qt?
>> Making it work in all Qt programs is really difficult! :-(
>
> Well that's annoying...

The only thing annoying is that the settings cannot be applied
on-the-fly for existing processes.

> I don't think we should bother with KDE settings, really. GTK2 maybe,
> GTK3 definitely not.

I'd say yes. Making it work for gtk+ 2 and 3 is trivial and requires
no more than 50 lines of C++ code.
Even better, gtk+ reads Xft settings from Xrdb resources if they're present.
So, actually the current implementation works for gtk+ automatically
without touching gtk+ config files.
Having a Qt desktop does not mean running gtk+ programs should have bad UX.
If we can improve the UX for all users with little effort, why not?

> I think this is a non-issue on Wayland so I don't think it's worth
> spending time making everything work. Does anyone know more about how
> KDE reads font settings?

It's an issue not related to Wayland at all. Migrating to Wayland will
not solve this.
These options are controlled by fontconfig and are not related to X11.
I tried to dig into the source code of Qt and already figured out how
to make it work.
We need to write some more config values to the xml file
~/.config/fontconfig/fonts.conf.

Gtk+ reads font settings from these places:
1. Xsettings
2. gtkrc/settings.ini
3. xrdb resources

Qt reads font settings from these places:
1. Use xrdb resources in Gnome
2. Overwrite xrdb values with fontconfig settings if they're present
3. KDE programs seem to have some more settings from ~/.kde4/share/config

Xrdb only works for gtk+ in most of the cases.
Changing fontconfig settings will work for both, which does not
require X11 at all.

Cheers!

> J. Leclanche

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to