[Bf-blender-cvs] [66ec3c7e7f9] master: Fix Movieclip editors 'graph' and 'dopesheet' view using themes region background setting

Philipp Oeser noreply at git.blender.org
Mon May 7 14:58:08 CEST 2018


Commit: 66ec3c7e7f9c8485ee30b5d359965c631d08b38d
Author: Philipp Oeser
Date:   Mon May 7 14:57:05 2018 +0200
Branches: master
https://developer.blender.org/rB66ec3c7e7f9c8485ee30b5d359965c631d08b38d

Fix Movieclip editors 'graph' and 'dopesheet' view using themes region
background setting

mentioned in T54942

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D3200

===================================================================

M	source/blender/editors/interface/resources.c

===================================================================

diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c
index 33d0b2ae608..ce25817c147 100644
--- a/source/blender/editors/interface/resources.c
+++ b/source/blender/editors/interface/resources.c
@@ -173,7 +173,7 @@ const unsigned char *UI_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colo
 
 			switch (colorid) {
 				case TH_BACK:
-					if (theme_regionid == RGN_TYPE_WINDOW)
+					if (ELEM(theme_regionid, RGN_TYPE_WINDOW, RGN_TYPE_PREVIEW))
 						cp = ts->back;
 					else if (theme_regionid == RGN_TYPE_CHANNELS)
 						cp = ts->list;



More information about the Bf-blender-cvs mailing list