[Bf-blender-cvs] [86c70c5d6d] temp-layers-ui-table: Use table background drawing for collections editor

Julian Eisel noreply at git.blender.org
Thu Feb 9 14:03:49 CET 2017


Commit: 86c70c5d6d75b37a7bede1487cd9da7209b7ab6b
Author: Julian Eisel
Date:   Thu Feb 9 13:58:17 2017 +0100
Branches: temp-layers-ui-table
https://developer.blender.org/rB86c70c5d6d75b37a7bede1487cd9da7209b7ab6b

Use table background drawing for collections editor

===================================================================

M	source/blender/editors/space_collections/collections_draw.c

===================================================================

diff --git a/source/blender/editors/space_collections/collections_draw.c b/source/blender/editors/space_collections/collections_draw.c
index 7be02c304a..f638d01db7 100644
--- a/source/blender/editors/space_collections/collections_draw.c
+++ b/source/blender/editors/space_collections/collections_draw.c
@@ -40,10 +40,17 @@
 
 void collections_draw_table(const struct bContext *C, SpaceCollections *spc, ARegion *ar)
 {
+	uiStyle *style = UI_style_get_dpi();
 	uiBlock *block = UI_block_begin(C, ar, __func__, 0);
+	unsigned char col1[3], col2[3];
+
+	UI_GetThemeColorShade3ubv(TH_BACK, 6, col1);
+	UI_GetThemeColor3ubv(TH_BACK, col2);
 
 	UI_table_max_width_set(spc->table, BLI_rctf_size_x(&ar->v2d.tot));
-	UI_table_draw(spc->table, block, UI_style_get_dpi());
+	UI_table_background_colors_set(spc->table, col1, col2);
+
+	UI_table_draw(spc->table, block, style);
 
 	UI_block_end(C, block);
 	UI_block_draw(C, block);




More information about the Bf-blender-cvs mailing list