Fix #123332: VSE strip transform handles look tweaks #123391

Merged
Aras Pranckevicius merged 5 commits from aras_p/blender:vse_handles_look into blender-v4.2-release 2024-06-19 11:49:33 +02:00

5 Commits

Author SHA1 Message Date
a1d95fb77d Merge branch 'blender-v4.2-release' into vse_handles_look
# Conflicts:
#	source/blender/gpu/shaders/gpu_shader_sequencer_strips_frag.glsl
2024-06-19 12:22:59 +03:00
6945104304 Merge branch 'blender-v4.2-release' into vse_handles_look
All checks were successful
buildbot/vexp-code-patch-darwin-x86_64 Build done.
buildbot/vexp-code-patch-darwin-arm64 Build done.
buildbot/vexp-code-patch-lint Build done.
buildbot/vexp-code-patch-linux-x86_64 Build done.
buildbot/vexp-code-patch-windows-amd64 Build done.
buildbot/vexp-code-patch-coordinator Build done.
2024-06-19 10:05:05 +03:00
a1165588d1 VSE: further handle color tweaks
Selected handles always use the same color as the outline. Previously
they were almost always using it, except while actively transforming -
the outline was brighter but the handle itself was not.

With this, there's no need for handle colors state for the shader,
it is enough to put in flags which handles are selected vs which
ones are merely drawn.
2024-06-19 10:01:19 +03:00
b37b024df3 Fix #123332: VSE strip transform handles look
All checks were successful
buildbot/vexp-code-patch-lint Build done.
buildbot/vexp-code-patch-darwin-arm64 Build done.
buildbot/vexp-code-patch-darwin-x86_64 Build done.
buildbot/vexp-code-patch-linux-x86_64 Build done.
buildbot/vexp-code-patch-windows-amd64 Build done.
buildbot/vexp-code-patch-coordinator Build done.
Current look of VSE timeline view strip transformation handles makes
them somewhat "too narrow", especially after recent changes that
made them more narrow than before (handle tweaking feature) and
a strip visual change that made strip outline not go outside of strip
bounds. They are now just 2px wide, effectively.

This changes their look as outlined in #123332 design task:
- The inset dark line is no longer over the handles, but rather
  "inside" of them (except when handles are semitransparent, i.e.
  for strips that are not selected).
- The handles themselves have rounded corners.
2024-06-18 19:07:40 +03:00
8f3da368fc Fix #123333: VSE strip outline width takes DPI/line width setting into account
Now the strip outline (1 point for unselected strips, 2 point outline +
1 pt dark inset) takes monitor DPI / user preference line width into
account, via the usual U.pixelsize machinery.
2024-06-18 15:00:22 +03:00