improve/fix painting of drag-and-drop insert indicator lines on HiDPI screens #6144
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The drag-and-drop insert indicator lines for TreeView, OutlineView and Palette were painted using six
g.drawLine()
statements, which work fine for 100% screen scaling:But not so good on 150% screen scaling (you can see the six single lines):
This PR changes painting to use a single filled shape and enables antialiasing. At 100%:
At 150%:
This PR also sets the painting color of the D&D line for the palette (was not set before before):
Also fixed some compiler warnings (unused imports, missing Override, ...)