git-gui: Improve the icons used in the browser display.
Real icons which seem to indicate going up to the parent (an up arrow) and a subdirectory (an open folder). Files are now drawn with the file_mod icon, like a modified file is. This just looks better as it is more consistent with the rest of our UI. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jan 29, 2007 at 02:50 UTC
3eddda98435f67ffb0afc8baf4bfb51ed8160f2c
1 file changed
+26
-18
git-gui.sh
+26
-18
@@ -3115,7 +3115,7 @@ proc read_ls_tree {fd w} {
3115
3116
switch -- $type {
3117
blob {
3118
- set image file_plain
3118
+ set image file_mod
3119
}
3120
tree {
3121
set image file_dir
@@ -3446,23 +3446,31 @@ static unsigned char file_merge_bits[] = {
3446
0xfa, 0x17, 0x02, 0x10, 0xfe, 0x1f};
3447
} -maskdata $filemask
3448
3449
-image create bitmap file_dir -background white -foreground blue -data {
3450
-#define mod_width 14
3451
-#define mod_height 15
3452
-static unsigned char mod_bits[] = {
3453
- 0xfe, 0x01, 0x02, 0x03, 0x7a, 0x05, 0x02, 0x09, 0x7a, 0x1f, 0x02, 0x10,
3454
- 0xfa, 0x17, 0x02, 0x10, 0xfa, 0x17, 0x02, 0x10, 0xfa, 0x17, 0x02, 0x10,
3455
- 0xfa, 0x17, 0x02, 0x10, 0xfe, 0x1f};
3456
-} -maskdata $filemask
3457
-
3458
-image create bitmap file_uplevel -background white -foreground blue -data {
3459
-#define mod_width 14
3460
-#define mod_height 15
3461
-static unsigned char mod_bits[] = {
3462
- 0xfe, 0x01, 0x02, 0x03, 0x7a, 0x05, 0x02, 0x09, 0x7a, 0x1f, 0x02, 0x10,
3463
- 0xfa, 0x17, 0x02, 0x10, 0xfa, 0x17, 0x02, 0x10, 0xfa, 0x17, 0x02, 0x10,
3464
- 0xfa, 0x17, 0x02, 0x10, 0xfe, 0x1f};
3465
-} -maskdata $filemask
3449
+set file_dir_data {
3450
+#define file_width 18
3451
+#define file_height 18
3452
+static unsigned char file_bits[] = {
3453
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf8, 0x03, 0x00,
3454
+ 0x0c, 0x03, 0x00, 0x04, 0xfe, 0x00, 0x06, 0x80, 0x00, 0xff, 0x9f, 0x00,
3455
+ 0x03, 0x98, 0x00, 0x02, 0x90, 0x00, 0x06, 0xb0, 0x00, 0x04, 0xa0, 0x00,
3456
+ 0x0c, 0xe0, 0x00, 0x08, 0xc0, 0x00, 0xf8, 0xff, 0x00, 0x00, 0x00, 0x00,
3457
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
3458
+}
3459
+image create bitmap file_dir -background white -foreground blue \
3460
+ -data $file_dir_data -maskdata $file_dir_data
3461
+unset file_dir_data
3462
+
3463
+set file_uplevel_data {
3464
+#define up_width 15
3465
+#define up_height 15
3466
+static unsigned char up_bits[] = {
3467
+ 0x80, 0x00, 0xc0, 0x01, 0xe0, 0x03, 0xf0, 0x07, 0xf8, 0x0f, 0xfc, 0x1f,
3468
+ 0xfe, 0x3f, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01, 0xc0, 0x01,
3469
+ 0xc0, 0x01, 0xc0, 0x01, 0x00, 0x00};
3470
+}
3471
+image create bitmap file_uplevel -background white -foreground red \
3472
+ -data $file_uplevel_data -maskdata $file_uplevel_data
3473
+unset file_uplevel_data
3474
3475
set ui_index .vpane.files.index.list
3476
set ui_workdir .vpane.files.workdir.list