summaryrefslogtreecommitdiff
path: root/src/nautilus-pathbar.c
diff options
context:
space:
mode:
authorAntónio Fernandes <antoniof@gnome.org>2018-08-07 01:45:10 +0100
committerAntónio Fernandes <antoniojpfernandes@gmail.com>2018-08-09 19:07:28 +0000
commit7632546ffce2f50493ca8ad92ece71f2c6814a87 (patch)
tree69a40992d6a894f336d0a049b19203f297b66cfc /src/nautilus-pathbar.c
parent78456f945fead35e94493159e32dee550ff53133 (diff)
downloadnautilus-7632546ffce2f50493ca8ad92ece71f2c6814a87.tar.gz
pathbar: Dim separator slashes
Separator slash labels have the same color and opacity as folder name labels. This makes the path look too heavy. Instead, set the "dim-label" style class. This also improves their role as separators, by giving more focus to the folder's names.
Diffstat (limited to 'src/nautilus-pathbar.c')
-rw-r--r--src/nautilus-pathbar.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nautilus-pathbar.c b/src/nautilus-pathbar.c
index a10674984..269360f73 100644
--- a/src/nautilus-pathbar.c
+++ b/src/nautilus-pathbar.c
@@ -1633,12 +1633,16 @@ make_button_data (NautilusPathBar *self,
/* Fall through */
default:
{
+ GtkWidget *separator_label;
+
+ separator_label = gtk_label_new (G_DIR_SEPARATOR_S);
+ gtk_style_context_add_class (gtk_widget_get_style_context (separator_label), "dim-label");
button_data->label = gtk_label_new (NULL);
child = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
button_data->disclosure_arrow = gtk_image_new_from_icon_name ("pan-down-symbolic",
GTK_ICON_SIZE_MENU);
button_data->container = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
- gtk_box_pack_start (GTK_BOX (button_data->container), gtk_label_new (G_DIR_SEPARATOR_S), FALSE, FALSE, 0);
+ gtk_box_pack_start (GTK_BOX (button_data->container), separator_label, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (button_data->container), button_data->button, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (child), button_data->label, FALSE, FALSE, 0);