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.
This commit is contained in:
António Fernandes 2018-08-07 01:45:10 +01:00 committed by António Fernandes
parent 78456f945f
commit 7632546ffc

View file

@ -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);