diff options
author | Peter Fog <tintwotin> | 2021-03-20 02:29:22 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-03-20 03:40:53 +0300 |
commit | 913b71bb8be9b40da9c0f0cd21016c784a56dc18 (patch) | |
tree | d68003f0adab6be543c442d1ca69df636767e2b4 /release/scripts/startup/bl_ui | |
parent | 7bf977e9f0cf57add1543f83d357a19f0848b2b5 (diff) |
VSE: Add bold and italic option for text strip
Bold and italic fonts can be switched quickly by presing corresponding
button.
Reviewed By: ISS
Differential Revision: https://developer.blender.org/D10542
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/space_sequencer.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_sequencer.py b/release/scripts/startup/bl_ui/space_sequencer.py index a4c2ed68a91..f7abbeca0b1 100644 --- a/release/scripts/startup/bl_ui/space_sequencer.py +++ b/release/scripts/startup/bl_ui/space_sequencer.py @@ -1271,7 +1271,13 @@ class SEQUENCER_PT_effect_text_style(SequencerButtonsPanel, Panel): layout = self.layout layout.use_property_split = True col = layout.column() - col.template_ID(strip, "font", open="font.open", unlink="font.unlink") + + row = col.row(align=True) + row.use_property_decorate = False + row.template_ID(strip, "font", open="font.open", unlink="font.unlink") + row.prop(strip, "use_bold", text="", icon="BOLD") + row.prop(strip, "use_italic", text="", icon="ITALIC") + col.prop(strip, "font_size") col.prop(strip, "color") @@ -1294,7 +1300,6 @@ class SEQUENCER_PT_effect_text_style(SequencerButtonsPanel, Panel): row.prop_decorator(strip, "box_color") row = layout.row(align=True, heading="Box Margin") - row.use_property_decorate = False sub = row.row(align=True) sub.prop(strip, "box_margin") sub.active = strip.use_box and (not strip.mute) |