Theme: Radial gradient background and enum for gradient type

This commit replaces the "Use Gradient" checkbox theme option with an
enum and implements a radial background.

Whith this change, it should be easier to implemet other types of more
complex background types, like a world space oriented gradient.

Reviewed By: billreynish, fclem, brecht

Differential Revision: https://developer.blender.org/D6825
This commit is contained in:
2020-02-19 19:11:47 +01:00
parent 2df040ed58
commit 05fd2acf89
7 changed files with 67 additions and 14 deletions

View File

@@ -196,9 +196,9 @@ const uchar *UI_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colorid)
cp = ts->back_grad;
break;
case TH_SHOW_BACK_GRAD:
case TH_BACKGROUND_TYPE:
cp = &setting;
setting = ts->show_back_grad;
setting = ts->background_type;
break;
case TH_TEXT:
if (theme_regionid == RGN_TYPE_WINDOW) {