[Bf-blender-cvs] [a099478cad7] master: UI: Use Heading to Remove Text strip Shadow Subpanel
Peter Fog
noreply at git.blender.org
Thu May 28 18:12:23 CEST 2020
Commit: a099478cad7e7839ffd13937733396452bef872d
Author: Peter Fog
Date: Thu May 28 12:11:53 2020 -0400
Branches: master
https://developer.blender.org/rBa099478cad7e7839ffd13937733396452bef872d
UI: Use Heading to Remove Text strip Shadow Subpanel
The new "heading=" option allows for a more simple way to expose the
Text strip Shadow operator.
Differential Revision: https://developer.blender.org/D7535
===================================================================
M release/scripts/startup/bl_ui/space_sequencer.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index ca25c29960c..c146d374d22 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -1195,31 +1195,14 @@ class SEQUENCER_PT_effect_text_style(SequencerButtonsPanel, Panel):
col.prop(strip, "font_size")
col.prop(strip, "color")
-
-class SEQUENCER_PT_effect_text_style_shadow(SequencerButtonsPanel, Panel):
- bl_label = "Shadow"
- bl_parent_id = "SEQUENCER_PT_effect_text_style"
- bl_options = {'DEFAULT_CLOSED'}
- bl_category = "Strip"
-
- @classmethod
- def poll(cls, context):
- strip = act_strip(context)
- return strip.type != 'SOUND'
-
- def draw_header(self, context):
- strip = act_strip(context)
- self.layout.prop(strip, "use_shadow", text="")
-
- def draw(self, context):
- strip = act_strip(context)
- layout = self.layout
- layout.use_property_split = True
-
- layout.active = strip.use_shadow and (not strip.mute)
-
- col = layout.column(align=True)
- col.prop(strip, "shadow_color", text="Color")
+ row = layout.row(align=True, heading="Shadow")
+ row.use_property_decorate = False
+ sub = row.row(align=True)
+ sub.prop(strip, "use_shadow", text="")
+ subsub = sub.row(align=True)
+ subsub.active = strip.use_shadow and (not strip.mute)
+ subsub.prop(strip, "shadow_color", text="")
+ row.prop_decorator(strip, "shadow_color")
class SEQUENCER_PT_source(SequencerButtonsPanel, Panel):
@@ -2249,7 +2232,6 @@ classes = (
SEQUENCER_PT_mask,
SEQUENCER_PT_effect_text_style,
SEQUENCER_PT_effect_text_layout,
- SEQUENCER_PT_effect_text_style_shadow,
SEQUENCER_PT_time,
SEQUENCER_PT_source,
More information about the Bf-blender-cvs
mailing list