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 /source/blender/makesrna | |
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 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_sequencer.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_sequencer.c b/source/blender/makesrna/intern/rna_sequencer.c index 01b083dc3c8..54ac7860108 100644 --- a/source/blender/makesrna/intern/rna_sequencer.c +++ b/source/blender/makesrna/intern/rna_sequencer.c @@ -2932,6 +2932,16 @@ static void rna_def_text(StructRNA *srna) RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_TEXT_BOX); RNA_def_property_ui_text(prop, "Shadow", "Display colored box behind text"); RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); + + prop = RNA_def_property(srna, "use_bold", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_TEXT_BOLD); + RNA_def_property_ui_text(prop, "Bold", "Display text as bold"); + RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); + + prop = RNA_def_property(srna, "use_italic", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "flag", SEQ_TEXT_ITALIC); + RNA_def_property_ui_text(prop, "Italic", "Display text as italic"); + RNA_def_property_update(prop, NC_SCENE | ND_SEQUENCER, "rna_Sequence_invalidate_raw_update"); } static void rna_def_color_mix(StructRNA *srna) |