Skip to content

Commit

Permalink
Ensure that the stylesheet doesn't affect all QSplitter instances (#265)
Browse files Browse the repository at this point in the history
The stylesheet should only change the style of ads::CDockSplitter
instances, but not all QSplitter instances. Otherwise all splitters
within any dock widget will also be affected and look different from
the default Qt style.

Co-authored-by: Christian Seiler <c.seiler@luxflux.de>
  • Loading branch information
chris-se and Christian Seiler authored Oct 21, 2020
1 parent 0c88457 commit 3a5c965
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/stylesheets/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ads--CDockContainerWidget {
background: palette(dark);
}

ads--CDockContainerWidget QSplitter::handle {
ads--CDockContainerWidget ads--CDockSplitter::handle {
background: palette(dark);
}

Expand Down
2 changes: 1 addition & 1 deletion src/stylesheets/default_linux.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ads--CDockContainerWidget {
background: palette(dark);
}

ads--CDockContainerWidget QSplitter::handle {
ads--CDockContainerWidget ads--CDockSplitter::handle {
background: palette(dark);
}

Expand Down
3 changes: 2 additions & 1 deletion src/stylesheets/focus_highlighting_linux.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ads--CDockContainerWidget {
background: palette(dark);
}

ads--CDockContainerWidget QSplitter::handle {
ads--CDockContainerWidget ads--CDockSplitter::handle {
background: palette(dark);
}

Expand Down Expand Up @@ -192,3 +192,4 @@ ads--CFloatingDockContainer[isActiveWindow="true"] #floatingTitleMaximizeButton:
background: rgba(255, 255, 255, 92);
}
*/

0 comments on commit 3a5c965

Please sign in to comment.