mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
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:
parent
c68e7ebbec
commit
7ef5e3fa53
@ -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;"
|
||||
"}"
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user