From eec2678a2fb69e9345861d5669deccbf32f32b6e Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 21 Jun 2005 06:17:43 +0000 Subject: [PATCH] Improve color palette for "About" dialog box --- src/SalomeApp/SalomeApp_AboutDlg.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SalomeApp/SalomeApp_AboutDlg.cxx b/src/SalomeApp/SalomeApp_AboutDlg.cxx index a86644db1..1160ad33d 100644 --- a/src/SalomeApp/SalomeApp_AboutDlg.cxx +++ b/src/SalomeApp/SalomeApp_AboutDlg.cxx @@ -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() ); -- 2.39.2