diff options
author | Jordan Petridis <jpetridis@gnome.org> | 2018-12-14 19:12:13 +0200 |
---|---|---|
committer | Carlos Soriano <csoriano1618+gnome@gmail.com> | 2019-01-24 09:46:09 +0000 |
commit | 62424213672806d8f9e5165614941f9e0e530494 (patch) | |
tree | b0e23be3b8272dd9b25f0451ad2eebde7b610ce0 | |
parent | 51340bc9dd29836af978df182421db349f7255f7 (diff) | |
download | nautilus-62424213672806d8f9e5165614941f9e0e530494.tar.gz |
nautilus-toolbar.ui: Improve the alignment with the HighContrast theme
While adwaita takes care of centering the buttons and alignment,
HighContrast doesn't and everything is misaligned and differently
sized making the toolbar look horribly broken.
This patch sets valignment for the affected widgets to center
in order to fix that. It should not have any effect with to the
current version of adwaita.
-rw-r--r-- | src/resources/ui/nautilus-toolbar.ui | 100 |
1 files changed, 56 insertions, 44 deletions
diff --git a/src/resources/ui/nautilus-toolbar.ui b/src/resources/ui/nautilus-toolbar.ui index e5b8b4771..3ba4e949a 100644 --- a/src/resources/ui/nautilus-toolbar.ui +++ b/src/resources/ui/nautilus-toolbar.ui @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.22.1 --> +<!-- Generated with glade 3.22.0 --> <interface> <requires lib="gtk+" version="3.22"/> <object class="GtkPopoverMenu" id="app_menu"> @@ -276,28 +276,20 @@ <property name="visible">True</property> <property name="can_focus">False</property> <property name="show_close_button">True</property> - <child> - <object class="GtkBox" id="navigation_box"> + <child type="title"> + <object class="GtkBox" id="header_toolbar"> + <property name="width_request">270</property> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="spacing">6</property> <child> - <object class="GtkButton" id="back_button"> + <object class="GtkBox" id="toolbar_switcher_container"> <property name="visible">True</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="tooltip_text" translatable="yes">Go back</property> - <property name="action_name">win.back</property> + <property name="can_focus">False</property> + <property name="valign">center</property> <child> - <object class="GtkImage" id="back_icon"> - <property name="visible">True</property> - <property name="can_focus">False</property> - <property name="icon_name">go-previous-symbolic</property> - <property name="icon_size">1</property> - </object> + <placeholder/> </child> - <style> - <class name="image-button"/> - </style> </object> <packing> <property name="expand">False</property> @@ -306,17 +298,19 @@ </packing> </child> <child> - <object class="GtkButton" id="forward_button"> + <object class="GtkToggleButton" id="search_button"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">False</property> - <property name="tooltip_text" translatable="yes">Go forward</property> - <property name="action_name">win.forward</property> + <property name="tooltip_text" translatable="yes">Search</property> + <property name="halign">center</property> + <property name="valign">center</property> + <property name="action_name">slot.search-visible</property> <child> - <object class="GtkImage" id="forward_icon"> + <object class="GtkImage" id="search_icon"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="icon_name">go-next-symbolic</property> + <property name="icon_name">edit-find-symbolic</property> <property name="icon_size">1</property> </object> </child> @@ -327,29 +321,38 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">1</property> + <property name="position">2</property> </packing> </child> - <style> - <class name="linked"/> - <class name="raised"/> - </style> </object> + <packing> + <property name="pack_type">end</property> + </packing> </child> - <child type="title"> - <object class="GtkBox" id="header_toolbar"> - <property name="width_request">270</property> + <child> + <object class="GtkBox" id="navigation_box"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="halign">center</property> - <property name="spacing">6</property> <child> - <object class="GtkBox" id="toolbar_switcher_container"> + <object class="GtkButton" id="back_button"> <property name="visible">True</property> - <property name="can_focus">False</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="tooltip_text" translatable="yes">Go back</property> + <property name="halign">center</property> + <property name="valign">center</property> + <property name="action_name">win.back</property> <child> - <placeholder/> + <object class="GtkImage" id="back_icon"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="icon_name">go-previous-symbolic</property> + <property name="icon_size">1</property> + </object> </child> + <style> + <class name="image-button"/> + </style> </object> <packing> <property name="expand">False</property> @@ -358,17 +361,19 @@ </packing> </child> <child> - <object class="GtkToggleButton" id="search_button"> + <object class="GtkButton" id="forward_button"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">False</property> - <property name="tooltip_text" translatable="yes">Search</property> - <property name="action_name">slot.search-visible</property> + <property name="tooltip_text" translatable="yes">Go forward</property> + <property name="halign">center</property> + <property name="valign">center</property> + <property name="action_name">win.forward</property> <child> - <object class="GtkImage" id="search_icon"> + <object class="GtkImage" id="forward_icon"> <property name="visible">True</property> <property name="can_focus">False</property> - <property name="icon_name">edit-find-symbolic</property> + <property name="icon_name">go-next-symbolic</property> <property name="icon_size">1</property> </object> </child> @@ -379,13 +384,14 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">2</property> + <property name="position">1</property> </packing> </child> + <style> + <class name="linked"/> + <class name="raised"/> + </style> </object> - <packing> - <property name="pack_type">end</property> - </packing> </child> <child> <object class="GtkBox"> @@ -395,6 +401,8 @@ <object class="GtkRevealer" id="operations_revealer"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="halign">center</property> + <property name="valign">center</property> <property name="transition_type">slide-right</property> <child> <object class="GtkMenuButton" id="operations_button"> @@ -431,6 +439,8 @@ <object class="GtkBox"> <property name="visible">True</property> <property name="can_focus">False</property> + <property name="halign">center</property> + <property name="valign">center</property> <property name="margin_end">6</property> <child> <object class="GtkButton" id="view_toggle_button"> @@ -496,6 +506,8 @@ <property name="visible">True</property> <property name="can_focus">True</property> <property name="receives_default">False</property> + <property name="halign">center</property> + <property name="valign">center</property> <property name="popover">app_menu</property> <child> <object class="GtkImage"> |