improved the look of highlighting by adding some margin, and tightened

improved the look of highlighting by adding some margin, and tightened
       things up vertically when they're not highlighted
This commit is contained in:
Andy Hertzfeld 2000-05-12 06:37:43 +00:00
parent 5c35d1dea3
commit ecfb1da560
3 changed files with 22 additions and 14 deletions

View file

@ -1,3 +1,9 @@
2000-05-11 Andy Hertzfeld <andy@eazel.com>
* libnautilus-extensions/nautilus-icon-canvas-item.c:
improved the look of the highlighting by adding more margins to the box, and tightened things
up vertically in the non-highlighted case.
2000-05-11 Andy Hertzfeld <andy@eazel.com>
* libnautilus-extensions/nautilus-icon-canvas-item.c:

View file

@ -663,14 +663,15 @@ draw_or_measure_label_text (NautilusIconCanvasItem *item,
gnome_icon_text_info_free (icon_text_info);
}
g_strfreev (pieces);
if (needs_highlight && drawable != NULL)
gdk_gc_set_foreground(gc, &save_gc.foreground);
height_so_far += 2; /* extra slop for nicer highlighting */
if (needs_highlight)
width_so_far += 2; /* account for emboldening */
if (needs_highlight) {
if (drawable != NULL)
gdk_gc_set_foreground(gc, &save_gc.foreground);
height_so_far += 2; /* extra slop for nicer highlighting */
width_so_far += 4; /* account for emboldening, plus extra to make it look nicer */
}
if (drawable != NULL) {
/* Current calculations should match what we measured before drawing.
* This assumes that we will always make a separate call to measure

View file

@ -663,14 +663,15 @@ draw_or_measure_label_text (NautilusIconCanvasItem *item,
gnome_icon_text_info_free (icon_text_info);
}
g_strfreev (pieces);
if (needs_highlight && drawable != NULL)
gdk_gc_set_foreground(gc, &save_gc.foreground);
height_so_far += 2; /* extra slop for nicer highlighting */
if (needs_highlight)
width_so_far += 2; /* account for emboldening */
if (needs_highlight) {
if (drawable != NULL)
gdk_gc_set_foreground(gc, &save_gc.foreground);
height_so_far += 2; /* extra slop for nicer highlighting */
width_so_far += 4; /* account for emboldening, plus extra to make it look nicer */
}
if (drawable != NULL) {
/* Current calculations should match what we measured before drawing.
* This assumes that we will always make a separate call to measure