|
From: <pl...@pi...> - 2016-01-26 20:08:12
|
On 26/01/16 19:02, Ethan A Merritt wrote: > On Tuesday, 26 January, 2016 12:51:07 pl...@pi... wrote: > > > On 25/01/16 19:07, Ethan A Merritt wrote: > > > > On Monday, 25 January, 2016 13:21:55 pl...@pi... wrote: > > > > > > > > > In passing I also report that when qt terminal toggles a line the > legend > > > > > gets a mid-grey background colour that is very ugly. Presumably > someone > > > > > thought it could indicated a non-visible line. > > > > > > > > > I would submit that it just makes a visual mess of the graph and > is not > > > > > even helpful since it renders the legend pretty much visible anyway. > > > > > > > > Did you mean to say "invisible"? > > > > It looks OK to me, but I suppose tastes and computer displays vary. > > > > > > Yes: invisible, sorry. > > > > > > As I said it looks more reasonable in wxt. QT is way too dark and makes > > > it illegible ( on my monitor ) and an ugly dark block. Colour > > > inconsistencies between terminals is already a bit of a problem. > > > > > > > > > Same on wxt but legible.. Probably grey too dark on qt. > > FWIW there is no explicit color involved. > > What you see is a bitmask Qt::Dense4Pattern. > > I wonder if the implementation of that mask varies by platform or by > > Qt version? Or perhaps there is a default color associated with the > > bitmask that is different on our two machines? > > Here is a patch that makes the color explicit rather than whatever > > it defaults to. Does it help? > > -- gnuplot/src/qtterminal/QtGnuplotScene.cpp 2016-01-25 > 11:23:41.000000000 -0800 > > +++ gnuplot-cvs/src/qtterminal/QtGnuplotScene.cpp 2016-01-26 > 10:44:23.000000000 -0800 > > @@ -554,7 +554,9 @@ void QtGnuplotScene::processEvent(QtGnup > > // Draw an invisible grey rectangle in the key box. > > // It will be set to visible if the plot is toggled off. > > QtGnuplotKeybox *keybox = &m_key_boxes[m_currentPlotNumber-1]; > > - QGraphicsRectItem *statusBox = addRect(*keybox, Qt::NoPen, > Qt::Dense4Pattern); > > + m_currentBrush.setColor(Qt::gray); > > + m_currentBrush.setStyle(Qt::Dense4Pattern); > > + QGraphicsRectItem *statusBox = addRect(*keybox, Qt::NoPen, > m_currentBrush); > > statusBox->setZValue(m_currentZ-1); > > keybox->showStatus(statusBox); > > Ethan > Thanks for the patch but I'm not running CVS any more on this system. I had wasted too much time just trying to get it to compile. I ended up going with the distro packages. I may have another go later , when I get some time. Peter. |