make node editor tool region background transparent

followup to rB1944bca49a22c18b059d84daf56908b6e15591ad

Differential Revision: https://developer.blender.org/D3999
This commit is contained in:
Philipp Oeser 2018-11-27 10:00:20 +01:00
parent 00d438639d
commit 39dcf6a10a
2 changed files with 4 additions and 1 deletions

@ -760,7 +760,7 @@ const bTheme U_theme_default = {
.tab_inactive = RGBA(0x2b2b2bff),
.tab_back = RGBA(0x232323ff),
.tab_outline = RGBA(0x232323ff),
.button = RGBA(0x424242ff),
.button = RGBA(0x42424200),
.button_title = RGBA(0xffffffff),
.button_text = RGBA(0xe5e5e5ff),
.button_text_hi = RGBA(0xffffffff),

@ -1107,6 +1107,9 @@ bool ED_region_is_overlap(int spacetype, int regiontype)
return 1;
}
if (U.uiflag2 & USER_REGION_OVERLAP) {
if (spacetype == SPACE_NODE && regiontype == RGN_TYPE_TOOLS) {
return 1;
}
if (ELEM(spacetype, SPACE_VIEW3D, SPACE_SEQ, SPACE_IMAGE)) {
if (ELEM(regiontype, RGN_TYPE_TOOLS, RGN_TYPE_UI, RGN_TYPE_TOOL_PROPS))
return 1;