diff --git a/application.qrc b/application.qrc index 4c7a4d9..befc00a 100644 --- a/application.qrc +++ b/application.qrc @@ -26,6 +26,7 @@ res/css/dark.css res/css/default.css res/css/light.css + res/css/midnight.css res/images/blue/unchecked.png diff --git a/res/css/midnight.css b/res/css/midnight.css new file mode 100644 index 0000000..39347c1 --- /dev/null +++ b/res/css/midnight.css @@ -0,0 +1,139 @@ +/* +Theme: Midnight Qt +Version: 1.0.2 +Reference: https://doc.qt.io/qt-5/stylesheet-reference.html + +Author: Charles Sharpe +Date: Apr. 23, 2020 +Website: https://www.csharpe.me +License: https://opensource.org/licenses/MIT +*/ + +QWidget, QMainWindow, QMenuBar, QMenu, QDialog, QTabWidget, QTableView, QTableView::item, QScrollArea, QGroupBox, QPlainTextEdit, QLineEdit, QLabel, MainWindow +{ +background-color: #111; +color: #fff; +} + +QPushButton { +padding: 10px 15px; +} + +QPushButton:hover { +background: #222; +} + +QLineEdit, QRadioButton::indicator::unchecked, QCheckBox::indicator::unchecked { +background: #222; +border: 1px solid #333; +border-radius: 3px; +} + +QLineEdit { +font-size: 12px; +} + +QLineEdit:focus { +border: 1px solid #9d8400; +} + +QWidget QLabel { +font-size: 11pt; +} + +QWidget QCheckBox { +font-weight: bold; +} + +QTabWidget QTabBar::tab { +min-height: 15px; +padding: 15px 25px; +border: 1px ridge #222; +left: 1px; /* Fix 1px alignment */ +background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #333, stop: 1 #111); +} + +QTabWidget QTabBar::tab:selected { +background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #555, stop: 1 #111); +color:#fff; +border: 1px ridge #222; +border-bottom: 0px; /* Overwrites border-bottom */ +} + +QTabWidget QTabBar::tab:hover { +background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #555, stop: 1 #111); +} + +QHeaderView { /* Table Header */ +background-color:#111; +} + +QHeaderView::section { /* Table Header Sections */ +qproperty-alignment:center; +background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #333, stop: 1 #111); +color:#fff; +min-height:25px; +font-weight:bold; +font-size:12px; +outline:0; +border:1px ridge #222; +padding: 2px 5px; +} + +QHeaderView::section:last { +border-right: 0px ridge #222; +} + +QScrollArea { +background:transparent; +border:0px; +} + +QTableView { /* Table - has to be selected as a class otherwise it throws off QCalendarWidget */ +background:#111; +} + +QTableView::item { /* Table Item */ +background-color:#111; +border:1px solid #222; +font-size:12px; +} + +QTableView::item:selected { /* Table Item Selected */ +background-color:#fff; +color:#000; +} + +QMenuBar { +background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #222, stop: 1 #111); +color: #fff; +} + +QMenuBar::item { +background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #222, stop: 1 #111); +color: #fff; +padding: 5px 7px; +margin: 0px; +} + +QMenuBar::item:selected { +background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #333, stop: 1 #111); +} + +QMenu { +border:1px solid #222; +} + +QMenu::item { +padding: 7px 15px; +} + +QMenu::item:selected { +background: #222; +} + +QMenu::separator { + height: 1px; + margin: 3px 7px 3px 7px; /* space at ends of separator */ + background: #222; +} diff --git a/src/settings.ui b/src/settings.ui index 419509c..6871c7b 100644 --- a/src/settings.ui +++ b/src/settings.ui @@ -115,6 +115,11 @@ dark + + + midnight + +