-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Font sizes in custom UI elements may need to scale to DPI settings #81
Comments
Thanks for reporting. I never work with UI scaling, so never caught this bug. Definitely an oversight in the UI code. |
@philipbelesky, I tried replicating this on my end - but it's a pain to work with 200% UI scale on a low-res monitor. If it's the former - try changing these values: SandWorm/SandWorm/CustomComponent/WidgetServer.cs Lines 89 to 108 in 9801a79
For the latter - it seems, that there is a hard-coded 20 px height value for each menu item: SandWorm/SandWorm/CustomComponent/MenuDropDown.cs Lines 91 to 93 in 9801a79
Quick search for '20' shows that it is referenced multiple times in the code. Replacing it with a proper variable relating to Windows' UI scaling factor could fix it. |
@philipbelesky, did you make any progress on this issue? |
Hadn't had a go at it yet. I'd be happy to, but it might be more useful for you to look at given your work with Custom UI things? |
I can help with the code, but don't have a high-res monitor around to test it on. |
Not sure if this is a weird artefact of my setup, but the font size values (and perhaps UI dimensions more broadly) seem much overscaled in Grasshopper. This creates some clipping in the dropdown menus. This is at 200% UI scale on a 5120x2880px screen.
The text was updated successfully, but these errors were encountered: