mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-09-13 20:23:04 +02:00
Add css file style.css
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3174 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
parent
dd3dde3684
commit
9aa62e7546
@ -229,5 +229,6 @@
|
|||||||
<file>ico/24x16/nl.png</file>
|
<file>ico/24x16/nl.png</file>
|
||||||
<file>ico/32x32/simplifyrichtext.png</file>
|
<file>ico/32x32/simplifyrichtext.png</file>
|
||||||
<file>ico/24x16/be.png</file>
|
<file>ico/24x16/be.png</file>
|
||||||
|
<file>style.css</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
@ -954,24 +954,12 @@ void QETApp::useSystemPalette(bool use) {
|
|||||||
"}"
|
"}"
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
setStyleSheet(
|
QFile file("style.css");
|
||||||
"QTabBar::tab:!selected {background-color: transparent; }"
|
file.open(QFile::ReadOnly);
|
||||||
"QMainWindow{background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(43, 75, 116), stop:1 rgb(197, 245, 254)); }"
|
QString styleSheet = QLatin1String(file.readAll());
|
||||||
"QListView{background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(43, 75, 116), stop:1 rgb(130, 160, 210)); }"
|
setStyleSheet(styleSheet);
|
||||||
"QTreeView{background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(43, 75, 116), stop:1 rgb(197, 245, 254)); }"
|
|
||||||
"QTreeView::item{background-color: rgba(100, 100, 100, 00);}"
|
|
||||||
"QTreeView::item:hover{background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd, stop: 1 #cbdaf1); }"
|
|
||||||
"QAbstractScrollArea#mdiarea {"
|
|
||||||
|
|
||||||
" background-color -> setPalette(initial_palette_);"
|
|
||||||
" background-image: url(':/ico/mdiarea_bg.png');"
|
|
||||||
" background-repeat: no-repeat;"
|
|
||||||
" background-position: center middle;"
|
|
||||||
"}"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
21
style.css
Normal file
21
style.css
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
QTabBar::tab:!selected
|
||||||
|
{background-color: transparent;
|
||||||
|
}
|
||||||
|
QMainWindow
|
||||||
|
{background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(43, 75, 116), stop:1 rgb(197, 245, 254));
|
||||||
|
}
|
||||||
|
QListView
|
||||||
|
{background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(43, 75, 116), stop:1 rgb(130, 160, 210));
|
||||||
|
}
|
||||||
|
QTreeView
|
||||||
|
{background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(43, 75, 116), stop:1 rgb(197, 245, 254));
|
||||||
|
}
|
||||||
|
QTreeView::item
|
||||||
|
{background-color: rgba(100, 100, 100, 00);
|
||||||
|
}
|
||||||
|
QTreeView::item:hover
|
||||||
|
{background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd, stop: 1 #cbdaf1);
|
||||||
|
}
|
||||||
|
QAbstractScrollArea#mdiarea
|
||||||
|
{background-image: url(':/ico/mdiarea_bg.png');background-repeat: no-repeat;background-position: center middle;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user