Anim: Improve readability of channel colors in channel list #112861

Manually merged
Sybren A. Stüvel merged 8 commits from dr.sybren/blender:pr/69059-anim-channel-bg-color into main 2023-09-29 08:44:13 +02:00

8 Commits

Author SHA1 Message Date
Sybren A. Stüvel 91d8787a58 Move some calculations to macros and use `UI_SCALE_FAC` 2023-09-26 16:31:57 +02:00
Sybren A. Stüvel b3fe7e4f7e Draw the channel color as soft alpha-blended color in the background 2023-09-26 16:13:31 +02:00
Sybren A. Stüvel 72a860db19 Refactor the 'get channel color' code into the anim channel defines 2023-09-26 16:01:21 +02:00
Sybren A. Stüvel b3f280c72a Merge remote-tracking branch 'origin/main' into pr/69059-anim-channel-bg-color 2023-09-26 14:30:28 +02:00
Sybren A. Stüvel fb9d66f43c Ensure channel labels are properly cropped. 2023-09-26 11:22:52 +02:00
Sybren A. Stüvel 4aac466ddc Turn on the 'Channel Group Colors' preference via versioning 2023-09-25 17:50:33 +02:00
Sybren A. Stüvel 43a755d7e8 Anim: add Grease Pencil changes 2023-09-25 17:31:43 +02:00
Sybren A. Stüvel 9e6c94dcb6 Anim: Improve readability of channel colors in channel list
Draw anim channel colors as a little rectangle in the channel list,
instead of taking over the entire channel background. This keeps the
channel names readable, regardless of the channel colors.

Channel colors are typically set via the bone colors, and since those
are chosen for visual contrast in the 3D Viewport, they aren't
guaranteed to also be a suitable background color for the channel list.
Because of this, it's no longer used as such.

Design task: #69059
2023-09-25 17:31:43 +02:00