From 5c6d5cb8639aa71e2728258e9a4afe7c9d822bc7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 11 Jan 2019 12:59:19 +1100 Subject: Fix background color use in 3D view TH_BACK was being used when drawing the 3D view even though there was no way to set the color in the preferences. The color was zero'd when moving to the new 2.8x theme. Having both gradient and background colors was confusing, especially having to use 'TH_HIGH_GRAD' for the 3D view, 'TH_BACK' for other views. Move the background color back to 'TH_BACK', 'TH_BACK_GRAD' is used when gradients are enabled. RNA is unchanged so presets don't need updating. --- release/datafiles/userdef/userdef_default_theme.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'release/datafiles') diff --git a/release/datafiles/userdef/userdef_default_theme.c b/release/datafiles/userdef/userdef_default_theme.c index 7a7f804bbed..aa275d6a99e 100644 --- a/release/datafiles/userdef/userdef_default_theme.c +++ b/release/datafiles/userdef/userdef_default_theme.c @@ -279,6 +279,7 @@ const bTheme U_theme_default = { .facedot_size = 4, }, .tv3d = { + .back = RGBA(0x393939ff), .title = RGBA(0xeeeeeeff), .text = RGBA(0xe6e6e6ff), .text_hi = RGBA(0xffffffff), @@ -298,10 +299,6 @@ const bTheme U_theme_default = { .back = RGBA(0x333333f0), .sub_back = RGBA(0x0000003e), }, - .gradients = { - .gradient = RGBA(0x39393900), - .high_gradient = RGBA(0x393939ff), - }, .grid = RGBA(0xa7a7a733), .wire = RGBA(0x000000ff), .wire_edit = RGBA(0x111111ff), -- cgit v1.2.3