Page MenuHome

UI Papercut: Fix gap in node outline
ClosedPublic

Authored by Leon Schittek (lone_noel) on Jan 30 2022, 11:08 AM.

Details

Summary

Correct corner radius of the node outline to prevent a noticeable gap in
some cases.


Currently we make a small mistake in the creation of the node outline:
We offset the rectangle describing the outline by the outline thickness,
but we don't adjust the corner radius accordingly.
Therefore the rounded corner of the outline and the node body are not
concentric which can sometimes lead to a visible gap at the corner.
How noticeable it is depends on the theme, the screen's dpi and the
line thickness set in the preferences.

Simply adjusting the corner radius for the outline to also be increased
by the outline thickness fixes this small issue.

display, line thicknesspatchmaster
1080p, default/thin
retina, thin

The issue was mentioned by @Vyacheslav (hitrpr)

Diff Detail

Repository
rB Blender

Event Timeline

Leon Schittek (lone_noel) requested review of this revision.Jan 30 2022, 11:08 AM
Leon Schittek (lone_noel) created this revision.
Leon Schittek (lone_noel) added projects: User Interface, Restricted Project.
This revision is now accepted and ready to land.Jan 31 2022, 6:29 PM
This revision was automatically updated to reflect the committed changes.