Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2009-05-05 06:24:58 +0400
committerMatt Ebb <matt@mke3.net>2009-05-05 06:24:58 +0400
commit08df158672184a5459d517cc8841a66a92a07bce (patch)
treea2fbf1ad050c71345409cd1018d6bba809d25e11 /source/blender/editors/space_file/file_draw.c
parentb753d6fd2da339b0b80888036a1e3787501ebf77 (diff)
* More icon updates, thanks to Jendryzch. That's all the modifiers now, I think!
Diffstat (limited to 'source/blender/editors/space_file/file_draw.c')
-rw-r--r--source/blender/editors/space_file/file_draw.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index b4b1145f429..84e0f264275 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -551,9 +551,9 @@ static void file_draw_fsmenu_category(const bContext *C, ARegion *ar, FSMenuCate
short sx, sy, xpos, ypos;
int bmwidth = ar->v2d.cur.xmax - ar->v2d.cur.xmin - 2*TILE_BORDER_X - ICON_DEFAULT_WIDTH - 4;
int fontsize = gFontsize;
+ int cat_icon;
int i;
-
sx = ar->v2d.cur.xmin + TILE_BORDER_X;
sy = *starty;
@@ -562,6 +562,15 @@ static void file_draw_fsmenu_category(const bContext *C, ARegion *ar, FSMenuCate
sy -= linestep;
+ switch(category) {
+ case FS_CATEGORY_SYSTEM:
+ cat_icon = ICON_DISK_DRIVE; break;
+ case FS_CATEGORY_BOOKMARKS:
+ cat_icon = ICON_BOOKMARKS; break;
+ case FS_CATEGORY_RECENT:
+ cat_icon = ICON_FILE_FOLDER; break;
+ }
+
for (i=0; i< nentries && (sy > ar->v2d.cur.ymin) ;++i) {
char *fname = fsmenu_get_entry(fsmenu, category, i);
@@ -590,7 +599,7 @@ static void file_draw_fsmenu_category(const bContext *C, ARegion *ar, FSMenuCate
xpos = sx;
ypos = sy - (TILE_BORDER_Y * 0.5);
- file_draw_icon(xpos, ypos, ICON_FILE_FOLDER, ICON_DEFAULT_WIDTH, ICON_DEFAULT_WIDTH);
+ file_draw_icon(xpos, ypos, cat_icon, ICON_DEFAULT_WIDTH, ICON_DEFAULT_WIDTH);
xpos += ICON_DEFAULT_WIDTH + 4;
file_draw_string(xpos, ypos, bookmark, bmwidth, fontsize, FILE_SHORTEN_FRONT);
sy -= linestep;