[nautilus/wip/neilh/toolbar-reorg: 8/16] toolbar-view-menu: small tweaks to the appearance of the Sort heading
- From: Neil Herald <neilh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/neilh/toolbar-reorg: 8/16] toolbar-view-menu: small tweaks to the appearance of the Sort heading
- Date: Wed, 22 Jun 2016 23:04:38 +0000 (UTC)
commit b18989c2505cd072c40e931c666ba6ea9f1dab63
Author: Neil Herald <neil herald gmail com>
Date: Sun May 8 19:04:51 2016 +0100
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
src/resources/css/nautilus.css | 6 ++++++
src/resources/ui/nautilus-toolbar-view-menu.ui | 9 ++++-----
2 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/src/resources/css/nautilus.css b/src/resources/css/nautilus.css
index 1bc8343..16706eb 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 0442f81..f56d547 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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]