Add hamburger menu to sidebar header, move Add Project and Import buttons into it
This commit is contained in:
parent
28c06463cf
commit
2c432a1a37
@ -53,24 +53,47 @@
|
|||||||
<property name="side">start</property>
|
<property name="side">start</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child type="end">
|
<child type="start">
|
||||||
<object class="GtkButton" id="add_project_button">
|
<object class="GtkMenuButton" id="sidebar_hamburger_button">
|
||||||
<property name="icon-name">list-add-symbolic</property>
|
<property name="icon-name">open-menu-symbolic</property>
|
||||||
<property name="tooltip-text">Add Project</property>
|
<property name="tooltip-text">Menu</property>
|
||||||
<signal name="clicked" handler="on_add_project_clicked"/>
|
|
||||||
<style>
|
|
||||||
<class name="flat"/>
|
|
||||||
</style>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
<child type="end">
|
|
||||||
<object class="GtkMenuButton" id="import_menu_button">
|
|
||||||
<property name="icon-name">papyrus-vertical-symbolic</property>
|
|
||||||
<property name="tooltip-text">Import</property>
|
|
||||||
<property name="menu-model">import_menu</property>
|
|
||||||
<style>
|
<style>
|
||||||
<class name="flat"/>
|
<class name="flat"/>
|
||||||
</style>
|
</style>
|
||||||
|
<property name="popover">
|
||||||
|
<object class="GtkPopover">
|
||||||
|
<property name="child">
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">2</property>
|
||||||
|
<property name="margin-top">4</property>
|
||||||
|
<property name="margin-bottom">4</property>
|
||||||
|
<property name="margin-start">4</property>
|
||||||
|
<property name="margin-end">4</property>
|
||||||
|
<child>
|
||||||
|
<object class="GtkButton" id="add_project_button">
|
||||||
|
<property name="label">Add Project</property>
|
||||||
|
<property name="tooltip-text">Add Project</property>
|
||||||
|
<signal name="clicked" handler="on_add_project_clicked"/>
|
||||||
|
<style>
|
||||||
|
<class name="flat"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkMenuButton" id="import_menu_button">
|
||||||
|
<property name="label">Import</property>
|
||||||
|
<property name="tooltip-text">Import</property>
|
||||||
|
<property name="menu-model">import_menu</property>
|
||||||
|
<style>
|
||||||
|
<class name="flat"/>
|
||||||
|
</style>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</property>
|
||||||
|
</object>
|
||||||
|
</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user