diff options
author | M.G. Kishalmi <lmg@kishalmi.net> | 2011-01-09 21:59:35 +0300 |
---|---|---|
committer | M.G. Kishalmi <lmg@kishalmi.net> | 2011-01-09 21:59:35 +0300 |
commit | 84a464ab62e67eb21e12d0c3b0fad061c38d9e4a (patch) | |
tree | 873b6235f7f7c8349ecba0df0c1e864125f6191e /source/blender/editors/interface/interface_panel.c | |
parent | 4a8dd84625c1f88abb09ae853cf32130f5674335 (diff) |
several cosmetic changes to the node-editor
+ changed lines connecting nodes:
they now use a linewidth of 1.5px for the light foreground and 4px for the dark background.
this should fix node-lines not being visible on almost black or all white backdrops.
+ muted nodes now also show a red tinted header if they are hidden (collapsed)
+ both active and selected nodes show a (now properly antialiased) highlighting frame
+ fixed a small error in dropshadow code resulting in a gap at borders
+ fixed a tiny error for the collapsing indicators (triangles) - they were not symmetrical.
Ton will add proper theme colors for the node-editor in the coming days.
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 2b6c18c5635..d819ecd7ec8 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -323,13 +323,14 @@ void uiPanelPop(uiBlock *UNUSED(block)) } /* triangle 'icon' for panel header */ +/* NOTE - this seems to be only used for hiding nodes now */ void ui_draw_tria_icon(float x, float y, char dir) { if(dir=='h') { - ui_draw_anti_tria(x-1, y, x-1, y+11.0, x+9, y+6.25); + ui_draw_anti_tria( x-3,y-5, x-3,y+5, x+7,y ); } else { - ui_draw_anti_tria(x-3, y+10, x+8-1, y+10, x+4.25-2, y); + ui_draw_anti_tria( x-5,y+3, x+5,y+3, x,y-7); } } |