From 5bb11cfde2526a849e0b2de791f99293abf7615b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 11 Sep 2018 10:56:08 +1000 Subject: 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. --- source/blender/editors/interface/interface.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/editors/interface/interface.c') 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. -- cgit v1.2.3