Skip to content

Conversation

@JingRyu
Copy link

@JingRyu JingRyu commented Jun 3, 2025

Purpose of the pull request

Improve default display scaling on macOS

Description about the pull request

Adjust default font_size, mouse_size, and line_thickness for better visibility on macOS Retina displays.

Additional comments [Optional]

I’m happy to contribute for macOS users. Thank you for maintaining this project!

Copy link
Owner

@nutti nutti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for raising PR!

I think this scaling difference comes from the dpi.
We can use below Python API to change DPI automatically.
https://docs.blender.org/api/current/bpy.types.PreferencesSystem.html#bpy.types.PreferencesSystem.dpi
https://docs.blender.org/api/current/bpy.types.PreferencesSystem.html#bpy.types.PreferencesSystem.pixel_size

What do you think?

default=int(bpy.context.preferences.ui_styles[0].widget.points),
default=int(
bpy.context.preferences.ui_styles[0].widget.points
* (5 if is_macos else 1)),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think changing font_size is not good idea because this configuration should be constraint in user side.
Instead, we can change the scale before feeding the font_size to API.
This is same for others.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi nutti, thank you for your suggestion! My quarter is about to end, and I will fix this the next few days!

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JingRyu
Thank you. It's ok to me.
If you have any help, please let me know.

@nutti nutti modified the milestones: Version 4.2.0, Version 4.2.1 Jun 4, 2025
@nutti nutti linked an issue Jun 4, 2025 that may be closed by this pull request
@nutti nutti added the bug Something isn't working label Jun 4, 2025
@nutti
Copy link
Owner

nutti commented Sep 13, 2025

@JingRyu
Is there any update for this PR?
Or, should I help something?
I'm considering including this patch if time allows.

@nutti nutti removed this from the Version 4.2.1 milestone Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default display size too small on macOS (usability issue)

2 participants