diff options
author | Andy Hertzfeld <andy@src.gnome.org> | 2000-09-26 00:07:49 +0000 |
---|---|---|
committer | Andy Hertzfeld <andy@src.gnome.org> | 2000-09-26 00:07:49 +0000 |
commit | 38a590615d4d5a5d7ff1c1770d26bce2268db021 (patch) | |
tree | 063937ecb0bd1d9880c685918a8567522dc8fe4a /libnautilus-private/nautilus-icon-canvas-item.c | |
parent | 274f7511c772ebf7b42a3b1b3f2d082454aa9004 (diff) | |
download | nautilus-38a590615d4d5a5d7ff1c1770d26bce2268db021.tar.gz |
tweaked the new, semi-transparent selection highlighting a bit by
tweaked the new, semi-transparent selection highlighting
a bit by lightening the info text color and enlarging
the selection area a little.
Diffstat (limited to 'libnautilus-private/nautilus-icon-canvas-item.c')
-rw-r--r-- | libnautilus-private/nautilus-icon-canvas-item.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libnautilus-private/nautilus-icon-canvas-item.c b/libnautilus-private/nautilus-icon-canvas-item.c index b8f3c3c44..af0f01db1 100644 --- a/libnautilus-private/nautilus-icon-canvas-item.c +++ b/libnautilus-private/nautilus-icon-canvas-item.c @@ -132,7 +132,7 @@ static guint signals[LAST_SIGNAL]; static guint32 highlight_background_color = NAUTILUS_RGBA_COLOR_PACK (0x00, 0x00, 0x00, 0xFF); static guint32 highlight_text_color = NAUTILUS_RGBA_COLOR_PACK (0xFF, 0xFF, 0xFF, 0xFF); -static guint32 highlight_text_info_color = NAUTILUS_RGBA_COLOR_PACK (0xAA, 0xAA, 0xAA, 0xFF); +static guint32 highlight_text_info_color = NAUTILUS_RGBA_COLOR_PACK (0xCC, 0xCC, 0xCC, 0xFF); /* GtkObject */ static void nautilus_icon_canvas_item_initialize_class (NautilusIconCanvasItemClass *class); @@ -1504,6 +1504,7 @@ draw_or_measure_label_text_aa (NautilusIconCanvasItem *item, /* draw the shadow in black */ if (needs_highlight) { + icon_bottom += 2; /* leave some space for selection frame */ nautilus_text_layout_paint (icon_text_layout, destination_pixbuf, text_left + 2, @@ -1545,9 +1546,10 @@ draw_or_measure_label_text_aa (NautilusIconCanvasItem *item, } g_strfreev (pieces); + /* add some extra space for highlighting */ if (needs_highlight) { - height_so_far += 2; /* extra slop for nicer highlighting */ - width_so_far += 4; /* account for emboldening, plus extra to make it look nicer */ + height_so_far += 6; /* extra slop for nicer highlighting */ + width_so_far += 8; /* account for emboldening, plus extra to make it look nicer */ } if (destination_pixbuf != NULL) { |