Minor change to last commit
authorCampbell Barton <ideasman42@gmail.com>
Thu, 16 May 2019 08:20:45 +0000 (18:20 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 16 May 2019 08:20:45 +0000 (18:20 +1000)
Don't show a background for the toolbar.

source/blender/editors/interface/interface.c

index f334d4a..340aa38 100644 (file)
@@ -1689,8 +1689,14 @@ void UI_block_draw(const bContext *C, uiBlock *block)
     bool show_background = ar->alignment != RGN_ALIGN_FLOAT;
     if (show_background) {
       if (block->panel->type && (block->panel->type->flag & PNL_NO_HEADER)) {
-        /* Without a header there is no background except for region overlap. */
-        show_background = ar->overlap != 0;
+        if (ar->regiontype == RGN_TYPE_TOOLS) {
+          /* We never want a background around active tools. */
+          show_background = false;
+        }
+        else {
+          /* Without a header there is no background except for region overlap. */
+          show_background = ar->overlap != 0;
+        }
       }
     }
     ui_draw_aligned_panel(&style, block, &rect, UI_panel_category_is_visible(ar), show_background);