Skip to content

Commit

Permalink
Merge pull request #12050 from fwcd/fix-checkbox-styling-qt6
Browse files Browse the repository at this point in the history
Skins: Fix checkbox styling on Qt 6
  • Loading branch information
ronso0 committed Nov 7, 2023
2 parents 7c1bb1b + 1ef4e4d commit 30bca40
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
6 changes: 6 additions & 0 deletions res/skins/Deere/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions res/skins/LateNight/style_classic.qss
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 5 additions & 0 deletions res/skins/LateNight/style_palemoon.qss
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 6 additions & 0 deletions res/skins/Shade/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 6 additions & 0 deletions res/skins/Shade/style_dark.qss
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 6 additions & 0 deletions res/skins/Tango/style.qss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 30bca40

Please sign in to comment.