Improve row background color contrast for QDarkStyle

This commit is contained in:
tobtoht 2020-11-25 22:09:04 +01:00
parent 1ccedea1dd
commit 480ecfd047
2 changed files with 1 additions and 14 deletions

View file

@ -77,7 +77,7 @@ QVariant CoinsModel::data(const QModelIndex &index, int role) const
result = QBrush(QColor(173, 216, 230)); result = QBrush(QColor(173, 216, 230));
} }
else if (!cInfo.unlocked()) { else if (!cInfo.unlocked()) {
result = QBrush(QColor("#BFFF00")); result = QBrush(QColor("#60993E"));
} }
} }
else if (role == Qt::TextAlignmentRole) { else if (role == Qt::TextAlignmentRole) {

View file

@ -73,7 +73,6 @@ QWidget::item:selected {
} }
QWidget::item:hover { QWidget::item:hover {
background-color: #148CD2;
color: #32414B; color: #32414B;
} }
@ -1831,28 +1830,17 @@ QColumnView:selected {
color: #32414B; color: #32414B;
} }
QTreeView:hover,
QListView:hover,
QTableView:hover,
QColumnView:hover {
background-color: #19232D;
}
QTreeView::item:pressed, QTreeView::item:pressed,
QListView::item:pressed, QListView::item:pressed,
QTableView::item:pressed, QTableView::item:pressed,
QColumnView::item:pressed { QColumnView::item:pressed {
color: #FFFFFF; color: #FFFFFF;
background-color: #1464A0;
} }
QTreeView::item:selected:hover, QTreeView::item:selected:hover,
QListView::item:selected:hover, QListView::item:selected:hover,
QTableView::item:selected:hover, QTableView::item:selected:hover,
QColumnView::item:selected:hover { QColumnView::item:selected:hover {
background: #1464A0;
color: #FFFFFF; color: #FFFFFF;
} }
@ -1870,7 +1858,6 @@ QTableView::item:!selected:hover,
QColumnView::item:!selected:hover { QColumnView::item:!selected:hover {
outline: 0; outline: 0;
color: #FFFFFF; color: #FFFFFF;
background-color: #19232D;
} }
QTableCornerButton::section { QTableCornerButton::section {