summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2018-03-23 13:09:36 +0100
committerCarlos Soriano <csoriano@gnome.org>2018-04-09 11:56:20 +0200
commit7ec6b2cde609cdc8902e0c85c4db2440f7f0fd9e (patch)
treecf5f6c10d0280c0223592197fd29747ade6005bb
parent45625182ab761ab0926acb32e3f17c5ad8a5a34b (diff)
downloadnautilus-7ec6b2cde609cdc8902e0c85c4db2440f7f0fd9e.tar.gz
actionbar: Make style more compact and light
-rw-r--r--src/resources/css/Adwaita.css7
-rw-r--r--src/resources/ui/nautilus-action-bar.ui77
2 files changed, 25 insertions, 59 deletions
diff --git a/src/resources/css/Adwaita.css b/src/resources/css/Adwaita.css
index f6931e2bb..c9c065541 100644
--- a/src/resources/css/Adwaita.css
+++ b/src/resources/css/Adwaita.css
@@ -218,9 +218,10 @@ actionbar
.border-box
{
- border-width: 0px 0px 0px 1px;
- border-style: solid;
- border-color: @borders;
/* Same as spacing between icons */
padding-left: 6px;
+ background-image: image(mix(@theme_bg_color, @borders, 1.0));
+ background-size: 1px 12px;
+ background-repeat: no-repeat;
+ background-position: 100%
} \ No newline at end of file
diff --git a/src/resources/ui/nautilus-action-bar.ui b/src/resources/ui/nautilus-action-bar.ui
index 818434d53..2a8edcac0 100644
--- a/src/resources/ui/nautilus-action-bar.ui
+++ b/src/resources/ui/nautilus-action-bar.ui
@@ -22,8 +22,9 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="valign">center</property>
- <property name="border-width">6</property>
- <property name="spacing">6</property>
+ <property name="border-width">2</property>
+ <property name="margin-start">6</property>
+ <property name="spacing">0</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
@@ -72,72 +73,30 @@
</packing>
</child>
<child>
- <object class="GtkBox">
+ <object class="GtkMenuButton">
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="spacing">6</property>
- <child>
- <object class="GtkMenuButton">
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="valign">center</property>
- <property name="menu_model">selection-menu</property>
- <child>
- <object class="GtkImage">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="icon_name">view-more-symbolic</property>
- </object>
- </child>
- <style>
- <class name="image-button"/>
- <class name="flat"/>
- </style>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ <property name="valign">center</property>
+ <property name="menu_model">selection-menu</property>
+ <property name="margin-start">6</property>
<child>
- <object class="GtkButton">
+ <object class="GtkImage">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="valign">center</property>
- <property name="tooltip_text" translatable="yes">Create a new folder</property>
- <property name="action_name">view.new-folder</property>
- <child>
- <object class="GtkImage">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="icon_name">folder-new-symbolic</property>
- </object>
- </child>
- <style>
- <class name="image-button"/>
- <class name="flat"/>
- </style>
+ <property name="can_focus">False</property>
+ <property name="icon_name">view-more-symbolic</property>
</object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">end</property>
- <property name="position">1</property>
- </packing>
</child>
<style>
- <class name="border-box"/>
+ <class name="image-button"/>
+ <class name="flat"/>
</style>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
- <property name="position">1</property>
+ <property name="position">0</property>
</packing>
</child>
<child>
@@ -172,6 +131,7 @@
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Open the selected items</property>
<property name="action_name">view.open-with-default-application</property>
+ <property name="margin-end">6</property>
<style>
<class name="suggested-action"/>
<class name="flat"/>
@@ -281,6 +241,7 @@
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Move to trash</property>
<property name="action_name">view.move-to-trash</property>
+ <property name="margin-end">6</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
@@ -299,6 +260,9 @@
<property name="position">3</property>
</packing>
</child>
+ <style>
+ <class name="border-box"/>
+ </style>
</object>
<packing>
<property name="expand">False</property>
@@ -379,6 +343,7 @@
</object>
</child>
</template>
+
<menu id="selection-menu">
<section>
<item>