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:
authorWilliam Reynish <billrey@me.com>2019-06-23 01:16:26 +0300
committerWilliam Reynish <billrey@me.com>2019-06-23 01:16:26 +0300
commita7c4eda3e3a22b216a7f8603f71bfc634f9f0b1f (patch)
treef5f1e352d97eaf128b4f54a7330b1937a22a4b19 /release/scripts/startup/bl_ui/space_sequencer.py
parentae6300a8b74b487d9c2cbcf18f36719654ac5e72 (diff)
UI: Add Strip Type Icons in the VSE Sidebar Header
This helps users identify the active strip type much more clearly. Differential Revision: https://developer.blender.org/D5124
Diffstat (limited to 'release/scripts/startup/bl_ui/space_sequencer.py')
-rw-r--r--release/scripts/startup/bl_ui/space_sequencer.py34
1 files changed, 33 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py
index 99ac775b4dc..809cb3e9b60 100644
--- a/release/scripts/startup/bl_ui/space_sequencer.py
+++ b/release/scripts/startup/bl_ui/space_sequencer.py
@@ -814,9 +814,41 @@ class SEQUENCER_PT_strip(SequencerButtonsPanel, Panel):
def draw(self, context):
layout = self.layout
strip = act_strip(context)
+ strip_type = strip.type
+
+ if strip_type in {
+ 'ADD', 'SUBTRACT', 'ALPHA_OVER', 'ALPHA_UNDER', 'MULTIPLY',
+ 'OVER_DROP', 'GLOW', 'TRANSFORM', 'SPEED', 'MULTICAM',
+ 'GAUSSIAN_BLUR', 'COLORMIX',
+ }:
+ icon_header='SHADERFX'
+ elif strip_type in {
+ 'CROSS', 'GAMMA_CROSS', 'WIPE',
+ }:
+ icon_header='ARROW_LEFTRIGHT'
+ elif strip_type == 'SCENE':
+ icon_header='SCENE_DATA'
+ elif strip_type == 'MOVIECLIP':
+ icon_header='TRACKER'
+ elif strip_type == 'MASK':
+ icon_header='MOD_MASK'
+ elif strip_type == 'MOVIE':
+ icon_header='FILE_MOVIE'
+ elif strip_type == 'SOUND':
+ icon_header='FILE_SOUND'
+ elif strip_type == 'IMAGE':
+ icon_header='FILE_IMAGE'
+ elif strip_type == 'COLOR':
+ icon_header='COLOR'
+ elif strip_type == 'TEXT':
+ icon_header='FONT_DATA'
+ elif strip_type == 'ADJUSTMENT':
+ icon_header='COLOR'
+ else:
+ icon_header='SEQ_SEQUENCER'
row = layout.row()
- row.label(text="", icon='SEQ_SEQUENCER')
+ row.label(text="", icon=icon_header)
row.prop(strip, "name", text="")
row.prop(strip, "mute", toggle=True, icon_only=True, emboss=False)