summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Herald <neil.herald@gmail.com>2016-05-08 19:04:51 +0100
committerNeil Herald <neil.herald@gmail.com>2016-06-22 23:38:22 +0100
commitb18989c2505cd072c40e931c666ba6ea9f1dab63 (patch)
tree154bfb580401b5e3fe0d123eb332194d3f820e2f
parent06029b1ae9e4b7a220a9c25d772ce0a9729877af (diff)
downloadnautilus-b18989c2505cd072c40e931c666ba6ea9f1dab63.tar.gz
toolbar-view-menu: small tweaks to the appearance of the Sort heading
The "Sort" heading in the toolbar menu doesn't look right; it has less vertical padding than the surrounding menu items, and is indented one pixel more. It also doesn't need to be bold - this commit addresses these issues. https://bugzilla.gnome.org/show_bug.cgi?id=764632
-rw-r--r--src/resources/css/nautilus.css6
-rw-r--r--src/resources/ui/nautilus-toolbar-view-menu.ui9
2 files changed, 10 insertions, 5 deletions
diff --git a/src/resources/css/nautilus.css b/src/resources/css/nautilus.css
index 1bc8343cb..16706ebf9 100644
--- a/src/resources/css/nautilus.css
+++ b/src/resources/css/nautilus.css
@@ -8,3 +8,9 @@
.nautilus-desktop-window notebook > stack {
background: transparent;
}
+
+.nautilus-menu-sort-heading {
+ min-height: 26px;
+ padding-left: 5px;
+ padding-right: 5px;
+}
diff --git a/src/resources/ui/nautilus-toolbar-view-menu.ui b/src/resources/ui/nautilus-toolbar-view-menu.ui
index 0442f81ea..f56d54756 100644
--- a/src/resources/ui/nautilus-toolbar-view-menu.ui
+++ b/src/resources/ui/nautilus-toolbar-view-menu.ui
@@ -204,14 +204,13 @@
</object>
</child>
<child>
- <object class="GtkLabel" id="sort_label">
+ <object class="GtkLabel">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="halign">start</property>
+ <property name="sensitive">False</property>
<property name="label" translatable="yes">Sort</property>
- <property name="margin-start">6</property>
+ <property name="xalign">0</property>
<style>
- <class name="separator"/>
+ <class name="nautilus-menu-sort-heading" />
</style>
</object>
</child>