diff options
author | ronso0 <ronso0@mixxx.org> | 2020-11-18 01:24:41 +0100 |
---|---|---|
committer | ronso0 <ronso0@mixxx.org> | 2020-11-24 23:35:32 +0100 |
commit | a735a490858460d5468af065204d72166202d9d8 (patch) | |
tree | 61a3a77879df43b7fcc52289addf8900e884ad58 /res | |
parent | 0e76005084ae16063d57aedadd405f47d4c81a0b (diff) |
CoverArtDelegate, ColorDelegate: draw a focus border, pick color from stylesheets (default: white)
Diffstat (limited to 'res')
-rw-r--r-- | res/skins/Deere/style.qss | 6 | ||||
-rw-r--r-- | res/skins/LateNight/style_classic.qss | 6 | ||||
-rw-r--r-- | res/skins/LateNight/style_palemoon.qss | 6 | ||||
-rw-r--r-- | res/skins/Shade/style.qss | 6 | ||||
-rw-r--r-- | res/skins/Shade/style_dark.qss | 6 | ||||
-rw-r--r-- | res/skins/Tango/style.qss | 6 |
6 files changed, 36 insertions, 0 deletions
diff --git a/res/skins/Deere/style.qss b/res/skins/Deere/style.qss index d2252f58ac..7d51440131 100644 --- a/res/skins/Deere/style.qss +++ b/res/skins/Deere/style.qss @@ -242,6 +242,12 @@ #LibraryContainer QTableView QCheckBox:focus { outline: 1px solid #D6D6D6; } +/* This uses a custom qproperty to set the focus border + for Color and Cover Art cells, 1px solid, sharp corners. + See src/library/tableitemdelegate.cpp */ +WTrackTableView { + qproperty-focusBorderColor: #D6D6D6; +} #LibraryContainer QTableView:focus, #LibraryContainer QTreeView:focus, diff --git a/res/skins/LateNight/style_classic.qss b/res/skins/LateNight/style_classic.qss index 9613aaafb4..dfaf0b379b 100644 --- a/res/skins/LateNight/style_classic.qss +++ b/res/skins/LateNight/style_classic.qss @@ -1999,6 +1999,12 @@ WLibrary, #LibraryContainer QTableView QCheckBox:focus { outline: 1px solid #fff; } +/* This uses a custom qproperty to set the focus border + for Color and Cover Art cells, 1px solid, sharp corners. + See src/library/tableitemdelegate.cpp */ +WTrackTableView { + qproperty-focusBorderColor: #fff; +} #LibraryContainer QTreeView { show-decoration-selected: 0; diff --git a/res/skins/LateNight/style_palemoon.qss b/res/skins/LateNight/style_palemoon.qss index b1977ec290..2c5cc067d8 100644 --- a/res/skins/LateNight/style_palemoon.qss +++ b/res/skins/LateNight/style_palemoon.qss @@ -2470,6 +2470,12 @@ WColorPicker QPushButton[checked="true"] { #LibraryContainer QTableView QCheckBox:focus { outline: 1px solid #fff; } +/* This uses a custom qproperty to set the focus border + for Color and Cover Art cells, 1px solid, sharp corners. + See src/library/tableitemdelegate.cpp */ +WTrackTableView { + qproperty-focusBorderColor: #fff; +} /* This is the only way to select the 'Played' checkbox. Note that this also selects the BPM lock. */ diff --git a/res/skins/Shade/style.qss b/res/skins/Shade/style.qss index 6718007399..601c0e5dc0 100644 --- a/res/skins/Shade/style.qss +++ b/res/skins/Shade/style.qss @@ -486,6 +486,12 @@ QTextBrowser { #LibraryContainer QTableView QCheckBox:focus { outline: 1px solid #c9c9c9; } +/* This uses a custom qproperty to set the focus border + for Color and Cover Art cells, 1px solid, sharp corners. + See src/library/tableitemdelegate.cpp */ +WTrackTableView { + qproperty-focusBorderColor: #c9c9c9; +} /* Table cell in edit mode */ WLibrary QLineEdit, diff --git a/res/skins/Shade/style_dark.qss b/res/skins/Shade/style_dark.qss index c32a731d2a..fdc1bd7764 100644 --- a/res/skins/Shade/style_dark.qss +++ b/res/skins/Shade/style_dark.qss @@ -162,6 +162,12 @@ WSearchLineEdit QToolButton:focus { #LibraryContainer QTableView QCheckBox:focus { outline: 1px solid #ccc; } +/* This uses a custom qproperty to set the focus border + for Color and Cover Art cells, 1px solid, sharp corners. + See src/library/tableitemdelegate.cpp */ +WTrackTableView { + qproperty-focusBorderColor: #ccc; +} /* Table cell in edit mode */ WLibrary QLineEdit, diff --git a/res/skins/Tango/style.qss b/res/skins/Tango/style.qss index 4d76d3f0a3..8b389a67d5 100644 --- a/res/skins/Tango/style.qss +++ b/res/skins/Tango/style.qss @@ -2457,6 +2457,12 @@ WTrackMenu QMenu::right-arrow { #LibraryContainer QTableView QCheckBox:focus { outline: 1px solid #fff; } +/* This uses a custom qproperty to set the focus border + for Color and Cover Art cells, 1px solid, sharp corners. + See src/library/tableitemdelegate.cpp */ +WTrackTableView { + qproperty-focusBorderColor: #fff; +} /* Table cell in edit mode */ WLibrary QLineEdit, |