[kgraphviewer-devel] Re: Black background colour in kgraphview

Milian Wolff mail at milianw.de
Thu Nov 25 21:05:23 CET 2010


Gaël (aka Kleag), 25.11.2010:
> Hi,
> 
> Le mardi 23 novembre 2010 13:01:28, Milian Wolff a écrit :
> > Gaël (aka Kleag), 22.11.2010:
> > > Hello,
> > > 
> > > The default background color is corrected on git: it is now a light
> > > gray. But maybe should it be gathered from the desktop theme ?
> > 
> > Please use KColorScheme or even set it to white since afaik dot also uses
> > a white background by default. If you really change the default
> > background, you'll also have to change the default foreground as I e.g.
> > have a very dark grey background color in my scheme.
> 
> I tried like that:
>       kgv-
> 
> >setBackgroundColor(KColorScheme(QPalette::Normal).background().color());
> 
> but got a really too dark background... Other applications are not like
> that !
> 
> Is it the right solution ? If it's the case, I'll use white !

If at all, you'd have to use QPalette::View, as that's what your KPart is.

And if you'd do that I'd get #201F1F as background and, since you don't change 
the foreground, black arrows.

Hence, I vote again for just removing this feature and setting the background 
color to white. Why would you want to change that anyways? I don't see the 
need for that at all...

> > > I also have to make the change in the settings page immediatly applied
> > > to the currently loaded graphs. I think it's the best while there is
> > > not specific settings stored for each graph. Do you agree ?
> > 
> > Yes.
> > 
> > > Le lundi 15 novembre 2010 15:44:31, Erlend Hamberg a écrit :
> > > > Hi,
> > > > 
> > > > I built kgraphviewer from git today (fdce614d0...) and get a black
> > > > background when opening a dot file. Opening
> > > > http://www.graphviz.org/Gallery/undirected/process.gv.txt gives this
> > > > result: http://i.imgur.com/9AxmH.png Changing default background
> > > > colour in settings does not change anything.
> > > > 
> > > > I guess this is a bug. :-)


-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kgraphviewer-devel/attachments/20101125/afa9705b/attachment.sig 


More information about the kgraphviewer-devel mailing list