UI: Display invalid cache as striped lines in the timeline #108481

Merged
Jacques Lucke merged 6 commits from lone_noel/blender:timeline-invalid-cache-stripes into blender-v4.0-release 2023-10-06 13:12:27 +02:00

6 Commits

Author SHA1 Message Date
Leon Schittek b7bd3f47b2 Merge branch 'blender-v4.0-release' into timeline-invalid-cache-stripes 2023-10-05 12:14:16 +02:00
Leon Schittek a1123f7b5c Use color types. 2023-10-05 12:12:14 +02:00
Leon Schittek 0485791bbf Align simulation caches and geometry nodes chaches in the timeline. 2023-10-05 11:48:46 +02:00
Leon Schittek a616ef6d33 Fix build error and use color types. 2023-10-05 11:27:17 +02:00
Leon Schittek d76f105117 Mix background color into hardcoded cache colors to tone them down a bit. 2023-10-05 09:42:58 +02:00
Leon Schittek 117089a745 UI: Display invalid cache as striped lines in the timeline
Unify the way the different state's of a cache are shown in the
timeline:

* Baked: fully opaque
* Cached: slightly transparent
* Invalid cache: slightly transparent, dark diagonal stripes

This improves accessibility since patterns are easier to recognize
for colorblind or otherwise visually impaired people.

The slight transparency is done with an alpha of 0.7 and the diagonal
stripes use the cache's color at 50% value.

Implements #108196
2023-10-05 09:42:57 +02:00