diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-26 22:17:33 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-26 22:18:27 +0300 |
commit | 226c757b4400b9b423b691a4309f6daf56f775c7 (patch) | |
tree | 4e2afc3c68686a73864a7868751676af5ca60db8 /source/blender/editors/interface/resources.c | |
parent | 918359269824a081c5e5819c44bc8461f59ebd37 (diff) |
UI: add darker theme color for toolbar items
Diffstat (limited to 'source/blender/editors/interface/resources.c')
-rw-r--r-- | source/blender/editors/interface/resources.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index 1bc834a121c..ade69050622 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -2985,6 +2985,27 @@ void init_userdef_do_versions(void) } } + if (((bTheme *)U.themes.first)->tui.wcol_toolbar_item.text[3] == 0) { + struct uiWidgetColors wcol_toolbar_item = { + .outline = {0x19, 0x19, 0x19, 0xff}, + .inner = {0x46, 0x46, 0x46, 0xff}, + .inner_sel = {0xb4, 0xb4, 0xb4, 0xff}, + .item = {0x19, 0x19, 0x19, 0xff}, + + .text = {0xff, 0xff, 0xff, 0xff}, + .text_sel = {0x33, 0x33, 0x33, 0xff}, + + .shaded = 0, + .shadetop = 0, + .shadedown = 0, + .alpha_check = 0, + .roundness = 0.3f, + }; + for (bTheme *btheme = U.themes.first; btheme; btheme = btheme->next) { + btheme->tui.wcol_toolbar_item = wcol_toolbar_item; + } + } + /** * Include next version bump. */ |