mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-06 06:19:59 +01: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:
@@ -943,21 +943,33 @@ void QETApp::invertMainWindowVisibility(QWidget *window) {
|
|||||||
void QETApp::useSystemPalette(bool use) {
|
void QETApp::useSystemPalette(bool use) {
|
||||||
if (use) {
|
if (use) {
|
||||||
setPalette(initial_palette_);
|
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 {
|
} else {
|
||||||
setPalette(style() -> standardPalette());
|
setPalette(style() -> standardPalette());
|
||||||
}
|
setStyleSheet(
|
||||||
|
"QTabBar::tab:!selected { background-color: transparent; }"
|
||||||
// reapplique les feuilles de style
|
"QMainWindow{ background-color: #666666; color: #cccccc; }"
|
||||||
setStyleSheet(
|
"QListView{ background-color: #333333;color: #cccccc; }"
|
||||||
"QTabBar::tab:!selected { background-color: transparent; }"
|
"QAbstractScrollArea#mdiarea {"
|
||||||
"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;"
|
|
||||||
"}"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user