Debian Codegraph @

src/ui/app-menus.ui

raw
1 <?xml version="1.0"?>
2 <interface domain="drawing">
3
4 <!-- Menubar -->
5 <menu id="menu-bar">
6 <submenu>
7 <attribute name="label" translatable="yes">File</attribute>
8 <section>
9 <item>
10 <attribute name="label" translatable="yes">Open an image</attribute>
11 <attribute name="action">win.open</attribute>
12 <attribute name="verb-icon">document-open-symbolic</attribute>
13 </item>
14 <submenu>
15 <attribute name="label" translatable="yes">New Image</attribute>
16 <section>
17 <item>
18 <attribute name="action">win.new_tab</attribute>
19 <attribute name="label" translatable="yes">New Blank Image</attribute>
20 <attribute name="verb-icon">document-new-symbolic</attribute>
21 </item>
22 <item>
23 <attribute name="label" translatable="yes">New Image With Custom Size</attribute>
24 <attribute name="action">win.new_tab_custom</attribute>
25 <attribute name="verb-icon">document-new-symbolic</attribute>
26 </item>
27 <item>
28 <attribute name="label" translatable="yes">New Image From Selection</attribute>
29 <attribute name="verb-icon">edit-select-symbolic</attribute>
30 <attribute name="action">win.new_tab_selection</attribute>
31 </item>
32 <item>
33 <attribute name="label" translatable="yes">New Image From Clipboard</attribute>
34 <attribute name="action">win.new_tab_clipboard</attribute>
35 <attribute name="verb-icon">edit-paste-symbolic</attribute>
36 </item>
37 </section>
38 <section>
39 <item>
40 <attribute name="label" translatable="yes">New Window</attribute>
41 <attribute name="action">app.new_window</attribute>
42 <attribute name="verb-icon">document-new-symbolic</attribute>
43 </item>
44 </section>
45 </submenu>
46 </section>
47 <section>
48 <item>
49 <attribute name="label" translatable="yes">Reload file</attribute>
50 <attribute name="action">win.reload_file</attribute>
51 <attribute name="verb-icon">view-refresh-symbolic</attribute>
52 </item>
53 <item>
54 <attribute name="label" translatable="yes">Image properties</attribute>
55 <attribute name="action">win.properties</attribute>
56 <attribute name="verb-icon">document-properties-symbolic</attribute>
57 </item>
58 <item>
59 <attribute name="label" translatable="yes">Reset canvas</attribute>
60 <attribute name="action">win.reset_canvas</attribute>
61 <attribute name="verb-icon">edit-clear-symbolic</attribute>
62 </item>
63 </section>
64 <section>
65 <item>
66 <attribute name="label" translatable="yes">Save</attribute>
67 <attribute name="action">win.save</attribute>
68 <attribute name="verb-icon">document-save-symbolic</attribute>
69 </item>
70 <item>
71 <attribute name="action">win.save_alphaless</attribute>
72 <attribute name="label" translatable="yes">Save without transparency</attribute>
73 </item>
74 <item>
75 <!-- This "feature" is only visible on April Fools' day, and it -->
76 <!-- will just rickroll the user. -->
77 <attribute name="label" translatable="yes">Prepare as NFT…</attribute>
78 <attribute name="action">app.april-fools</attribute>
79 <attribute name="verb-icon">face-monkey-symbolic</attribute>
80 <attribute name="hidden-when">action-missing</attribute>
81 </item>
82 <item>
83 <attribute name="label" translatable="yes">Save as…</attribute>
84 <attribute name="action">win.save_as</attribute>
85 <attribute name="verb-icon">document-save-as-symbolic</attribute>
86 </item>
87 <item>
88 <attribute name="label" translatable="yes">Export as…</attribute>
89 <attribute name="action">win.export_as</attribute>
90 <attribute name="verb-icon">document-save-as-symbolic</attribute>
91 </item>
92 </section>
93 <section id="share-section">
94 <item>
95 <attribute name="action">win.to_clipboard</attribute>
96 <attribute name="label" translatable="yes">Copy to clipboard</attribute>
97 <attribute name="verb-icon">send-to-symbolic</attribute>
98 </item>
99 <item>
100 <attribute name="label" translatable="yes">Print</attribute>
101 <attribute name="action">win.print</attribute>
102 <attribute name="verb-icon">document-print-symbolic</attribute>
103 </item>
104 </section>
105 <section>
106 <item>
107 <attribute name="label" translatable="yes">Close Image</attribute>
108 <attribute name="action">win.close_tab</attribute>
109 <attribute name="verb-icon">window-close-symbolic</attribute>
110 </item>
111 <item>
112 <attribute name="label" translatable="yes">Close Window</attribute>
113 <attribute name="action">win.close</attribute>
114 <attribute name="verb-icon">application-exit-symbolic</attribute>
115 </item>
116 <item>
117 <attribute name="label" translatable="yes">Quit all windows</attribute>
118 <attribute name="action">app.quit</attribute>
119 <attribute name="verb-icon">application-exit-symbolic</attribute>
120 </item>
121 </section>
122 </submenu>
123
124 <submenu>
125 <attribute name="label" translatable="yes">Edit</attribute>
126 <section>
127 <item>
128 <attribute name="label" translatable="yes">Undo</attribute>
129 <attribute name="action">win.undo</attribute>
130 <attribute name="verb-icon">edit-undo-symbolic</attribute>
131 </item>
132 <item>
133 <attribute name="label" translatable="yes">Redo</attribute>
134 <attribute name="action">win.redo</attribute>
135 <attribute name="verb-icon">edit-redo-symbolic</attribute>
136 </item>
137 <item>
138 <attribute name="label" translatable="yes">Rebuild from history</attribute>
139 <attribute name="action">win.rebuild_from_histo</attribute>
140 <attribute name="hidden-when">action-missing</attribute>
141 <attribute name="verb-icon">view-refresh-symbolic</attribute>
142 </item>
143 </section>
144 <section>
145 <item>
146 <attribute name="label" translatable="yes">Select all</attribute>
147 <attribute name="action">win.select_all</attribute>
148 <attribute name="verb-icon">edit-select-all-symbolic</attribute>
149 </item>
150 </section>
151 <section>
152 <item>
153 <attribute name="label" translatable="yes">Cut</attribute>
154 <attribute name="action">win.selection_cut</attribute>
155 <attribute name="verb-icon">edit-cut-symbolic</attribute>
156 </item>
157 <item>
158 <attribute name="label" translatable="yes">Copy</attribute>
159 <attribute name="action">win.selection_copy</attribute>
160 <attribute name="verb-icon">edit-copy-symbolic</attribute>
161 </item>
162 <item>
163 <attribute name="label" translatable="yes">Delete</attribute>
164 <attribute name="action">win.selection_delete</attribute>
165 <attribute name="verb-icon">edit-delete-symbolic</attribute>
166 </item>
167 </section>
168 <section>
169 <item>
170 <attribute name="label" translatable="yes">Paste</attribute>
171 <attribute name="action">win.paste</attribute>
172 <attribute name="verb-icon">edit-paste-symbolic</attribute>
173 </item>
174 <item>
175 <attribute name="label" translatable="yes">Import</attribute>
176 <attribute name="action">win.import</attribute>
177 <attribute name="verb-icon">insert-image-symbolic</attribute>
178 </item>
179 </section>
180 <section>
181 <item>
182 <attribute name="label" translatable="yes">Preferences</attribute>
183 <attribute name="action">app.settings</attribute>
184 <attribute name="verb-icon">preferences-system-symbolic</attribute>
185 </item>
186 </section>
187 </submenu>
188
189 <submenu>
190 <attribute name="label" translatable="yes">View</attribute>
191 <section>
192 <item>
193 <attribute name="label" translatable="yes">Preview</attribute>
194 <attribute name="action">win.toggle_preview</attribute>
195 <attribute name="verb-icon">zoom-fit-best-symbolic</attribute>
196 </item>
197 <submenu>
198 <attribute name="label" translatable="yes">Zoom</attribute>
199 <section>
200 <item>
201 <attribute name="label" translatable="yes">Optimal Zoom</attribute>
202 <attribute name="action">win.zoom_opti</attribute>
203 <attribute name="verb-icon">zoom-fit-best-symbolic</attribute>
204 </item>
205 </section>
206 <section>
207 <item>
208 <attribute name="label" translatable="yes">Zoom Out</attribute>
209 <attribute name="action">win.zoom_out</attribute>
210 <attribute name="verb-icon">zoom-out-symbolic</attribute>
211 </item>
212 <item>
213 <attribute name="label" translatable="yes">Original Zoom</attribute>
214 <attribute name="action">win.zoom_100</attribute>
215 <attribute name="verb-icon">zoom-original-symbolic</attribute>
216 </item>
217 <item>
218 <attribute name="label" translatable="yes">Zoom In</attribute>
219 <attribute name="action">win.zoom_in</attribute>
220 <attribute name="verb-icon">zoom-in-symbolic</attribute>
221 </item>
222 </section>
223 </submenu>
224 <submenu>
225 <!-- Context: this submenu is about moving the view to the -->
226 <!-- left/right/top/bottom -->
227 <attribute name="label" translatable="yes">Position</attribute>
228 <section>
229 <item>
230 <attribute name="label" translatable="yes">Go Left</attribute>
231 <attribute name="action">win.go_left</attribute>
232 <attribute name="verb-icon">pan-start-symbolic</attribute>
233 </item>
234 <item>
235 <attribute name="label" translatable="yes">Go Up</attribute>
236 <attribute name="action">win.go_up</attribute>
237 <attribute name="verb-icon">pan-up-symbolic</attribute>
238 </item>
239 <item>
240 <attribute name="label" translatable="yes">Go Down</attribute>
241 <attribute name="action">win.go_down</attribute>
242 <attribute name="verb-icon">pan-down-symbolic</attribute>
243 </item>
244 <item>
245 <attribute name="label" translatable="yes">Go Right</attribute>
246 <attribute name="action">win.go_right</attribute>
247 <attribute name="verb-icon">pan-end-symbolic</attribute>
248 </item>
249 </section>
250 <section>
251 <item>
252 <!-- Context: this action scrolls to the left end of the -->
253 <!-- canvas. The "go left" action only goes a few centimeters -->
254 <!-- to the left, but this one goes all the way left. -->
255 <attribute name="label" translatable="yes">Go to the left end</attribute>
256 <attribute name="action">win.go_first</attribute>
257 <attribute name="verb-icon">go-first-symbolic</attribute>
258 </item>
259 <item>
260 <!-- Context: this action scrolls to the top of the canvas-->
261 <!-- The "go up" action only goes a few centimeters up, but -->
262 <!-- this one goes all the way to the top. -->
263 <attribute name="label" translatable="yes">Go to the top</attribute>
264 <attribute name="action">win.go_top</attribute>
265 <attribute name="verb-icon">go-top-symbolic</attribute>
266 </item>
267 <item>
268 <!-- Context: this action scrolls to the bottom of the canvas-->
269 <!-- The "go down" action only goes a few centimeters down, -->
270 <!-- but this one goes all the way to the bottom. -->
271 <attribute name="label" translatable="yes">Go to the bottom</attribute>
272 <attribute name="action">win.go_bottom</attribute>
273 <attribute name="verb-icon">go-bottom-symbolic</attribute>
274 </item>
275 <item>
276 <!-- Context: this action scrolls to the right end of the -->
277 <!-- canvas. The "go right" action only goes a few centimeters -->
278 <!-- to the right, but this one goes all the way right. -->
279 <attribute name="label" translatable="yes">Go to the right end</attribute>
280 <attribute name="action">win.go_last</attribute>
281 <attribute name="verb-icon">go-last-symbolic</attribute>
282 </item>
283 </section>
284 </submenu>
285 </section>
286 <section id="view-tabs-section">
287 <!-- list of tabs -->
288 </section>
289 <section>
290 <item>
291 <attribute name="label" translatable="yes">Tab at the left</attribute>
292 <attribute name="action">win.tab_left</attribute>
293 </item>
294 <item>
295 <attribute name="label" translatable="yes">Tab at the right</attribute>
296 <attribute name="action">win.tab_right</attribute>
297 </item>
298 </section>
299 <section>
300 <item>
301 <attribute name="label" translatable="yes">Refresh</attribute>
302 <attribute name="action">win.restore_pixbuf</attribute>
303 <attribute name="hidden-when">action-missing</attribute>
304 <attribute name="verb-icon">view-refresh-symbolic</attribute>
305 </item>
306 <item>
307 <!-- Label shown only in developer mode -->
308 <attribute name="label" translatable="yes">Track framerate</attribute>
309 <attribute name="action">win.track_framerate</attribute>
310 <attribute name="hidden-when">action-missing</attribute>
311 </item>
312 </section>
313 <section>
314 <item>
315 <attribute name="label" translatable="yes">Dark theme variant</attribute>
316 <attribute name="action">win.dark-variant</attribute>
317 <attribute name="verb-icon">night-light-symbolic</attribute>
318 </item>
319 <item>
320 <attribute name="label" translatable="yes">Show the menu-bar</attribute>
321 <attribute name="action">win.show-menubar</attribute>
322 </item>
323 <item>
324 <attribute name="label" translatable="yes">Hide toolbars</attribute>
325 <attribute name="action">win.hide_controls</attribute>
326 </item>
327 <item>
328 <attribute name="label" translatable="yes">Fullscreen</attribute>
329 <attribute name="action">win.fullscreen</attribute>
330 <attribute name="verb-icon">view-fullscreen-symbolic</attribute>
331 </item>
332 </section>
333 </submenu>
334
335 <submenu>
336 <attribute name="label" translatable="yes">Colors</attribute>
337 <section>
338 <item>
339 <attribute name="label" translatable="yes">Edit Main Color…</attribute>
340 <attribute name="action">win.main_color</attribute>
341 </item>
342 <item>
343 <attribute name="label" translatable="yes">Edit Secondary Color…</attribute>
344 <attribute name="action">win.secondary_color</attribute>
345 </item>
346 </section>
347 <section>
348 <item>
349 <attribute name="label" translatable="yes">Use color editor by default</attribute>
350 <attribute name="action">app.use_editor</attribute>
351 </item>
352 </section>
353 <section>
354 <item>
355 <attribute name="label" translatable="yes">Exchange colors</attribute>
356 <attribute name="action">win.exchange_color</attribute>
357 <attribute name="verb-icon">exchange-colors-symbolic</attribute>
358 </item>
359 </section>
360 <section>
361 <attribute name="label" translatable="yes">Color application mode</attribute>
362 <item>
363 <attribute name="label" translatable="yes">Normal</attribute>
364 <attribute name="action">win.cairo_operator</attribute>
365 <attribute name="target">over</attribute>
366 </item>
367 <submenu>
368 <attribute name="label" translatable="yes">Highlight</attribute>
369 <item>
370 <attribute name="label" translatable="yes">Dark text on light background</attribute>
371 <attribute name="action">win.cairo_operator</attribute>
372 <attribute name="target">multiply</attribute>
373 </item>
374 <item>
375 <attribute name="label" translatable="yes">Light text on dark background</attribute>
376 <attribute name="action">win.cairo_operator</attribute>
377 <attribute name="target">screen</attribute>
378 </item>
379 </submenu>
380 <submenu>
381 <attribute name="label" translatable="yes">HSL modes</attribute>
382 <item>
383 <attribute name="label" translatable="yes">Hue only</attribute>
384 <attribute name="action">win.cairo_operator</attribute>
385 <attribute name="target">hsl-hue</attribute>
386 </item>
387 <item>
388 <attribute name="label" translatable="yes">Saturation only</attribute>
389 <attribute name="action">win.cairo_operator</attribute>
390 <attribute name="target">hsl-saturation</attribute>
391 </item>
392 <item>
393 <attribute name="label" translatable="yes">Hue and saturation</attribute>
394 <attribute name="action">win.cairo_operator</attribute>
395 <attribute name="target">hsl-color</attribute>
396 </item>
397 <item>
398 <attribute name="label" translatable="yes">Luminosity only</attribute>
399 <attribute name="action">win.cairo_operator</attribute>
400 <attribute name="target">hsl-luminosity</attribute>
401 </item>
402 </submenu>
403 <submenu>
404 <attribute name="label" translatable="yes">Other modes</attribute>
405 <item>
406 <attribute name="label" translatable="yes">Raw source color</attribute>
407 <attribute name="action">win.cairo_operator</attribute>
408 <attribute name="target">source</attribute>
409 </item>
410 <item>
411 <attribute name="label" translatable="yes">Difference</attribute>
412 <attribute name="action">win.cairo_operator</attribute>
413 <attribute name="target">difference</attribute>
414 </item>
415 </submenu>
416 </section>
417 <section>
418 <attribute name="label" translatable="yes">Don't use the colors but…</attribute>
419 <item>
420 <attribute name="label" translatable="yes">Erase</attribute>
421 <attribute name="action">win.cairo_operator</attribute>
422 <attribute name="target">clear</attribute>
423 </item>
424 </section>
425 </submenu>
426
427 <submenu id="tools-menu">
428 <attribute name="label" translatable="yes">Tools</attribute>
429 <section>
430 <item>
431 <attribute name="label" translatable="yes">Previous tool</attribute>
432 <attribute name="action">win.back_to_previous</attribute>
433 <attribute name="verb-icon">go-previous-symbolic</attribute>
434 </item>
435 </section>
436 <section>
437 <submenu>
438 <attribute name="label" translatable="yes">Active tool</attribute>
439 <section>
440 <!-- selection -->
441 </section>
442 <section>
443 <!-- classic -->
444 </section>
445 <section>
446 <!-- transform -->
447 </section>
448 </submenu>
449 </section>
450 <section>
451 <item>
452 <attribute name="label" translatable="yes">Show tools names</attribute>
453 <attribute name="action">win.show_labels</attribute>
454 </item>
455 </section>
456 <section>
457 <item>
458 <attribute name="label" translatable="yes">Bigger width</attribute>
459 <attribute name="action">win.size_more</attribute>
460 </item>
461 <item>
462 <attribute name="label" translatable="yes">Smaller width</attribute>
463 <attribute name="action">win.size_less</attribute>
464 </item>
465 </section>
466 <section>
467 <item>
468 <attribute name="label" translatable="yes">Troubleshoot selection</attribute>
469 <attribute name="action">win.get_values</attribute>
470 <attribute name="hidden-when">action-missing</attribute>
471 </item>
472 </section>
473 <section>
474 <item>
475 <attribute name="label" translatable="yes">Cancel transformation</attribute>
476 <attribute name="action">win.cancel_transform</attribute>
477 </item>
478 <item>
479 <attribute name="label" translatable="yes">Apply transformation</attribute>
480 <attribute name="action">win.apply_transform</attribute>
481 <attribute name="verb-icon">emblem-ok-symbolic</attribute>
482 </item>
483 </section>
484 </submenu>
485
486 <submenu>
487 <attribute name="label" translatable="yes">Options</attribute>
488 </submenu>
489
490 <submenu>
491 <attribute name="label" translatable="yes">Help</attribute>
492 <section>
493 <item>
494 <attribute name="label" translatable="yes">Shortcuts</attribute>
495 <attribute name="action">app.shortcuts</attribute>
496 <attribute name="verb-icon">input-keyboard-symbolic</attribute>
497 </item>
498 </section>
499 <section>
500 <item>
501 <attribute name="label" translatable="yes">Report a bug</attribute>
502 <attribute name="action">app.report-issue</attribute>
503 <attribute name="verb-icon">dialog-error-symbolic</attribute>
504 </item>
505 </section>
506 <section>
507 <item>
508 <!-- Context: open the index of all help pages -->
509 <attribute name="label" translatable="yes">Index</attribute>
510 <attribute name="action">app.help</attribute>
511 <attribute name="verb-icon">help-faq-symbolic</attribute>
512 </item>
513 <submenu>
514 <!-- Context: submenu listing individual help pages -->
515 <attribute name="label" translatable="yes">Individual pages</attribute>
516 <section>
517 <item>
518 <!-- Context: open the help page about general use of the app -->
519 <attribute name="label" translatable="yes">Basic help</attribute>
520 <attribute name="action">app.help_main</attribute>
521 </item>
522 <item>
523 <attribute name="label" translatable="yes">Help about zooming</attribute>
524 <attribute name="action">app.help_zoom</attribute>
525 </item>
526 <item>
527 <attribute name="label" translatable="yes">Help about the full-screen mode</attribute>
528 <attribute name="action">app.help_fullscreen</attribute>
529 </item>
530 </section>
531 <section>
532 <item>
533 <attribute name="label" translatable="yes">Help about classic tools</attribute>
534 <attribute name="action">app.help_tools</attribute>
535 </item>
536 <item>
537 <attribute name="label" translatable="yes">Help about colors</attribute>
538 <attribute name="action">app.help_colors</attribute>
539 </item>
540 <item>
541 <!-- Context: open the help page about transformation tools (crop, -->
542 <!-- scale, rotate, filters, ... -->
543 <attribute name="label" translatable="yes">Help about transformation tools</attribute>
544 <attribute name="action">app.help_transform</attribute>
545 </item>
546 <item>
547 <attribute name="label" translatable="yes">Help about selection</attribute>
548 <attribute name="action">app.help_selection</attribute>
549 </item>
550 </section>
551 </submenu>
552 <item>
553 <attribute name="label" translatable="yes">What's new</attribute>
554 <attribute name="action">app.help_whats_new</attribute>
555 <attribute name="verb-icon">document-open-recent-symbolic</attribute>
556 </item>
557 </section>
558 <section>
559 <item>
560 <attribute name="label" translatable="yes">About Drawing</attribute>
561 <attribute name="action">app.about</attribute>
562 <attribute name="verb-icon">help-about-symbolic</attribute>
563 </item>
564 </section>
565 </submenu>
566 </menu>
567
568 </interface>
569