diff options
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_userpref.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py index b01144dc3bd..2f2c85eeffc 100644 --- a/release/scripts/startup/bl_ui/space_userpref.py +++ b/release/scripts/startup/bl_ui/space_userpref.py @@ -82,13 +82,13 @@ class PreferencePanel(Panel): def draw(self, context): layout = self.layout width = context.region.width - pixel_size = context.preferences.system.pixel_size + ui_scale = context.preferences.system.ui_scale layout.use_property_split = True layout.use_property_decorate = False # No animation. row = layout.row() - if width > (350 * pixel_size): # No horizontal margin if region is rather small. + if width > (350 * ui_scale): # No horizontal margin if region is rather small. row.label() # Needed so col below is centered. col = row.column() @@ -97,7 +97,7 @@ class PreferencePanel(Panel): # draw_props implemented by deriving classes. self.draw_props(context, col) - if width > (350 * pixel_size): # No horizontal margin if region is rather small. + if width > (350 * ui_scale): # No horizontal margin if region is rather small. row.label() # Needed so col above is centered. |