tornavis/source/blender/makesdna
Paul Melis 235c309e5f Add background rectangle option to video sequencer Text strip
This adds a Box option to the Text strip's style properties, plus related Box Margin value:

{F9208309}

When enabled the text is placed on top of a solid-filled rectangle of a chosen color, as shown below:

{F9208324}

When the box option is disabled the text strip works the same as it does now. When the box option is enabled the meaning of the Shadow option changes to provide a drop-shadow on the rectangle (and not on the text itself). The latter made more sense to me.

The box margin is specified as a fraction of the image width. The offset of the drop-down box shadow is fixed to a specific fraction of the image width as well.

I tested this feature on a movie of a couple of minutes containing dozens of text strips (all with box background), edge cases like multi-line strings and text overlapping the image edges.

Reviewed By: ISS

Differential Revision: https://developer.blender.org/D9468
2020-11-06 16:05:50 +01:00
..
intern Fix T82387: Crash loading file saved with recent master in old versions 2020-11-06 11:58:06 +01:00
CMakeLists.txt
DNA_ID.h Add a callback to `IDTypeInfo` to allow preservation of some data accross memfile undos 2020-11-03 11:40:29 +01:00
DNA_action_types.h UI: New option to invert search filter in Dopesheet 2020-10-14 15:24:52 +02:00
DNA_anim_types.h Spelling: It's Versus Its 2020-10-19 08:12:33 -07:00
DNA_armature_defaults.h Armature: Add minimal DNA defaults for bArmature. 2020-10-08 13:23:30 +02:00
DNA_armature_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_boid_types.h Spelling: It's Versus Its 2020-10-19 08:12:33 -07:00
DNA_brush_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_brush_types.h GPencil: Cleanup comments typo error 2020-11-02 15:27:33 +01:00
DNA_cachefile_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_cachefile_types.h Merge branch 'blender-v2.90-release' into master 2020-08-07 10:04:57 +02:00
DNA_camera_defaults.h Cleanup: follow our code style for float literals 2020-11-06 12:32:54 +11:00
DNA_camera_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_cloth_types.h Cleanup: multi-line comment blocks 2020-10-14 15:24:42 +11:00
DNA_collection_defaults.h Add DNA defaults for Collection. 2020-10-08 16:11:38 +02:00
DNA_collection_types.h Collections: Add color tagging 2020-09-15 12:47:09 -06:00
DNA_color_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_constraint_types.h Cleanup: Use an enum to set instanced panel expansion 2020-10-29 19:34:29 -05:00
DNA_curve_defaults.h Curves: Add custom profile bevel support 2020-09-16 10:20:38 -05:00
DNA_curve_types.h Curves: Add custom profile bevel support 2020-09-16 10:20:38 -05:00
DNA_curveprofile_types.h Merge branch 'blender-v2.90-release' into master 2020-08-07 10:04:57 +02:00
DNA_customdata_types.h Cleanup: remove unused navmesh code 2020-09-18 14:10:23 +02:00
DNA_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_defs.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_documentation.h
DNA_dynamicpaint_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_effect_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_fileglobal_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_fluid_defaults.h Fluid: Added obstacle fluid distance parameter 2020-10-20 23:07:53 +02:00
DNA_fluid_types.h Fluid: Added obstacle fluid distance parameter 2020-10-20 23:07:53 +02:00
DNA_freestyle_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_genfile.h DNA: cleanup endian switching when loading file 2020-10-08 18:17:12 +02:00
DNA_gpencil_modifier_defaults.h Cleanup: Use DNA defaults for grease pencil modifiers 2020-10-15 09:44:39 -05:00
DNA_gpencil_modifier_types.h Cleanup: Use an enum to set instanced panel expansion 2020-10-29 19:34:29 -05:00
DNA_gpencil_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_gpu_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_hair_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_hair_types.h Geometry: add .attributes in the Python API for Mesh, Hair and Point Cloud 2020-09-09 17:01:17 +02:00
DNA_image_defaults.h Use DrawManager for Image/UV Editor 2020-09-11 08:08:46 +02:00
DNA_image_types.h Fix T80776: Cannot switch between Slots of Render Result 2020-09-15 09:29:58 +02:00
DNA_ipo_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_key_types.h Spelling: Miscellaneous 2020-10-19 09:11:00 -07:00
DNA_lattice_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_lattice_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_layer_types.h Cleanup: multi-line comment blocks 2020-10-14 15:24:42 +11:00
DNA_light_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_light_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_lightprobe_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_lightprobe_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_linestyle_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_linestyle_types.h Spelling: It's Versus Its 2020-10-19 08:12:33 -07:00
DNA_listBase.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_mask_types.h Spelling: It's Versus Its 2020-10-19 08:12:33 -07:00
DNA_material_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_material_types.h GPencil: New material parameter to rotate texture 2020-10-30 15:45:00 +01:00
DNA_mesh_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_mesh_types.h Multires: Remove legacy compatibility code 2020-10-22 12:15:57 +02:00
DNA_meshdata_types.h Multires: Remove legacy compatibility code 2020-10-22 12:15:57 +02:00
DNA_meta_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_meta_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_modifier_defaults.h Multires: Remove simple subdivision type 2020-10-27 10:31:48 +01:00
DNA_modifier_types.h Cleanup: Use an enum to set instanced panel expansion 2020-10-29 19:34:29 -05:00
DNA_movieclip_defaults.h Add DNA defaults for MovieClip. 2020-10-08 17:19:05 +02:00
DNA_movieclip_types.h Merge branch 'blender-v2.90-release' into master 2020-08-07 10:04:57 +02:00
DNA_nla_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_node_types.h Materials: add custom object properties as uniform attributes. 2020-11-03 16:35:44 +03:00
DNA_object_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_object_enums.h Fix T63125: Gpencil: bones cannot be selected in weightpaint mode 2020-09-03 15:01:50 +02:00
DNA_object_fluidsim_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_object_force_types.h Cleanup: BLI_noise 2020-11-06 12:32:54 +11:00
DNA_object_types.h Move "Camera Parent Lock" from preferences to Object Relations 2020-11-05 16:08:00 -06:00
DNA_outliner_types.h Outliner: Include gpencil modifiers and effects in the tree 2020-08-25 10:04:15 -06:00
DNA_packedFile_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_particle_defaults.h Add DNA defaults for ParticleSettings. 2020-10-08 18:19:09 +02:00
DNA_particle_types.h Cleanup: use C comments for descriptive text 2020-10-10 22:04:51 +11:00
DNA_pointcache_types.h Spelling: Miscellaneous 2020-10-19 09:11:00 -07:00
DNA_pointcloud_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_pointcloud_types.h Geometry: add .attributes in the Python API for Mesh, Hair and Point Cloud 2020-09-09 17:01:17 +02:00
DNA_rigidbody_types.h Make rigidbody simulation handle animated objects gracefully 2020-09-02 14:20:41 +02:00
DNA_scene_defaults.h Volumes: support lower resolution in viewport 2020-10-01 17:59:04 +02:00
DNA_scene_types.h Refactor: move Scene .blend lib reading to IDTypeInfo callback 2020-11-06 15:21:57 +01:00
DNA_screen_types.h Cleanup: sort structs, files 2020-11-06 12:32:54 +11:00
DNA_sdna_types.h Spelling: It's Versus Its 2020-10-19 08:12:33 -07:00
DNA_sequence_types.h Add background rectangle option to video sequencer Text strip 2020-11-06 16:05:50 +01:00
DNA_session_uuid_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_shader_fx_types.h Cleanup: Use an enum to set instanced panel expansion 2020-10-29 19:34:29 -05:00
DNA_simulation_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_simulation_types.h Simulation: remove particle nodes with outdated design 2020-10-20 12:07:42 +02:00
DNA_sound_types.h Spelling: It's Versus Its 2020-10-19 08:12:33 -07:00
DNA_space_types.h Cleanup: make format 2020-11-04 02:14:48 -05:00
DNA_speaker_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_speaker_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_text_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_texture_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_texture_types.h Cleanup: use C comments for descriptive text 2020-10-10 22:04:51 +11:00
DNA_tracking_types.h Tracking: Simplify configuration of intrinsics to refine 2020-10-28 10:21:07 +01:00
DNA_userdef_types.h Move "Camera Parent Lock" from preferences to Object Relations 2020-11-05 16:08:00 -06:00
DNA_vec_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_vec_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_vfont_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_view2d_types.h Cleanup: Remove unused View2D variables and function 2020-09-30 12:21:35 -05:00
DNA_view3d_defaults.h Overlay: Fade Inactive Geometry 2020-09-18 19:24:58 +02:00
DNA_view3d_enums.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_view3d_types.h Overlay: Fade Inactive Geometry 2020-09-18 19:24:58 +02:00
DNA_volume_defaults.h Liquid Simulation Display Options (GSoC 2020) 2020-09-15 23:13:01 +05:30
DNA_volume_types.h Volumes: simplify volumes in modifiers or on load 2020-10-20 11:00:16 +02:00
DNA_windowmanager_types.h WM: warn when event's have repeat set for non keyboard events 2020-10-22 11:59:37 +11:00
DNA_workspace_types.h Fix (unreported) design flow in how workspace's relation data are read from .blend file. 2020-10-02 11:47:34 +02:00
DNA_world_defaults.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_world_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00
DNA_xr_types.h Code Style: use "#pragma once" in source directory 2020-08-07 09:50:34 +02:00