Hello,
I have uploaded a small patch which improves the appearance of the
new progress bar. The patch tracker link is
http://sourceforge.net/tracker/index.php?func=detail&aid=1104607&group_id=4467&atid=304467
The patch is appended below, also.
In a nutshell, it draws a one-pixel black border underneath
any arrows, which makes them show up more clearly.
Regards,
Dave
*** src/ui/gtk/visual_progress.c.orig Mon Jan 17 01:26:28 2005
--- src/ui/gtk/visual_progress.c Mon Jan 17 02:30:10 2005
***************
*** 197,208 ****
s_at = (gfloat) at * v->context->widget->allocation.width /
v->file_size;
! gdk_gc_set_foreground(v->context->gc, &arrow);
for (i = VP_ARROW_HEIGHT + 1; i-- > 0; /* empty */) {
gdk_draw_line(v->context->drawable, v->context->gc,
s_at - i, VP_ARROW_HEIGHT - i,
s_at + i, VP_ARROW_HEIGHT - i);
}
}
/**
--- 197,218 ----
s_at = (gfloat) at * v->context->widget->allocation.width /
v->file_size;
! /* Draw a black triangle followed by one of the desired color.
! * End result - black border making the arrow easier to see.
! */
! gdk_gc_set_foreground(v->context->gc, &black);
for (i = VP_ARROW_HEIGHT + 1; i-- > 0; /* empty */) {
gdk_draw_line(v->context->drawable, v->context->gc,
s_at - i, VP_ARROW_HEIGHT - i,
s_at + i, VP_ARROW_HEIGHT - i);
}
+
+ gdk_gc_set_foreground(v->context->gc, &arrow);
+ for (i = VP_ARROW_HEIGHT; i-- > 0; /* empty */) {
+ gdk_draw_line(v->context->drawable, v->context->gc,
+ s_at - i, VP_ARROW_HEIGHT - i - 1,
+ s_at + i, VP_ARROW_HEIGHT - i - 1);
+ }
}
/**
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel