VSE: Changes to strip title and preview drawing #109472

Merged
Richard Antalik merged 6 commits from ok_what/blender:vse-strip-title-pr into main 2023-08-07 21:35:53 +02:00
Contributor

This is based on this patch, but includes additional changes.

Visual changes

All strip previews are now drawn under the title bar:
Before:
image
After:
image

  • All strip previews now disappear when there isn't enough space for them.
  • Like the sound strip, the color strip expands to fill the whole strip when there is little vertical space, "taking over" the strip title. The color itself is likely a more important visual indicator than the name of the color strip.

Before
After

Bug fixes

  • Disabling the strip title no longer disables the strip handle frame previews.
  • All strip previews should now be affected by the "Show overlays" toggle.
  • Turning off strip text overlay no longer makes the color strip preview disappear.

Other

  • Variables were renamed and additional comments were added in the areas relevant to this change, to hopefully make the code easier to read. The transition drawing was split into its own function.

In the previous patch there was a discussion about the color of the transition strip. Using the saturation level of source strips was suggested. I kept the color used in the second version of the patch as it's the best I could find. If someone has a specific hex code in mind that would work better I'm open to other suggestions.

This is based on [this patch](https://archive.blender.org/developer/differential/0016/0016205/index.html), but includes additional changes. # Visual changes **All strip previews are now drawn under the title bar:** Before: ![image](/attachments/02bd3773-b4f9-4380-9c37-21f3eabe6416) After: ![image](/attachments/269bd015-3d95-45d7-9535-51f4188cc71d) - **All strip previews now disappear when there isn't enough space for them.** - **Like the sound strip, the color strip expands to fill the whole strip when there is little vertical space, "taking over" the strip title. The color itself is likely a more important visual indicator than the name of the color strip.** ![Before](/attachments/1183f338-6194-42bb-a2fa-fede7de3d6a8) ![After](/attachments/9784cc9f-930c-4450-91a6-dd9c3d451128) # Bug fixes - Disabling the strip title no longer disables the strip handle frame previews. - All strip previews should now be affected by the "Show overlays" toggle. - Turning off strip text overlay no longer makes the color strip preview disappear. # Other - Variables were renamed and additional comments were added in the areas relevant to this change, to hopefully make the code easier to read. The transition drawing was split into its own function. In the [previous patch](https://archive.blender.org/developer/differential/0016/0016205/index.html) there was a discussion about the color of the transition strip. Using the saturation level of source strips was suggested. I kept the color used in the second version of the patch as it's the best I could find. If someone has a specific hex code in mind that would work better I'm open to other suggestions.
ok what added 2 commits 2023-06-28 21:20:50 +02:00
ok what added 2 commits 2023-07-27 13:59:42 +02:00
ok what requested review from Richard Antalik 2023-07-27 14:53:30 +02:00
ok what changed title from WIP: VSE: Changes to strip title and preview drawing to VSE: Changes to strip title and preview drawing 2023-07-27 15:59:57 +02:00
Iliya Katushenock added the
Interest
Video Sequencer
label 2023-07-27 16:51:24 +02:00
Richard Antalik approved these changes 2023-07-31 22:59:27 +02:00

Looks good, so I accept, but if you can, please fix conflict in versioning_userdef.cc. I could fix it too, but we are encouraged to merge patches directly from this site.

Looks good, so I accept, but if you can, please fix conflict in versioning_userdef.cc. I could fix it too, but we are encouraged to merge patches directly from this site.
ok what added 1 commit 2023-08-04 16:59:34 +02:00
ok what requested review from Richard Antalik 2023-08-04 17:52:20 +02:00
ok what added 1 commit 2023-08-05 11:12:19 +02:00
Richard Antalik merged commit 5f0a8759b0 into main 2023-08-07 21:35:53 +02:00
ok what deleted branch vse-strip-title-pr 2023-08-07 21:46:15 +02:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#109472
No description provided.