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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user