Cosmetic change when not use system color

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3160 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810 2014-06-21 12:17:00 +00:00
parent c68e7ebbec
commit 7ef5e3fa53

View File

@ -943,21 +943,33 @@ void QETApp::invertMainWindowVisibility(QWidget *window) {
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());
}
// reapplique les feuilles de style
setStyleSheet(
"QTabBar::tab:!selected { background-color: transparent; }"
"QAbstractScrollArea#mdiarea {"
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;"
"}"
);
}
" background-color -> setPalette(initial_palette_);"
" background-image: url(':/ico/mdiarea_bg.png');"
" background-repeat: no-repeat;"
" background-position: center middle;"
"}"
);
}
/**