Consolidate all menu items into sidebar hamburger menu, remove right panel menu button

This commit is contained in:
Pavel Baksy 2026-05-21 19:39:54 +02:00
parent 7107e2df8d
commit d011ee2569

View File

@ -24,6 +24,20 @@
<attribute name="action">win.import-http-file</attribute> <attribute name="action">win.import-http-file</attribute>
</item> </item>
</section> </section>
<section>
<item>
<attribute name="label" translatable="yes">_Preferences</attribute>
<attribute name="action">app.preferences</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
<attribute name="action">app.shortcuts</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About Roster</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu> </menu>
<template class="RosterWindow" parent="AdwApplicationWindow"> <template class="RosterWindow" parent="AdwApplicationWindow">
@ -61,6 +75,7 @@
</child> </child>
<child type="end"> <child type="end">
<object class="GtkMenuButton" id="sidebar_hamburger_button"> <object class="GtkMenuButton" id="sidebar_hamburger_button">
<property name="primary">True</property>
<property name="icon-name">open-menu-symbolic</property> <property name="icon-name">open-menu-symbolic</property>
<property name="tooltip-text">Menu</property> <property name="tooltip-text">Menu</property>
<property name="menu-model">sidebar_menu</property> <property name="menu-model">sidebar_menu</property>
@ -151,25 +166,12 @@
<!-- Right side buttons --> <!-- Right side buttons -->
<child type="end"> <child type="end">
<object class="GtkBox"> <object class="GtkButton" id="new_request_button">
<property name="spacing">6</property> <property name="icon-name">list-add-symbolic</property>
<child> <property name="tooltip-text">New Request (Ctrl+T)</property>
<object class="GtkButton" id="new_request_button"> <style>
<property name="icon-name">list-add-symbolic</property> <class name="flat"/>
<property name="tooltip-text">New Request (Ctrl+T)</property> </style>
<style>
<class name="flat"/>
</style>
</object>
</child>
<child>
<object class="GtkMenuButton">
<property name="primary">True</property>
<property name="icon-name">open-menu-symbolic</property>
<property name="tooltip-text" translatable="yes">Main Menu</property>
<property name="menu-model">primary_menu</property>
</object>
</child>
</object> </object>
</child> </child>
</object> </object>
@ -266,20 +268,4 @@
</child> </child>
</template> </template>
<menu id="primary_menu">
<section>
<item>
<attribute name="label" translatable="yes">_Preferences</attribute>
<attribute name="action">app.preferences</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
<attribute name="action">app.shortcuts</attribute>
</item>
<item>
<attribute name="label" translatable="yes">_About Roster</attribute>
<attribute name="action">app.about</attribute>
</item>
</section>
</menu>
</interface> </interface>