diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-11 03:56:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-11 03:56:08 +0300 |
commit | 5bb11cfde2526a849e0b2de791f99293abf7615b (patch) | |
tree | a86d9343b3131c200cf94a7d3b9e17b21e842309 /source/blender/editors/interface/interface.c | |
parent | 76a4042c23f7bb45999a2aa3209a3aaf853ff36c (diff) |
UI: split theme draw style into separate field
Was using UI_BLOCK_LOOP to control draw style,
this meant we couldn't use popup theme colors for cases
where it the interface has the same purpose as a popup but happens
not to use this flag.
Diffstat (limited to 'source/blender/editors/interface/interface.c')
-rw-r--r-- | source/blender/editors/interface/interface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index a0ea5bbfe19..2e4cab5ec24 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -2879,6 +2879,11 @@ void UI_block_emboss_set(uiBlock *block, char dt) block->dt = dt; } +void UI_block_theme_style_set(uiBlock *block, char theme_style) +{ + block->theme_style = theme_style; +} + /** * \param but: Button to update. * \param validate: When set, this function may change the button value. |