summaryrefslogtreecommitdiffstats
path: root/src/resources/ui/nautilus-window.ui
blob: d8db7f7cc9ddd8fc6357a0d6a7add393d2713f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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>