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

Gaël (aka Kleag) kleag at free.fr
Thu Nov 25 00:25:48 CET 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 !

Gaël


> 
> > 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. :-)

-- 
KsirK - a world domination strategy game 
http://techbase.kde.org/Projects/Games/Tactic_and_Strategy/KsirK

KGraphViewer - a GraphViz dot graphs viewer and editor based on a reusable 
part
http://extragear.kde.org/apps/kgraphviewer


More information about the kgraphviewer-devel mailing list