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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user