Skip to content

Widen dock separators to make them easier to grab (#277)#595

Open
HaozheZhang6 wants to merge 1 commit into
CadQuery:masterfrom
HaozheZhang6:fix/dock-separator-width
Open

Widen dock separators to make them easier to grab (#277)#595
HaozheZhang6 wants to merge 1 commit into
CadQuery:masterfrom
HaozheZhang6:fix/dock-separator-width

Conversation

@HaozheZhang6

Copy link
Copy Markdown

Fixes #277.

On macOS / high-DPI displays the dock separators are only a couple of pixels wide, so grabbing them to resize the panels is very hard. This adds a QMainWindow::separator stylesheet in MainWindow.__init__ to widen them to 6px.

This is the fix @lorenzncode identified and @bendavis78 confirmed (5-10px comfortable) in the issue, matching the qss approach @adam-urbanczyk asked for there. The light/dark themes don't style QMainWindow::separator, so a theme switch won't clobber it. Verified the stylesheet applies cleanly on a PyQt5 QMainWindow with docks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resizer between the panels at 4k resolution very hard to grab

1 participant