diff options
author | Pablo Vazquez <venomgfx@gmail.com> | 2018-11-03 04:03:42 +0300 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2018-11-03 04:03:42 +0300 |
commit | a8c545e61e3d618804aa80d589892c461553a178 (patch) | |
tree | 8213b11f5455880d49f7981d08137f8b820cbe23 /source/blender/editors/interface | |
parent | 046ec863ffc35e2daae105e4b5911076f1aade1d (diff) |
UI: Fix white shadow when resetting to defaults.
Resetting the theme to default would set the shadow brightness to 1.0f,
which was used as emboss when we used dark text on brighter backgrounds.
Now that we use white labels, bright shadows just makes all text fuzzy.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_style.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/source/blender/editors/interface/interface_style.c b/source/blender/editors/interface/interface_style.c index 47d105efd5f..738da4184b7 100644 --- a/source/blender/editors/interface/interface_style.c +++ b/source/blender/editors/interface/interface_style.c @@ -94,11 +94,11 @@ static uiStyle *ui_style_new(ListBase *styles, const char *name, short uifont_id style->paneltitle.uifont_id = uifont_id; style->paneltitle.points = 12; style->paneltitle.kerning = 1; - style->paneltitle.shadow = 1; + style->paneltitle.shadow = 3; style->paneltitle.shadx = 0; style->paneltitle.shady = -1; - style->paneltitle.shadowalpha = 0.15f; - style->paneltitle.shadowcolor = 1.0f; + style->paneltitle.shadowalpha = 0.5f; + style->paneltitle.shadowcolor = 0.0f; style->grouplabel.uifont_id = uifont_id; style->grouplabel.points = 12; @@ -106,7 +106,8 @@ static uiStyle *ui_style_new(ListBase *styles, const char *name, short uifont_id style->grouplabel.shadow = 3; style->grouplabel.shadx = 0; style->grouplabel.shady = -1; - style->grouplabel.shadowalpha = 0.25f; + style->grouplabel.shadowalpha = 0.5f; + style->grouplabel.shadowcolor = 0.0f; style->widgetlabel.uifont_id = uifont_id; style->widgetlabel.points = 11; @@ -114,13 +115,16 @@ static uiStyle *ui_style_new(ListBase *styles, const char *name, short uifont_id style->widgetlabel.shadow = 3; style->widgetlabel.shadx = 0; style->widgetlabel.shady = -1; - style->widgetlabel.shadowalpha = 0.15f; - style->widgetlabel.shadowcolor = 1.0f; + style->widgetlabel.shadowalpha = 0.5f; + style->widgetlabel.shadowcolor = 0.0f; style->widget.uifont_id = uifont_id; style->widget.points = 11; style->widget.kerning = 1; - style->widget.shadowalpha = 0.25f; + style->widget.shadow = 1; + style->widget.shady = -1; + style->widget.shadowalpha = 0.5f; + style->widget.shadowcolor = 0.0f; style->columnspace = 8; style->templatespace = 5; |