[nautilus/antoniof/hide-path-border-on-small-windows: 8/8] pathbar: Dim separator slashes
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/antoniof/hide-path-border-on-small-windows: 8/8] pathbar: Dim separator slashes
- Date: Thu, 9 Aug 2018 19:09:55 +0000 (UTC)
commit 7632546ffce2f50493ca8ad92ece71f2c6814a87
Author: António Fernandes <antoniof gnome org>
Date: Tue Aug 7 01:45:10 2018 +0100
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.
src/nautilus-pathbar.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]