diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-23 00:24:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-23 00:24:11 +0400 |
commit | c0e702694faf176300c095d2121fc87e5268b738 (patch) | |
tree | 8d4ae9e808fea78bc2b3a4af77b85319dfd1d28b /source/blender/editors/interface/resources.c | |
parent | d89c5077f30ea30cec7c2e29e9597d3177281b47 (diff) |
patch [#30620] Wiki Quick Hack: Make Tooltip Text Colour Themeable
from luke frisken (lfrisken), with some edits.
some tooltip colors weren't visible with different backgrounds, now the base tooltip color is used and tinted for python/alert/shortcuts etc. the tint colors are still hard coded.
Diffstat (limited to 'source/blender/editors/interface/resources.c')
-rw-r--r-- | source/blender/editors/interface/resources.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index 7f45a48ddba..448c076a6a1 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -1753,6 +1753,9 @@ void init_userdef_do_versions(void) if (btheme->tui.wcol_tooltip.inner[3] == 0) { btheme->tui.wcol_tooltip = btheme->tui.wcol_menu_back; } + if (btheme->tui.wcol_tooltip.text[0] == 160) { /* hrmf */ + rgba_char_args_set(btheme->tui.wcol_tooltip.text, 255, 255, 255, 255); + } } } |