Base theme applied. WIP.

This commit is contained in:
Donnie 2020-06-24 16:40:19 -04:00
parent 0641907ea0
commit 7890fd5cc7
14 changed files with 281 additions and 1 deletions

View File

@ -24,7 +24,7 @@ if __name__ == "__main__":
app = QApplication(sys.argv)
css = ""
with open("./resources/stylesheets/style.css") as stylesheet:
with open("./resources/stylesheets/style-dcs.css") as stylesheet:
app.setStyleSheet(stylesheet.read())

View File

@ -0,0 +1,280 @@
/*ui theme based on dcs*/
/*
colors
Backgrounds
mainbg ---------------------- #2D3E50
dark blue ------------------- #1D2731
dark grey ------------------- #4E5760
button blue/grey gradient --- qlineargradient(x1:0, y1:0, x2:1, y2:1,stop:0 #A4B3B9, stop:1 #85989D);
button green gradient --- qlineargradient(x1:0, y1:0, x2:1, y2:1,stop:0 #82A466, stop:1 #5C863F);
Text
white text ------------------- #ffffff
blue text -------------------- #3592C4
grey text -------------------- #A7B0B6
*/
/*QWidget*/
QWidget {
background-color: #2D3E50;
color:white;
}
/*QLiberationWindow*/
QLiberationWindow{
background-color: #2D3E50;
color:white;
}
/*QTopPanel*/
QTopPanel,
QTopPanel * {
background-color: #1D2731;
color: #A7B0B6;
font-size: 12px;
font-weight: bold;
}
/*QPushButton*/
QPushButton {
background: qlineargradient(x1:0, y1:0, x2:1, y2:1,stop:0 #A4B3B9, stop:1 #85989D);
border: 1px solid #97A9A9;
color:#fff;
padding: 8px 30px;
cursor: pointer;
}
QPushButton:hover {
background: #85989D;
cursor:pointer;
}
QPushButton[style="btn-success"]{
background-color:#699245;
color: white;
cursor:pointer;
padding: 5px 5px 5px 5px;
border-radius:5px;
}
QPushButton[style="btn-success"]:hover{
background-color:#8ABC5A;
padding: 5px 5px 5px 5px;
border-radius:5px;
cursor: pointer;
}
QPushButton[style="start-button"]{
background:qlineargradient(x1:0, y1:0, x2:1, y2:1,stop:0 #82A466, stop:1 #5C863F);
border-radius:2px;
border: none;
text-transform: uppercase;
text-weight: bold;
}
QPushButton[style="start-button"]:hover{
background:#5C863F;
}
QPushButton[style="btn-danger"]{
background-color:#9E3232;
color: white;
cursor:pointer;
padding: 5px 5px 5px 5px;
border-radius:5px;
}
QPushButton[style="btn-danger"]:hover{
background-color:#D84545;
padding: 5px 5px 5px 5px;
border-radius:5px;
cursor: pointer;
}
/*QLabel*/
QLabel{
border: none;
}
QLabel[style="base-title"]{
font-size: 24px;
font-color: #ccc;
/*border: 1px solid #ccc;*/
}
QLabel[style="icon-plane"]{
background-color:#48719D;
min-height:24px;
max-width: 84px;
border: 1px solid black;
text-align:center;
color:white;
}
QLabel[style="bordered"]{
border: 1px solid black;
}
QLabel[style="BARCAP"]{
border: 1px solid black;
background-color: #445299;
color:white;
}
QLabel[style="TARCAP"]{
border: 1px solid black;
background-color: #445299;
color:white;
}
QLabel[style="CAP"]{
border: 1px solid black;
background-color: #445299;
color:white;
}
QLabel[style="INTERCEPTION"]{
border: 1px solid black;
background-color: #7752bc;
color:white;
}
QLabel[style="CAS"]{
border: 1px solid black;
background-color: #ab2244;
color:white;
}
QLabel[style="BAI"]{
border: 1px solid black;
background-color: #ab2244;
color:white;
}
QLabel[style="ANTISHIP"]{
border: 1px solid black;
background-color: #ab2244;
color:white;
}
QLabel[style="STRIKE"]{
border: 1px solid black;
background-color: #ab2244;
color:white;
}
QLabel[style="DEAD"]{
border: 1px solid black;
background-color: #cc8844;
color:white;
}
QLabel[style="SEAD"]{
border: 1px solid black;
background-color: #aa7744;
color:white;
}
/*QGroupBox*/
QGroupBox {
}
/*QDialog*/
QDialog{
}
/*QTabWidget*/
QTabWidget::pane { /* The tab widget frame */
border-top: 2px solid #1D2731;
}
QTabWidget::tab-bar {
}
QTabBar::tab {
color:#5B626B;
background: #202C3A;
border-right: 1px solid #14202B;
border-left: 1px solid #14202B;
min-width: 8ex;
padding: 6px 10px;
}
QTabBar::tab:hover {
background: #1D2731;
}
QTabBar::tab:selected {
color:#3592C4;
background:#2C3E4C;
}
/*QComboxBox*/
QComboxBox {
padding: 6px;
border:1px solid #3B4656;
background: #465C74;
color: #fff;
}
QComboBox::down-arrow {
}
QLineEdit{
padding: 6px;
border:1px solid #3B4656;
background: #465C74;
color: #fff;
}
/*table view*/
QHeaderView{
background-color: #646464;
}
QHeaderView::section {
background-color: #646464;
padding: 4px;
border-style: none;
border-bottom: 1px solid #1D2731;
}
QHeaderView::section:horizontal
{
border: none;
text-align:left;
}
QHeaderView::section:vertical
{
border: none;
text-align:left;
}
QTableWidget {
gridline-color: #646464;
}
/*
QBaseMenu{
background-color:#699245;
color:white;
}
QWidget[style="baseMenuHeader"]{
font-size: 24px;
font-weight: bold;
color:white;
}*/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 460 B

After

Width:  |  Height:  |  Size: 400 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 729 B

After

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 697 B

After

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 556 B

After

Width:  |  Height:  |  Size: 485 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 434 B

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 385 B

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 372 B

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 459 B

After

Width:  |  Height:  |  Size: 411 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 657 B

After

Width:  |  Height:  |  Size: 529 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 397 B

After

Width:  |  Height:  |  Size: 364 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 659 B

After

Width:  |  Height:  |  Size: 518 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 434 B

After

Width:  |  Height:  |  Size: 390 B