Improve checkbox colors (use accent color)

and darken view hover/selected colors to play nicer with other widget colors

See #52
This commit is contained in:
Colin Duquesnoy 2017-05-13 13:18:18 +02:00
parent f0ed7ba7a6
commit 8e0899eb0a
12 changed files with 1579 additions and 1687 deletions

View File

@ -71,6 +71,10 @@ def main():
ui.actionAction,
ui.actionAction_C
])
item = QtGui.QTableWidgetItem("Test")
item.setCheckState(QtCore.Qt.Checked)
ui.tableWidget.setItem(0, 0, item)
window.setWindowTitle("QDarkStyle example")
window.setWindowTitle("QDarkStyle example")
# tabify dock widgets to show bug #6

View File

@ -71,6 +71,9 @@ def main():
ui.actionAction,
ui.actionAction_C
])
item = QtWidgets.QTableWidgetItem("Test")
item.setCheckState(QtCore.Qt.Checked)
ui.tableWidget.setItem(0, 0, item)
window.setWindowTitle("QDarkStyle example")
# tabify dock widgets to show bug #6

View File

@ -71,6 +71,11 @@ def main():
ui.actionAction,
ui.actionAction_C
])
item = QtGui.QTableWidgetItem("Test")
item.setCheckState(QtCore.Qt.Checked)
ui.tableWidget.setItem(0, 0, item)
window.setWindowTitle("QDarkStyle example")
window.setWindowTitle("QDarkStyle example")
# tabify dock widgets to show bug #6

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 512 B

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 514 B

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 483 B

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 933 B

After

Width:  |  Height:  |  Size: 846 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 724 B

After

Width:  |  Height:  |  Size: 646 B

View File

@ -44,13 +44,13 @@ QWidget
QWidget:item:hover
{
background-color: #3daee9;
background-color: #18465d;
color: #eff0f1;
}
QWidget:item:selected
{
background-color: #3daee9;
background-color: #18465d;
}
QCheckBox
@ -662,7 +662,7 @@ QComboBox QAbstractItemView
background-color: #232629;
border-radius: 2px;
border: 1px solid #76797C;
selection-background-color: #3daee9;
selection-background-color: #18465d;
}
QComboBox::drop-down
@ -969,13 +969,13 @@ QTreeView::branch:open:has-children:has-siblings:hover {
}
QListView::item:!selected:hover, QTreeView::item:!selected:hover {
background: rgba(167,218,245, 0.3);
background: #18465d;
outline: 0;
color: #eff0f1
}
QListView::item:selected:hover, QTreeView::item:selected:hover {
background: #3daee9;
background: #287399;
color: #eff0f1;
}
@ -1090,12 +1090,12 @@ QTableView, QHeaderView
}
QTableView::item:pressed, QListView::item:pressed, QTreeView::item:pressed {
background: #3daee9;
background: #18465d;
color: #eff0f1;
}
QTableView::item:selected:active, QTreeView::item:selected:active, QListView::item:selected:active {
background: #3daee9;
background: #287399;
color: #eff0f1;
}