[qet] [3160] Cosmetic change when not use system color

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3160
Author:   scorpio810
Date:     2014-06-21 14:17:00 +0200 (Sat, 21 Jun 2014)
Log Message:
-----------
Cosmetic change when not use system color

Modified Paths:
--------------
    trunk/sources/qetapp.cpp

Modified: trunk/sources/qetapp.cpp
===================================================================
--- trunk/sources/qetapp.cpp	2014-06-21 09:51:37 UTC (rev 3159)
+++ trunk/sources/qetapp.cpp	2014-06-21 12:17:00 UTC (rev 3160)
@@ -943,21 +943,33 @@
 void QETApp::useSystemPalette(bool use) {
 	if (use) {
 		setPalette(initial_palette_);
+		setStyleSheet(
+					"QTabBar::tab:!selected { background-color: transparent; }"
+					"QAbstractScrollArea#mdiarea {"
+
+			"	background-color -> setPalette(initial_palette_);"
+			"	background-image: url(':/ico/mdiarea_bg.png');"
+			"	background-repeat: no-repeat;"
+			"	background-position: center middle;"
+			"}"
+		);
 	} else {
 		setPalette(style() -> standardPalette());
+		setStyleSheet(
+					"QTabBar::tab:!selected { background-color: transparent; }"
+					"QMainWindow{ background-color: #666666; color: #cccccc; }"
+					"QListView{ background-color: #333333;color: #cccccc; }"
+					"QAbstractScrollArea#mdiarea {"
+
+			"	background-color -> setPalette(initial_palette_);"
+			"	background-image: url(':/ico/mdiarea_bg.png');"
+			"	background-repeat: no-repeat;"
+			"	background-position: center middle;"
+			"}"
+		);
 	}
-	
-	// reapplique les feuilles de style
-	setStyleSheet(
-				"QTabBar::tab:!selected { background-color: transparent; }"
-				"QAbstractScrollArea#mdiarea {"
 
-		"	background-color -> setPalette(initial_palette_);"
-		"	background-image: url(':/ico/mdiarea_bg.png');"
-		"	background-repeat: no-repeat;"
-		"	background-position: center middle;"
-		"}"
-	);
+
 }
 
 /**


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/