[Bf-blender-cvs] [a8036cc2a10] temp-checkbox-layout-tweaks: Use checkbox+value for Text Editor
William Reynish
noreply at git.blender.org
Sat Apr 11 17:03:58 CEST 2020
Commit: a8036cc2a10e2a6d9d97dd7ca5a9e9f54283f27b
Author: William Reynish
Date: Sat Apr 11 17:03:03 2020 +0200
Branches: temp-checkbox-layout-tweaks
https://developer.blender.org/rBa8036cc2a10e2a6d9d97dd7ca5a9e9f54283f27b
Use checkbox+value for Text Editor
===================================================================
M release/scripts/startup/bl_ui/space_text.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_text.py b/release/scripts/startup/bl_ui/space_text.py
index b7c5dcd5437..19c2df39fb2 100644
--- a/release/scripts/startup/bl_ui/space_text.py
+++ b/release/scripts/startup/bl_ui/space_text.py
@@ -129,18 +129,21 @@ class TEXT_PT_properties(Panel):
layout.use_property_decorate = False
st = context.space_data
- flow = layout.column_flow()
if not st.text:
- flow.active = False
- row = flow.row(align=True)
+ layout.active = False
+
st = context.space_data
- row.prop(st, "show_margin", text="Margin")
- rowsub = row.row()
- rowsub.active = st.show_margin
- rowsub.prop(st, "margin_column", text="")
- flow.prop(st, "font_size")
- flow.prop(st, "tab_width")
+ col = layout.column(align=False, heading="Margin")
+ row = col.row(align=True)
+ sub = row.row(align=True)
+ sub.prop(st, "show_margin", text="")
+ sub = sub.row(align=True)
+ sub.active = st.show_margin
+ sub.prop(st, "margin_column", text="")
+
+ layout.prop(st, "font_size")
+ layout.prop(st, "tab_width")
text = st.text
if text:
More information about the Bf-blender-cvs
mailing list