From b5cfb23fa719816a8f712b2d18ac3be1e037a1ac Mon Sep 17 00:00:00 2001 From: Peter Fog Date: Mon, 1 Jun 2020 05:38:48 +0200 Subject: VSE UI: Text panel adjustments This patch adjusts a number of text panel elements: - The text entry widget has become larger in order to distinguish it from the strip name. - Wrap has been moved up under the text, since this doesn't relate to bounding box. - Alignment X/Y has been renamed to Anchor X/Y, since this is the achor point of the text point, and not the Alignment of the text. - Offset and Crop was completely missing from the Text strip panel, these has been added. Reviewed By: billreynish Differential Revision: https://developer.blender.org/D7869 --- release/scripts/startup/bl_ui/space_sequencer.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index 2de047730b8..9c20a55c294 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -1152,9 +1152,13 @@ class SEQUENCER_PT_effect(SequencerButtonsPanel, Panel): elif strip_type == 'TEXT': layout = self.layout - layout.use_property_split = False - layout.prop(strip, "text", text="") - layout.use_property_split = True + col = layout.column() + col.scale_x = 1.3 + col.scale_y = 1.3 + col.use_property_split = False + col.prop(strip, "text", text="") + col.use_property_split = True + layout.prop(strip, "wrap_width", text="Wrap Width") col = layout.column(align=True) if strip_type == 'SPEED': @@ -1191,9 +1195,8 @@ class SEQUENCER_PT_effect_text_layout(SequencerButtonsPanel, Panel): layout.use_property_split = True col = layout.column() col.prop(strip, "location", text="Location") - col.prop(strip, "align_x", text="Alignment X") + col.prop(strip, "align_x", text="Anchor X") col.prop(strip, "align_y", text="Y") - col.prop(strip, "wrap_width", text="Wrap Width") class SEQUENCER_PT_effect_text_style(SequencerButtonsPanel, Panel): @@ -1683,7 +1686,7 @@ class SEQUENCER_PT_adjust_transform(SequencerButtonsPanel, Panel): return strip.type in { 'MOVIE', 'IMAGE', 'SCENE', 'MOVIECLIP', 'MASK', - 'META', 'ADD', 'SUBTRACT', 'ALPHA_OVER', + 'META', 'ADD', 'SUBTRACT', 'ALPHA_OVER', 'TEXT', 'ALPHA_UNDER', 'CROSS', 'GAMMA_CROSS', 'MULTIPLY', 'OVER_DROP', 'WIPE', 'GLOW', 'TRANSFORM', 'COLOR', 'MULTICAM', 'SPEED', 'ADJUSTMENT', 'COLORMIX' -- cgit v1.2.3