translucent theme test
This commit is contained in:
@@ -18,13 +18,13 @@
|
||||
<file>res/silentdragonlite-animated-startup-dark.gif</file>
|
||||
</qresource>
|
||||
<qresource prefix="/translations">
|
||||
<file>res/silentdragonlite_de.qm</file>
|
||||
<file>res/silentdragonlite_es.qm</file>
|
||||
<file>res/silentdragonlite_fr.qm</file>
|
||||
<file>res/silentdragonlite_pt.qm</file>
|
||||
<file>res/silentdragonlite_it.qm</file>
|
||||
<file>res/silentdragonlite_hr.qm</file>
|
||||
<file>res/silentdragonlite_fa.qm</file>
|
||||
<file>res/silentdragonlite_de.qm</file>
|
||||
<file>res/silentdragonlite_es.qm</file>
|
||||
<file>res/silentdragonlite_fr.qm</file>
|
||||
<file>res/silentdragonlite_pt.qm</file>
|
||||
<file>res/silentdragonlite_it.qm</file>
|
||||
<file>res/silentdragonlite_hr.qm</file>
|
||||
<file>res/silentdragonlite_fa.qm</file>
|
||||
</qresource>
|
||||
<qresource prefix="/css">
|
||||
<file>res/css/blue.css</file>
|
||||
@@ -32,6 +32,7 @@
|
||||
<file>res/css/default.css</file>
|
||||
<file>res/css/light.css</file>
|
||||
<file>res/css/midnight.css</file>
|
||||
<file>res/css/test.css</file>
|
||||
</qresource>
|
||||
<qresource prefix="/images/blue">
|
||||
<file>res/images/blue/unchecked.png</file>
|
||||
@@ -43,4 +44,7 @@
|
||||
<file>res/images/blue/blue_rightArrow_small.png</file>
|
||||
<file>res/images/blue/blue_qtreeview_selected.png</file>
|
||||
</qresource>
|
||||
<qresource prefix="/images">
|
||||
<file>res/images/tile.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
239
res/css/test.css
Normal file
239
res/css/test.css
Normal file
@@ -0,0 +1,239 @@
|
||||
|
||||
QWidget, QMainWindow, QMenuBar, QMenu, QDialog, QTabWidget, QTableView, QTableView::item, QScrollArea, QGroupBox, QPlainTextEdit, QLineEdit, QLabel, MainWindow
|
||||
{
|
||||
/* background-color: #303335; */
|
||||
background: transparent;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
QMainWindow
|
||||
{
|
||||
border-image: url(':images/res/images/tile.png') 0 0 0 0 repeat repeat;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
QTabWidget QTabBar::tab {
|
||||
padding-left:20px;
|
||||
padding-right:20px;
|
||||
padding-top:5px;
|
||||
padding-bottom:5px;
|
||||
border: 1px solid #525355;
|
||||
/*background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #747577, stop: 1 #3E4244);*/
|
||||
background-color: rgba(0, 0, 0, 128);
|
||||
}
|
||||
|
||||
QTabWidget QTabBar::tab:selected {
|
||||
min-height: 10px;
|
||||
/*background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #525355, stop: 1 #303335);*/
|
||||
background-color: rgba(0, 64, 0, 128);
|
||||
color:#fff;
|
||||
border: 1px ridge #000;
|
||||
}
|
||||
|
||||
QTabWidget QTabBar::tab:hover {
|
||||
/*background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #747577, stop: 1 #3E4244);*/
|
||||
background-color: rgba(0, 0, 0, 32);
|
||||
color:#fff;
|
||||
border: 1px ridge #fff;
|
||||
min-height: 20px
|
||||
}
|
||||
|
||||
QTabWidget::pane {
|
||||
background-color: rgba(0, 0, 0, 128);
|
||||
border: 2px solid rgb(0, 0, 0);
|
||||
border-top-left-radius: 0px;
|
||||
border-bottom-left-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
top: -2px;
|
||||
}
|
||||
|
||||
QStatusBar {
|
||||
background-color: rgba(0, 0, 64, 128);
|
||||
}
|
||||
|
||||
QHeaderView { /* Table Header */
|
||||
/* background-color:#303335;*/
|
||||
background-color: rgba(0, 0, 0, 64);
|
||||
border:1px solid #fff;
|
||||
}
|
||||
|
||||
QHeaderView::section { /* Table Header Sections */
|
||||
qproperty-alignment:center;
|
||||
/*background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #747577, stop: 1 #3E4244);*/
|
||||
background: transparent;
|
||||
color:#fff;
|
||||
min-height:25px;
|
||||
font-weight:bold;
|
||||
font-size:11px;
|
||||
outline:0;
|
||||
border:1px solid #525355;
|
||||
border-right:1px solid #fff;
|
||||
border-left:1px solid #fff;
|
||||
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:#303335;*/
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
QTableView::item { /* Table Item */
|
||||
/*background-color:#303335;*/
|
||||
background: transparent;
|
||||
border:1px solid #fff;
|
||||
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 #525355, stop: 1 #303335);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
QMenuBar::item {
|
||||
background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #525355, stop: 1 #303335);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
QMenuBar::item:selected {
|
||||
background-color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.25, stop: 0 #747577, stop: 1 #3E4244);
|
||||
}
|
||||
|
||||
QTabBar::tab {
|
||||
background-color: rgba(0, 0, 0, 128);
|
||||
min-width: 150px;
|
||||
padding: 4px;
|
||||
border-bottom: 2px solid rgb(68, 49, 141);
|
||||
border-top-left-radius: 4px;
|
||||
border-top-right-radius: 4px;
|
||||
}
|
||||
|
||||
QTabBar::tab:selected {
|
||||
/* font: bold; */
|
||||
border: 2px solid rgb(68, 49, 141);
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
|
||||
QTabBar::tab:hover {
|
||||
/* font: bold; */
|
||||
border: 2px solid rgb(68, 49, 141);
|
||||
}
|
||||
|
||||
|
||||
QGroupBox {
|
||||
background-color: rgba(0, 0, 0, 128);
|
||||
font-weight: bold;
|
||||
font-style: italic;
|
||||
border: 1px solid rgba(0, 128, 0, 128);
|
||||
border-radius: 4px;
|
||||
padding: 4px;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
QGroupBox::title {
|
||||
subcontrol-origin: margin;
|
||||
subcontrol-position: top left;
|
||||
left: 8px;
|
||||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
padding-top: 6px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
QLineEdit, QPushButton, QPlainTextEdit {
|
||||
background-color: rgba(10, 7, 20, 128);
|
||||
min-width: 100px;
|
||||
border: 1px solid rgb(68, 49, 141);
|
||||
border-radius: 4px;
|
||||
padding:5px;
|
||||
}
|
||||
|
||||
QLineEdit:focus, QPushButton:pressed, QPlainTextEdit:focus {
|
||||
border: 1px solid rgb(216, 00, 255);
|
||||
}
|
||||
|
||||
QLineEdit:hover, QPushButton:hover, QPlainTextEdit:hover {
|
||||
border: 1px solid rgb(216, 00, 255);
|
||||
}
|
||||
|
||||
QLineEdit:disabled, QPushButton:disabled, QPlainTextEdit:disabled {
|
||||
border: 1px solid rgb(64, 64, 64);
|
||||
}
|
||||
|
||||
QComboBox {
|
||||
background-color: rgba(10, 7, 20, 128);
|
||||
min-height: 28px;
|
||||
min-width: 80px;
|
||||
border: 1px solid rgb(68, 49, 141);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
QComboBox:hover {
|
||||
border: 1px solid rgb(216, 00, 255);
|
||||
}
|
||||
|
||||
QComboBox QAbstractItemView {
|
||||
background-color: rgb(0, 0, 0);
|
||||
border: 1px solid rgb(68, 49, 141);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
QComboBox::item {
|
||||
background-color: rgb(0, 0, 0);
|
||||
border: 1px solid rgb(0, 0, 0);
|
||||
border-radius: 4px;
|
||||
height:28px;
|
||||
}
|
||||
|
||||
QComboBox::item:selected { /* when user selects item using mouse or keyboard */
|
||||
background-color: rgb(20, 15, 40);
|
||||
border: 1px solid rgb(68, 49, 141);
|
||||
border-radius: 4px;
|
||||
|
||||
}
|
||||
|
||||
|
||||
QCheckBox::indicator, QRadioButton::indicator {
|
||||
border: 2px solid rgb(68, 49, 141);
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
QCheckBox::indicator:checked, QRadioButton::indicator:checked {
|
||||
background-color: rgba(0, 255, 0, 128);
|
||||
}
|
||||
|
||||
QCheckBox::indicator:unchecked, QRadioButton::indicator:unchecked {
|
||||
background-color: rgba(0, 16, 0, 128);
|
||||
}
|
||||
|
||||
QCheckBox::indicator:hover, QRadioButton::indicator:hover {
|
||||
border: 2px solid rgb(0, 192, 0);
|
||||
}
|
||||
|
||||
QCheckBox::indicator:disabled, QRadioButton::indicator:disabled {
|
||||
border: 2px solid rgb(64, 64, 64);
|
||||
}
|
||||
|
||||
QWidget.FilledIconLabel /* targets custom ui widget by class name */
|
||||
{
|
||||
background-color: rgba(255, 255, 255, 64);
|
||||
border: 2px solid rgb(255, 0, 0);
|
||||
}
|
||||
BIN
res/images/tile.png
Normal file
BIN
res/images/tile.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 205 KiB |
@@ -438,8 +438,6 @@ void MainWindow::setupSettingsModal() {
|
||||
|
||||
QObject::connect(settings.comboBoxTheme, &QComboBox::currentTextChanged, [=] (QString theme_name) {
|
||||
this->slot_change_theme(theme_name);
|
||||
// Tell the user to restart
|
||||
QMessageBox::information(this, tr("Restart"), tr("Please restart Silentdragonlite to have the theme apply"), QMessageBox::Ok);
|
||||
});
|
||||
|
||||
// Get Currency Data
|
||||
@@ -1384,7 +1382,7 @@ void MainWindow::slot_change_theme(const QString& theme_name)
|
||||
if (qFile.open(QFile::ReadOnly))
|
||||
{
|
||||
QString styleSheet = QLatin1String(qFile.readAll());
|
||||
this->setStyleSheet(""); // reset styles
|
||||
this->setStyleSheet(""); // resets styles, makes app restart unnecessary
|
||||
this->setStyleSheet(styleSheet);
|
||||
}
|
||||
|
||||
|
||||
@@ -120,6 +120,11 @@
|
||||
<string>midnight</string>
|
||||
</property>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>test</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
<widget class="QCheckBox" name="chkFetchPrices">
|
||||
<property name="geometry">
|
||||
|
||||
Reference in New Issue
Block a user