From af6a6627984372b850aac3f3135946ee5c6cb33e Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Thu, 19 Apr 2018 18:21:05 +0200 Subject: Preview Range: Show preview range using a different color (based on ANIM_ACTIVE) instead of using "black" curtains With most editors now showing the start/end range by default, we need a way of easily distinguishing when preview range is now enabled. By using a different color (the exact color used is something we can change/adjust later), there is a more distinct visual difference between them, making it easier to see what's happening. --- source/blender/editors/interface/resources.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source/blender/editors/interface/resources.c') diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index b40ab09036f..1a6665ffa19 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -2951,6 +2951,18 @@ void init_userdef_do_versions(void) copy_v4_v4_char(btheme->ttopbar.back, tmp); } } + + if (!USER_VERSION_ATLEAST(280, 9)) { + /* Timeline removal */ + for (bTheme *btheme = U.themes.first; btheme; btheme = btheme->next) { + if (btheme->tipo.anim_active[3] == 0) { + rgba_char_args_set(btheme->tipo.anim_active, 204, 112, 26, 102); + } + if (btheme->tseq.anim_active[3] == 0) { + rgba_char_args_set(btheme->tseq.anim_active, 204, 112, 26, 102); + } + } + } /** * Include next version bump. -- cgit v1.2.3