]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Improve color palette for "About" dialog box
authorvsr <vsr@opencascade.com>
Tue, 21 Jun 2005 06:17:43 +0000 (06:17 +0000)
committervsr <vsr@opencascade.com>
Tue, 21 Jun 2005 06:17:43 +0000 (06:17 +0000)
src/SalomeApp/SalomeApp_AboutDlg.cxx

index a86644db1263955451c0d6c5637295327e66097e..1160ad33d9177866b281f1f88a43dd9e8fe8f2f4 100644 (file)
@@ -22,6 +22,12 @@ SalomeApp_AboutDlg::SalomeApp_AboutDlg( const QString& defName, const QString& d
   if ( !ico.isNull() )
     setIcon( ico );
 
+  QPalette pal = palette();
+  QColorGroup cg = pal.active();
+  cg.setColor( QColorGroup::Foreground, Qt::darkBlue ); 
+  cg.setColor( QColorGroup::Background, Qt::white );
+  pal.setActive( cg ); pal.setInactive( cg ); pal.setDisabled( cg );
+  setPalette(pal);
 
   QVBoxLayout* main = new QVBoxLayout( mainFrame() );
   QGroupBox* base = new QGroupBox( 1, Qt::Horizontal, "", mainFrame() );