diff --git a/qt_ui/main.py b/qt_ui/main.py index 5c6a033b..6bbf6b81 100644 --- a/qt_ui/main.py +++ b/qt_ui/main.py @@ -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()) diff --git a/resources/stylesheets/style-dcs.css b/resources/stylesheets/style-dcs.css new file mode 100644 index 00000000..9a974270 --- /dev/null +++ b/resources/stylesheets/style-dcs.css @@ -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; +}*/ diff --git a/resources/ui/misc/cheat.png b/resources/ui/misc/cheat.png index 9001790c..af0270cb 100644 Binary files a/resources/ui/misc/cheat.png and b/resources/ui/misc/cheat.png differ diff --git a/resources/ui/misc/generator.png b/resources/ui/misc/generator.png index 3a2971a9..d5ad0721 100644 Binary files a/resources/ui/misc/generator.png and b/resources/ui/misc/generator.png differ diff --git a/resources/ui/misc/hourglass.png b/resources/ui/misc/hourglass.png index d42e65b6..73745fc5 100644 Binary files a/resources/ui/misc/hourglass.png and b/resources/ui/misc/hourglass.png differ diff --git a/resources/ui/misc/missile.png b/resources/ui/misc/missile.png index 5fb0c691..086a43e7 100644 Binary files a/resources/ui/misc/missile.png and b/resources/ui/misc/missile.png differ diff --git a/resources/ui/misc/money_icon.png b/resources/ui/misc/money_icon.png index 0f81d4d2..dc626090 100644 Binary files a/resources/ui/misc/money_icon.png and b/resources/ui/misc/money_icon.png differ diff --git a/resources/ui/misc/new.png b/resources/ui/misc/new.png index 363509e2..3ff8a26c 100644 Binary files a/resources/ui/misc/new.png and b/resources/ui/misc/new.png differ diff --git a/resources/ui/misc/open.png b/resources/ui/misc/open.png index 5908bd44..97e15fdd 100644 Binary files a/resources/ui/misc/open.png and b/resources/ui/misc/open.png differ diff --git a/resources/ui/misc/ordnance_icon.png b/resources/ui/misc/ordnance_icon.png index ef40da1d..d9794c2c 100644 Binary files a/resources/ui/misc/ordnance_icon.png and b/resources/ui/misc/ordnance_icon.png differ diff --git a/resources/ui/misc/proceed.png b/resources/ui/misc/proceed.png index 3158786b..22c9b89d 100644 Binary files a/resources/ui/misc/proceed.png and b/resources/ui/misc/proceed.png differ diff --git a/resources/ui/misc/save.png b/resources/ui/misc/save.png index f6d4b63f..550b4963 100644 Binary files a/resources/ui/misc/save.png and b/resources/ui/misc/save.png differ diff --git a/resources/ui/misc/settings.png b/resources/ui/misc/settings.png index 7aa676ee..058808b8 100644 Binary files a/resources/ui/misc/settings.png and b/resources/ui/misc/settings.png differ diff --git a/resources/ui/misc/statistics.png b/resources/ui/misc/statistics.png index dba4e84c..731c69c7 100644 Binary files a/resources/ui/misc/statistics.png and b/resources/ui/misc/statistics.png differ