diff --git a/res/css/dragonx.css b/res/css/dragonx.css new file mode 100644 index 0000000..e06b727 --- /dev/null +++ b/res/css/dragonx.css @@ -0,0 +1,110 @@ +QWidget, QMainWindow, QMenuBar, QMenu, QDialog, QTabWidget, QTableView, QScrollArea, QGroupBox, QPlainTextEdit, QLineEdit, QLabel, MainWindow { + background-color: #232834; + color: #91a4b8; +} + QTabWidget QTabBar::tab { + padding-left:20px; + padding-right:20px; + padding-top:5px; + padding-bottom:5px; + border: 1px solid #343F4B; + background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); +} + QTabWidget QTabBar::tab:selected { + min-height: 10px; + background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); + color:#91a4b8; + border: 1px ridge #91a4b8; +} + QTabWidget QTabBar::tab:hover { + background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); + color:#91a4b8; + border: 1px ridge #91a4b8; + min-height: 20px +} + QHeaderView { + /* Table Header */ + background-color:#232834; +} + QHeaderView::section { + /* Table Header Sections */ + qproperty-alignment:center; + background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); + color:#91a4b8; + min-height:25px; + font-weight:bold; + font-size:11px; + outline:0; + border:1px solid #343F4B; + border-right:1px solid #91a4b8; + border-left:1px solid #91a4b8; + padding-left:5px; + padding-right:5px; + padding-top:2px; + padding-bottom:2px; +} + QHeaderView::section:last { + border-right: 0px solid #d7d7d7; +} + QScrollArea { + background:transparent; + border:0px; +} + QTableView { + /* Table - has to be selected as a class otherwise it throws off QCalendarWidget */ + background:#232834; +} + QTableView::item { + /* Table Item */ + background-color:#232834; + border:1px solid #91a4b8; + font-size:12px; +} + QTableView::item:selected { + /* Table Item Selected */ + background-color:#91a4b8; + color:#232834; +} + QMenuBar { + background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); + color: #91a4b8; +} + QMenuBar::item { + background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); + color: #91a4b8; +} + QMenuBar::item:selected { + background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #343F4B, stop: 1 #232834); +} + QPushButton#startmining { + background-color: #343F4B; + border-width: 1px; + border-color: #91A4B8; + font: bold 18px; + min-width: 10em; + padding: 10px; +} + QPushButton#startmining:pressed { + background-color: #232834; + border-style: inset; +} + QPushButton#startmining:disabled { + background-color: #232834; + border-style: inset; +} + QPushButton#stopmining { + background-color: #343F4B; + border-width: 1px; + border-color: #91A4B8; + font: bold 18px; + min-width: 10em; + padding: 10px; + margin-top: 10px; +} + QPushButton#stopmining:pressed { + background-color: #232834; +} + QPushButton#stopmining:disabled { + background-color: #232834; + border-style: inset; +} diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ba10baf..71b0e77 100755 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -40,7 +40,12 @@ MainWindow::MainWindow(QWidget *parent) : } catch (...) { qDebug() << __func__ << ": exception!"; - theme_name = "dark"; + + if(isdragonx){ + theme_name = "dragonx"; + }else{ + theme_name = "dark"; + } } this->slot_change_theme(theme_name);