On Wednesday 19 June 2013 15:04:57 Matthew Woehlke wrote:
> On 2013-06-18 11:54, Aleix Pol wrote:
> > On Tue, Jun 18, 2013 at 5:40 PM, Matthew Woehlke wrote:
> >> On 2013-06-18 03:10, Dominik Haumann wrote:
> >>> On Tuesday, June 18, 2013 08:14:50 Kevin Ottens wrote:
> >>>> On Monday 17 June 2013 19:43:33 Aleix Pol wrote:
> >>>>> So I was looking at KGlobalSettings to see what we need to do to
> >>>>> finally
> >>>>> deprecate all KGlobalSettings, as suggested by the required kdelibs
> >>>>> cleanups.
> >>>>> 
> >>>>> So the things missing to be done are:
> >>>>>    - (in)active(Title/Color)Color: I'm unsure why those are there, but
> >>>>> 
> >>>>> they're only used by khtml (within kdelibs) and I don't know if
> >>>>> they're
> >>>>> configurable. I guess they should be using KColorScheme, although I
> >>>>> don't see caption properties there. Ideas?
> >> 
> >> What are these used for? They sound like WM colors?
> >> 
> >>   It's used a bit outside of kdelibs, but not much indeed. Still as you
> >>   said
> >>   
> >>>> it likely makes most sense in KColorScheme. So I'd say extend
> >>>> KColorScheme
> >>>> accordingly and then deprecate.
> >> 
> >> Perhaps, but KColorScheme already has quite some colors and they are
> >> (fairly) well organized at the moment. I would like to understand first
> >> what these other colors are used for and if maybe existing colors should
> >> be
> >> used instead, or at least how to best fit them into the existing
> >> framework.
> > 
> > Here you can see where and how it's used:
> > 
> > http://lxr.kde.org/ident?i=activeTitleColor
> > http://lxr.kde.org/ident?i=inactiveTitleColor
> > http://lxr.kde.org/ident?i=activeCaptionColor
> > http://lxr.kde.org/ident?i=inactiveCaptionColor
> 
> Yes, those appear to be the WM colors.
I just had a look at the usage of KGlobalSettings inside KWin: none of these 
colors are used - neither in KWin core nor in the window decorations shipped 
with KWin. KWin reads color values with these names from a config group called 
"WM" without using KGlobalSettings (see kde-
workspace/kwin/libkdecorations/kdecoration_p.cpp line 60ff). But tracing back 
the argument passed into this method: it always reads the values from kwinrc, 
never from kdeglobals. In case that had once been supported: it's at least 
broken since 4.0.

So from my side there is no need to keep any special handling. If we want to 
make this work again we just need to modify the KCM to change kwin's config 
file for these colors.

Cheers
Martin Gräßlin

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel

Reply via email to