Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeverin <eiseljulian@gmail.com>2019-01-04 23:40:16 +0300
committerSeverin <eiseljulian@gmail.com>2019-01-04 23:42:51 +0300
commit000009f4d6f96c478242aede30f3e3c8bc386a25 (patch)
tree173dddb28838298d2319f4f062586ba8985728c1
parent3e159e7a9b528a59ec91e0cc981488ed7a7bff88 (diff)
Use full region width for file path panelsuserpref_redesign
The horizontal margin would shrink the text button, reducing space to show file paths in. For file paths, larger buttons make sense though, so remove the margin.
-rw-r--r--release/scripts/startup/bl_ui/space_userpref.py20
1 files changed, 16 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_userpref.py b/release/scripts/startup/bl_ui/space_userpref.py
index 312c2dcb9a2..a115213fc2a 100644
--- a/release/scripts/startup/bl_ui/space_userpref.py
+++ b/release/scripts/startup/bl_ui/space_userpref.py
@@ -1125,7 +1125,9 @@ class ThemeGenericClassGenerator():
theme_area, theme_area.identifier.lower())
-class USERPREF_PT_file_paths(PreferencePanel):
+class USERPREF_PT_file_paths(Panel):
+ bl_space_type = 'PREFERENCES'
+ bl_region_type = 'WINDOW'
bl_label = "File Paths"
@classmethod
@@ -1133,11 +1135,15 @@ class USERPREF_PT_file_paths(PreferencePanel):
prefs = context.preferences
return (prefs.active_section == 'SYSTEM_FILES')
- def draw_props(self, context, layout):
+ def draw(self, context):
+ layout = self.layout
prefs = context.preferences
paths = prefs.filepaths
system = prefs.system
+ layout.use_property_split = True
+ layout.use_property_decorate = False # No animation.
+
layout.prop(paths, "render_output_directory", text="Render Output")
layout.prop(paths, "render_cache_directory", text="Render Cache")
layout.prop(paths, "font_directory", text="Fonts")
@@ -1154,7 +1160,9 @@ class USERPREF_PT_file_paths(PreferencePanel):
row.prop(paths, "animation_player", text="Animation Player")
-class USERPREF_PT_file_autorun(PreferencePanel):
+class USERPREF_PT_file_autorun(Panel):
+ bl_space_type = 'PREFERENCES'
+ bl_region_type = 'WINDOW'
bl_label = "Auto Run Python Scripts"
bl_options = {'DEFAULT_CLOSED'}
@@ -1169,10 +1177,14 @@ class USERPREF_PT_file_autorun(PreferencePanel):
self.layout.prop(paths, "use_scripts_auto_execute", text="")
- def draw_props(self, context, layout):
+ def draw(self, context):
+ layout = self.layout
prefs = context.preferences
paths = prefs.filepaths
+ layout.use_property_split = True
+ layout.use_property_decorate = False # No animation.
+
layout.active = paths.use_scripts_auto_execute
box = layout.box()