[rkward-cvs] SF.net SVN: rkward:[3382] trunk/rkward

tfry at users.sourceforge.net tfry at users.sourceforge.net
Sat Jan 22 13:52:27 UTC 2011


Revision: 3382
          http://rkward.svn.sourceforge.net/rkward/?rev=3382&view=rev
Author:   tfry
Date:     2011-01-22 13:52:26 +0000 (Sat, 22 Jan 2011)

Log Message:
-----------
Remove two more hard-coded colors (several remain)

Modified Paths:
--------------
    trunk/rkward/ChangeLog
    trunk/rkward/rkward/dataeditor/twintable.cpp

Modified: trunk/rkward/ChangeLog
===================================================================
--- trunk/rkward/ChangeLog	2011-01-22 13:02:43 UTC (rev 3381)
+++ trunk/rkward/ChangeLog	2011-01-22 13:52:26 UTC (rev 3382)
@@ -1,3 +1,4 @@
+- Fixed: Did not use system configured background color in data editor
 - Fixed: New columns would be always be added to the right, instead of to the left, in the data editor
 - Fixed: Would crash when trying to edit 0 row data.frame
 - Fixed: Output generated by external processes (system()) was not shown on the console

Modified: trunk/rkward/rkward/dataeditor/twintable.cpp
===================================================================
--- trunk/rkward/rkward/dataeditor/twintable.cpp	2011-01-22 13:02:43 UTC (rev 3381)
+++ trunk/rkward/rkward/dataeditor/twintable.cpp	2011-01-22 13:52:26 UTC (rev 3382)
@@ -457,8 +457,8 @@
 	dataview->rw = rw;
 
 	QPalette palette = metaview->palette ();
-	if (on) palette.setColor (QPalette::Base, QColor (255, 255, 255));
-	else palette.setColor (QPalette::Base, QColor (240, 240, 240));
+	if (on) palette.setColor (QPalette::Base, QApplication::palette ().color (QPalette::Active, QPalette::Base));
+	else palette.setColor (QPalette::Base, QApplication::palette ().color (QPalette::Disabled, QPalette::Base));
 	metaview->setPalette (palette);
 	dataview->setPalette (palette);
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list