diff options
author | Andrea Weikert <elubie@gmx.net> | 2007-09-04 23:07:51 +0400 |
---|---|---|
committer | Andrea Weikert <elubie@gmx.net> | 2007-09-04 23:07:51 +0400 |
commit | 72e8dd452cd2b4d8969c2ecdef4aa1356d498bb5 (patch) | |
tree | 04a502ca177b4606391f659cd2d62b4c260fbfdb /source/blender/src/drawimasel.c | |
parent | 5b55a89bac9081cd7c8d9757c104b0c9c6d38ad9 (diff) |
== imagebrowser ==
- nicer drawing of highlight for bookmarks
- fix slight positioning issue of bookmark highlight
- resetting bookmark highlight when mouse outside bookmark area
- cleaned up define that isn't needed anymore
Diffstat (limited to 'source/blender/src/drawimasel.c')
-rw-r--r-- | source/blender/src/drawimasel.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/src/drawimasel.c b/source/blender/src/drawimasel.c index 00917233109..257c5831813 100644 --- a/source/blender/src/drawimasel.c +++ b/source/blender/src/drawimasel.c @@ -30,12 +30,6 @@ * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ -#ifdef __sgi -#define OLD_IMASEL 1 -#else -#define OLD_IMASEL 0 -#endif - #include <string.h> #ifdef HAVE_CONFIG_H @@ -278,7 +272,15 @@ static void draw_imasel_bookmarks(ScrArea *sa, SpaceImaSel *simasel) } sname = &bookmark[sl]; sw = shorten_string(simasel, sname, bmwidth); + + if (simasel->active_bookmark == i ) { + glEnable(GL_BLEND); + glColor4ub(0, 0, 0, 100); + glDisable(GL_BLEND); + BIF_ThemeColor(TH_HILITE); + uiSetRoundBox(15); + uiRoundBox(simasel->bookmarkrect.xmin + TILE_BORDER_X - 1, sy - linestep*0.25, simasel->bookmarkrect.xmax - TILE_BORDER_X + 1, sy + linestep*0.75, 6); BIF_ThemeColor(TH_TEXT_HI); } else { BIF_ThemeColor(TH_TEXT); |