Re-arrange toolbar buttons by usage frequency

When using an LTR language, people scan user interfaces left-to right
and top to bottom. This means that the most frequently-used controls
should be located at the top left, so people see them first.

This commit uses that principle to re-arrange the toolbar a bit, so that
after the "show/hide sidebar button" (which needs to be the left-most
item to connect it with the left sidebar), the left-most items in the
default toolbar are the zoom and view mode controls. These are
viewing-related controls, and Okular is first and foremost a viewer app.
The controls that let you interact with the document (select stuff,
annotate) are moved over to the right side of the toolbar because they
are used for secondary workflows.

The zoom buttons are also grouped together to connect them in the user's
mind.

Finally, the separator lines are re-added to disconnect the "show/hide
sidebar" button from the now-icons-only zoom buttons.
This commit is contained in:
Nate Graham 2023-02-23 15:17:29 -07:00
parent 5b733fcb73
commit 8c8744f2e3

View File

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!DOCTYPE gui SYSTEM "kpartgui.dtd">
<gui name="okular_part" version="53">
<gui name="okular_part" version="54">
<MenuBar>
<Menu name="file"><text>&amp;File</text>
<Action name="get_new_stuff" group="file_open"/>
@ -32,8 +32,8 @@
<Menu name="view"><text>&amp;View</text>
<Action name="presentation"/>
<Separator/>
<Action name="view_zoom_in"/>
<Action name="view_zoom_out"/>
<Action name="view_zoom_in"/>
<Action name="view_actual_size"/>
<Action name="view_fit_to_width"/>
<Action name="view_fit_to_page"/>
@ -100,16 +100,18 @@
</MenuBar>
<ToolBar name="mainToolBar"><text>Main Toolbar</text>
<Action name="show_leftpanel"/>
<Action name="mouse_drag"/>
<Action name="mouse_selecttools"/>
<Action name="annotation_favorites"/>
<Separator/>
<Action name="view_zoom_in"/>
<Action name="view_zoom_out"/>
<Action name="zoom_to" />
<Action name="view_render_mode"/>
<Spacer/>
<Action name="page_number"/>
<Spacer/>
<Action name="view_zoom_out"/>
<Action name="zoom_to" />
<Action name="view_zoom_in"/>
<Action name="view_render_mode"/>
<Action name="mouse_drag"/>
<Action name="mouse_selecttools"/>
<Action name="annotation_favorites"/>
<Separator/>
<Action name="hamburger_menu"/>
</ToolBar>
<ActionProperties scheme="Default">