added midnight theme
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
<file>res/css/dark.css</file>
|
<file>res/css/dark.css</file>
|
||||||
<file>res/css/default.css</file>
|
<file>res/css/default.css</file>
|
||||||
<file>res/css/light.css</file>
|
<file>res/css/light.css</file>
|
||||||
|
<file>res/css/midnight.css</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
<qresource prefix="/images/blue">
|
<qresource prefix="/images/blue">
|
||||||
<file>res/images/blue/unchecked.png</file>
|
<file>res/images/blue/unchecked.png</file>
|
||||||
|
|||||||
139
res/css/midnight.css
Normal file
139
res/css/midnight.css
Normal file
@@ -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;
|
||||||
|
}
|
||||||
@@ -115,6 +115,11 @@
|
|||||||
<string>dark</string>
|
<string>dark</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>midnight</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QCheckBox" name="chkFetchPrices">
|
<widget class="QCheckBox" name="chkFetchPrices">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
|
|||||||
Reference in New Issue
Block a user