summaryrefslogtreecommitdiffstats
path: root/panels/multitasking/cc-multitasking-panel.ui
blob: 28a5ce0724ad0250cc379dd3c795c9ff09452c15 (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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="CcMultitaskingPanel" parent="CcPanel">
    <child type="content">
      <object class="AdwPreferencesPage">

        <child>
          <object class="AdwPreferencesGroup">
            <property name="title" translatable="yes">General</property>

            <!-- Hot Corner -->
            <child>
              <object class="CcMultitaskingRow">
                <property name="activatable-widget">hot_corner_switch</property>
                <property name="title" translatable="yes">_Hot Corner</property>
                <property name="subtitle" translatable="yes">Touch the top-left corner to open the Activities Overview.</property>
                <property name="use_underline">True</property>
                <child>
                  <object class="GtkSwitch" id="hot_corner_switch">
                    <property name="valign">center</property>
                  </object>
                </child>
                <child type="artwork">
                  <object class="GtkPicture" id="hot_corner_picture">
                    <property name="hexpand">True</property>
                    <property name="halign">center</property>
                    <property name="margin-top">18</property>
                    <property name="margin-bottom">18</property>
                    <property name="margin-start">18</property>
                    <property name="margin-end">18</property>
                    <property name="can-shrink">False</property>
                    <property name="file">resource:///org/gnome/control-center/multitasking/assets/hot-corner.svg</property>
                  </object>
                </child>
              </object>
            </child>

            <!-- Active Screen Edges -->
            <child>
              <object class="CcMultitaskingRow">
                <property name="activatable-widget">active_screen_edges_switch</property>
                <property name="title" translatable="yes">_Active Screen Edges</property>
                <property name="subtitle" translatable="yes">Drag windows against the top, left, and right screen edges to resize them.</property>
                <property name="use_underline">True</property>
                <child>
                  <object class="GtkSwitch" id="active_screen_edges_switch">
                    <property name="valign">center</property>
                  </object>
                </child>
                <child type="artwork">
                  <object class="GtkPicture" id="active_screen_edges_picture">
                    <property name="hexpand">True</property>
                    <property name="halign">center</property>
                    <property name="margin-top">18</property>
                    <property name="margin-bottom">18</property>
                    <property name="margin-start">18</property>
                    <property name="margin-end">18</property>
                    <property name="can-shrink">False</property>
                    <property name="file">resource:///org/gnome/control-center/multitasking/assets/active-screen-edges.svg</property>
                  </object>
                </child>
              </object>
            </child>

          </object>
        </child>

        <child>
          <object class="AdwPreferencesGroup">
            <property name="title" translatable="yes">Workspaces</property>

            <!-- Dynamic Workspaces -->
            <child>
              <object class="CcMultitaskingRow">
                <property name="activatable-widget">dynamic_workspaces_radio</property>
                <property name="title" translatable="yes">_Dynamic workspaces</property>
                <property name="subtitle" translatable="yes">Automatically removes empty workspaces.</property>
                <property name="use_underline">True</property>
                <child type="prefix">
                  <object class="GtkCheckButton" id="dynamic_workspaces_radio">
                    <property name="valign">center</property>
                  </object>
                </child>
              </object>
            </child>

            <!-- Fixed Number of Workspaces -->
            <child>
              <object class="CcMultitaskingRow">
                <property name="activatable-widget">fixed_workspaces_radio</property>
                <property name="title" translatable="yes">_Fixed number of workspaces</property>
                <property name="subtitle" translatable="yes">Specify a number of permanent workspaces.</property>
                <property name="use_underline">True</property>
                <child type="prefix">
                  <object class="GtkCheckButton" id="fixed_workspaces_radio">
                    <property name="valign">center</property>
                    <property name="group">dynamic_workspaces_radio</property>
                  </object>
                </child>
              </object>
            </child>

            <!-- Number of Workspaces -->
            <child>
              <object class="CcMultitaskingRow">
                <property name="sensitive" bind-source="fixed_workspaces_radio" bind-property="active" bind-flags="default|sync-create" />
                <property name="activatable-widget">number_of_workspaces_spin</property>
                <property name="title" translatable="yes">_Number of Workspaces</property>
                <property name="use_underline">True</property>
                <child>
                  <object class="GtkSpinButton" id="number_of_workspaces_spin">
                    <property name="valign">center</property>
                    <property name="adjustment">workspaces_adjustment</property>
                  </object>
                </child>
              </object>
            </child>

          </object>
        </child>

        <child>
          <object class="AdwPreferencesGroup">
            <property name="title" translatable="yes">Multi-Monitor</property>

            <!-- Primary Display -->
            <child>
              <object class="CcMultitaskingRow">
                <property name="activatable-widget">workspaces_primary_display_radio</property>
                <property name="title" translatable="yes">Workspaces on _primary display only</property>
                <property name="use_underline">True</property>
                <child type="prefix">
                  <object class="GtkCheckButton" id="workspaces_primary_display_radio">
                    <property name="valign">center</property>
                  </object>
                </child>
                <child type="artwork">
                  <object class="GtkPicture">
                    <property name="hexpand">True</property>
                    <property name="halign">center</property>
                    <property name="margin-top">18</property>
                    <property name="margin-bottom">18</property>
                    <property name="margin-start">18</property>
                    <property name="margin-end">18</property>
                    <property name="can-shrink">False</property>
                    <property name="file">resource:///org/gnome/control-center/multitasking/assets/workspaces-primary-display.svg</property>
                  </object>
                </child>
              </object>
            </child>

            <!-- Span Displays -->
            <child>
              <object class="CcMultitaskingRow">
                <property name="activatable-widget">workspaces_span_displays_radio</property>
                <property name="title" translatable="yes">Workspaces on all d_isplays</property>
                <property name="use_underline">True</property>
                <child type="prefix">
                  <object class="GtkCheckButton" id="workspaces_span_displays_radio">
                    <property name="valign">center</property>
                    <property name="group">workspaces_primary_display_radio</property>
                  </object>
                </child>
                <child type="artwork">
                  <object class="GtkPicture">
                    <property name="hexpand">True</property>
                    <property name="halign">center</property>
                    <property name="margin-top">18</property>
                    <property name="margin-bottom">18</property>
                    <property name="margin-start">18</property>
                    <property name="margin-end">18</property>
                    <property name="can-shrink">False</property>
                    <property name="file">resource:///org/gnome/control-center/multitasking/assets/workspaces-span-displays.svg</property>
                  </object>
                </child>
              </object>
            </child>

          </object>
        </child>

        <child>
          <object class="AdwPreferencesGroup">
            <property name="title" translatable="yes">Application Switching</property>

            <!-- All Workspaces -->
            <child>
              <object class="CcMultitaskingRow">
                <property name="activatable-widget">all_workspaces_radio</property>
                <property name="title" translatable="yes">Include applications from all _workspaces</property>
                <property name="use_underline">True</property>
                <child type="prefix">
                  <object class="GtkCheckButton" id="all_workspaces_radio">
                    <property name="valign">center</property>
                  </object>
                </child>
              </object>
            </child>

            <!-- Current Workspace -->
            <child>
              <object class="CcMultitaskingRow">
                <property name="activatable-widget">current_workspace_radio</property>
                <property name="title" translatable="yes">Include applications from the _current workspace only</property>
                <property name="use_underline">True</property>
                <child type="prefix">
                  <object class="GtkCheckButton" id="current_workspace_radio">
                    <property name="valign">center</property>
                    <property name="group">all_workspaces_radio</property>
                  </object>
                </child>
              </object>
            </child>

          </object>
        </child>

      </object>
    </child>
  </template>

  <object class="GtkAdjustment" id="workspaces_adjustment">
    <property name="lower">1.0</property>
    <property name="step-increment">1.0</property>
    <property name="value">4.0</property>
    <!-- 36 is the maximum value allowed by Mutter -->
    <property name="upper">36.0</property>
  </object>
</interface>