I found a post on Right-Click Select UV island outline about the option to adjust the thickness of the edges in the UV-Editor.
While the post was about making the edges that outline an UV-island, I went with the basic option to adjust the width/thickness first and found, that it even had a “/* TODO: Theme. */” comment.
While I managed to get it working for 3D View and UV-Editor, I wonder if the result when increasing the thickness in the UV-Editor is pleasing enough. Increasing the thickness too much ended up looking really bad, so I first limited it to 5, in the newest patch to 32. The black bands left and right of the edge still seem to get too thick. It may not look good on normal resolution screens if maxed out, but a user mentioned that there are users that use resolutions, that profit from higher then 5 thickness.
With the smallest/default thickness of “1”:
While with thickness of “5”:
I am not sure exactly where the specific drawing for the black border comes from, so I hope someone could give me a tip.
I would like to continue on the challenge with the UV-islands, but for starters I think getting the look of the adjusted thickness is more important.
The responsible code for the thickness can be found in:
gb->size_edge = U.pixelsize * max_ff(0.5f, UI_GetThemeValuef(TH_EDGE_WIDTH) * (float)M_SQRT2 / 4.0f); gb->size_edge_fix = U.pixelsize * (0.5f + 2.0f * (1.0f * (gb->size_edge * (float)M_SQRT1_2)));
The above code is what I use in my attempt, the “TH_EDGE_WIDTH” is also implemented for this cause.
While I pretty much reused the code for the vertex size related code that can be found in the same file just above where the “gb->size_edge” is adjusted.
Update: Not the focus of the patch, but for completeness sake the 3DViewport got the option as well:
The patch on review can be found here: Added Edge Width option in preferences for 3DView and UV/Image Editor
UPDATE: After the move to a new system the contribution can be found under Pull Request #104741
UPDATE: Thanks to the comments and suggestions this patch got finally merged
Thanks for the interest and helpful comments.