diff options
Diffstat (limited to '')
-rw-r--r-- | src/resources/ui/nautilus-window.ui | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/src/resources/ui/nautilus-window.ui b/src/resources/ui/nautilus-window.ui new file mode 100644 index 0000000..d8db7f7 --- /dev/null +++ b/src/resources/ui/nautilus-window.ui @@ -0,0 +1,107 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <requires lib="gtk" version="4.0"/> + <menu id="tab_menu_model"> + <section> + <item> + <attribute name="label" translatable="yes">_New Tab</attribute> + <attribute name="action">win.new-tab</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">Move Tab _Left</attribute> + <attribute name="action">win.tab-move-left</attribute> + </item> + <item> + <attribute name="label" translatable="yes">Move Tab _Right</attribute> + <attribute name="action">win.tab-move-right</attribute> + </item> + </section> + <section> + <item> + <attribute name="label" translatable="yes">_Close Tab</attribute> + <attribute name="action">win.close-current-view</attribute> + </item> + </section> + </menu> + <template class="NautilusWindow" parent="AdwApplicationWindow"> + <property name="show-menubar">False</property> + <property name="title" translatable="yes">_Files</property> + <child> + <object class="AdwToastOverlay" id="toast_overlay"> + <property name="child"> + <object class="GtkBox"> + <property name="orientation">vertical</property> + <child> + <object class="NautilusToolbar" id="toolbar"> + <property name="show-sidebar-button" bind-source="content_flap" bind-property="folded" bind-flags="sync-create"/> + <property name="sidebar-button-active" bind-source="content_flap" bind-property="reveal-flap" bind-flags="bidirectional|sync-create"/> + <property name="show-toolbar-children" bind-source="content_flap" bind-property="folded" bind-flags="sync-create|invert-boolean"/> + <property name="window-slot" bind-source="NautilusWindow" bind-property="active-slot" bind-flags="sync-create"/> + </object> + </child> + <child> + <object class="AdwFlap" id="content_flap"> + <property name="swipe-to-close" bind-source="content_flap" bind-property="folded" bind-flags="sync-create"/> + <child type="flap"> + <object class="NautilusGtkPlacesSidebar" id="places_sidebar"> + <property name="vexpand">True</property> + <property name="show-other-locations">True</property> + <property name="show-starred-location">True</property> + <property name="width-request">240</property> + <style> + <class name="background"/> + </style> + </object> + </child> + <child type="separator"> + <object class="GtkSeparator"/> + </child> + <child> + <object class="GtkBox"> + <property name="orientation">vertical</property> + <property name="width-request">360</property> + <child> + <object class="AdwTabBar"> + <property name="view">tab_view</property> + </object> + </child> + <child> + <object class="AdwTabView" id="tab_view"> + <property name="menu-model">tab_menu_model</property> + </object> + </child> + </object> + </child> + </object> + </child> + <child> + <object class="GtkActionBar"> + <property name="revealed" bind-source="content_flap" bind-property="folded" bind-flags="sync-create"/> + <child type="start"> + <object class="NautilusHistoryControls"> + <property name="window-slot" bind-source="NautilusWindow" bind-property="active-slot" bind-flags="sync-create"/> + </object> + </child> + <child type="end"> + <object class="GtkBox"> + <property name="spacing">6</property> + <child> + <object class="NautilusProgressIndicator"/> + </child> + <child> + <object class="NautilusViewControls"> + <property name="window-slot" bind-source="NautilusWindow" bind-property="active-slot" bind-flags="sync-create"/> + </object> + </child> + </object> + </child> + </object> + </child> + </object> + </property> + </object> + </child> + </template> +</interface> |