From 1ef4e4d6216fafab3b2393cf96942ec23559df60 Mon Sep 17 00:00:00 2001 From: fwcd Date: Sun, 1 Oct 2023 16:22:54 +0100 Subject: [PATCH] Skins: Fix checkbox styling on Qt 6 --- res/skins/Deere/style.qss | 6 ++++++ res/skins/LateNight/style_classic.qss | 5 +++++ res/skins/LateNight/style_palemoon.qss | 5 +++++ res/skins/Shade/style.qss | 6 ++++++ res/skins/Shade/style_dark.qss | 6 ++++++ res/skins/Tango/style.qss | 6 ++++++ 6 files changed, 34 insertions(+) diff --git a/res/skins/Deere/style.qss b/res/skins/Deere/style.qss index 77b2c1d4cdd..8569ab3bca3 100644 --- a/res/skins/Deere/style.qss +++ b/res/skins/Deere/style.qss @@ -222,6 +222,12 @@ WLibrarySidebar { selection-background-color: #006596; } +/* Prevent OS-style checkbox from being rendered underneath the custom style. */ +WTrackTableView::item, +#LibraryBPMButton::item { + border: 0px; +} + /* Selected rows in Tree and Tracks table */ WTrackTableView::item:selected, WLibrarySidebar::item:selected, diff --git a/res/skins/LateNight/style_classic.qss b/res/skins/LateNight/style_classic.qss index 5e94f67ed63..3c3694b03e7 100644 --- a/res/skins/LateNight/style_classic.qss +++ b/res/skins/LateNight/style_classic.qss @@ -2065,6 +2065,11 @@ WLibraryTextBrowser:focus { border: 1px solid #d09300; } +/* Prevent OS-style checkbox from being rendered underneath the custom style. */ +WTrackTableView::item, +#LibraryBPMButton::item { + border: 0px; +} /* Selected rows in Tree and Tracks table */ WLibrarySidebar::item:selected, WTrackTableView::item:selected, diff --git a/res/skins/LateNight/style_palemoon.qss b/res/skins/LateNight/style_palemoon.qss index 47594d2e8f1..29dbf10fe2d 100644 --- a/res/skins/LateNight/style_palemoon.qss +++ b/res/skins/LateNight/style_palemoon.qss @@ -2549,6 +2549,11 @@ WLibrarySidebar { WLibrarySidebar { outline: none; } +/* Prevent OS-style checkbox from being rendered underneath the custom style. */ +WTrackTableView::item, +#LibraryBPMButton::item { + border: 0px; +} /* Selected rows in Tree and Tracks table */ WLibrarySidebar::item:selected, WTrackTableView::item:selected, diff --git a/res/skins/Shade/style.qss b/res/skins/Shade/style.qss index 733ef4e107f..55298598cb6 100644 --- a/res/skins/Shade/style.qss +++ b/res/skins/Shade/style.qss @@ -457,6 +457,12 @@ WLibraryTextBrowser { padding-left: 10px; } +/* Prevent OS-style checkbox from being rendered underneath the custom style. */ +WTrackTableView::item, +#LibraryBPMButton::item { + border: 0px; +} + WTrackTableView::item:selected, WSearchLineEdit::item:selected, WSearchLineEdit::item:checked, diff --git a/res/skins/Shade/style_dark.qss b/res/skins/Shade/style_dark.qss index edb6d1ac61a..44af859279f 100644 --- a/res/skins/Shade/style_dark.qss +++ b/res/skins/Shade/style_dark.qss @@ -165,6 +165,12 @@ WSearchLineEdit QToolButton:focus { image: url(skin:/btn/btn_lib_clear_search_focus_green.svg); } +/* Prevent OS-style checkbox from being rendered underneath the custom style. */ +WTrackTableView::item, +#LibraryBPMButton::item { + border: 0px; +} + WLibrarySidebar::item:selected, WTrackTableView::item:selected, WLibrarySidebar::branch:selected, diff --git a/res/skins/Tango/style.qss b/res/skins/Tango/style.qss index e1320f4f668..ec1a9efc5a1 100644 --- a/res/skins/Tango/style.qss +++ b/res/skins/Tango/style.qss @@ -2558,6 +2558,12 @@ WLibrarySidebar { selection-background-color: #555; } +/* Prevent OS-style checkbox from being rendered underneath the custom style. */ +WTrackTableView::item, +#LibraryBPMButton::item { + border: 0px; +} + /* selected table row */ WTrackTableView::item:selected, #LibraryBPMButton::item:selected {