[gedit] open-document-selector: fix path label color/font
- From: Sebastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] open-document-selector: fix path label color/font
- Date: Sat, 13 Sep 2014 10:28:46 +0000 (UTC)
commit a09c8c4178d4bd452df578f3b57f4d9ac1a4d618
Author: Sebastien Lafargue <slafargue gnome org>
Date: Sat Sep 13 11:50:50 2014 +0200
open-document-selector: fix path label color/font
When selected, the path label is barely visible,
we change its default color to dim-label class
and font to smaller.
gedit/gedit-open-document-selector.c | 1 +
gedit/resources/css/gedit.adwaita.css | 7 +++++--
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-open-document-selector.c b/gedit/gedit-open-document-selector.c
index fdd30e2..884bde1 100644
--- a/gedit/gedit-open-document-selector.c
+++ b/gedit/gedit-open-document-selector.c
@@ -89,6 +89,7 @@ create_row_layout (GeditOpenDocumentSelector *open_document_selector,
context = gtk_widget_get_style_context (GTK_WIDGET (path_label));
gtk_style_context_add_class (context, "path-label");
+ gtk_style_context_add_class (context, "dim-label");
gtk_label_set_ellipsize (GTK_LABEL (path_label), PANGO_ELLIPSIZE_START);
gtk_widget_set_halign (path_label, GTK_ALIGN_START);
diff --git a/gedit/resources/css/gedit.adwaita.css b/gedit/resources/css/gedit.adwaita.css
index 6d1d083..d7d8862 100644
--- a/gedit/resources/css/gedit.adwaita.css
+++ b/gedit/resources/css/gedit.adwaita.css
@@ -17,8 +17,11 @@ GeditWindow .pane-separator:hover {
}
.open-document-selector-listbox-row .path-label {
- font-size: 80%;
- color: @insensitive_fg_color;
+ font-size: smaller;
+}
+
+.open-document-selector-listbox-row:selected .path-label {
+ font-size: smaller;
}
.gedit-document-panel {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]