| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<interface domain="drawing"> |
| 3 |
|
| 4 |
<object class="GtkActionBar" id="bottom-pane"> |
| 5 |
<property name="visible">False</property> |
| 6 |
<property name="expand">True</property> |
| 7 |
|
| 8 |
<child> |
| 9 |
<object class="GtkBox" id="import_box"> |
| 10 |
<property name="visible">True</property> |
| 11 |
<style><class name="linked"/></style> |
| 12 |
<child> |
| 13 |
<object class="GtkButton"> |
| 14 |
<property name="action_name">win.import</property> |
| 15 |
<property name="label" translatable="yes">Import</property> |
| 16 |
<property name="visible">True</property> |
| 17 |
</object> |
| 18 |
</child> |
| 19 |
<child> |
| 20 |
<object class="GtkButton"> |
| 21 |
<property name="action_name">win.paste</property> |
| 22 |
<property name="label" translatable="yes">Paste</property> |
| 23 |
<property name="visible">True</property> |
| 24 |
</object> |
| 25 |
</child> |
| 26 |
</object> |
| 27 |
</child> |
| 28 |
<child> |
| 29 |
<object class="GtkBox" id="clipboard_box"> |
| 30 |
<property name="visible">True</property> |
| 31 |
<style><class name="linked"/></style> |
| 32 |
<child> |
| 33 |
<object class="GtkButton"> |
| 34 |
<property name="action_name">win.selection_delete</property> |
| 35 |
<property name="tooltip-text" translatable="yes">Delete</property> |
| 36 |
<property name="visible">True</property> |
| 37 |
<child> |
| 38 |
<object class="GtkImage"> |
| 39 |
<property name="icon-name">edit-delete-symbolic</property> |
| 40 |
<property name="visible">True</property> |
| 41 |
</object> |
| 42 |
</child> |
| 43 |
</object> |
| 44 |
</child> |
| 45 |
<child> |
| 46 |
<object class="GtkButton"> |
| 47 |
<property name="action_name">win.selection_cut</property> |
| 48 |
<property name="tooltip-text" translatable="yes">Cut</property> |
| 49 |
<property name="visible">True</property> |
| 50 |
<child> |
| 51 |
<object class="GtkImage"> |
| 52 |
<property name="icon-name">edit-cut-symbolic</property> |
| 53 |
<property name="visible">True</property> |
| 54 |
</object> |
| 55 |
</child> |
| 56 |
</object> |
| 57 |
</child> |
| 58 |
<child> |
| 59 |
<object class="GtkButton"> |
| 60 |
<property name="action_name">win.selection_copy</property> |
| 61 |
<property name="tooltip-text" translatable="yes">Copy</property> |
| 62 |
<property name="visible">True</property> |
| 63 |
<child> |
| 64 |
<object class="GtkImage"> |
| 65 |
<property name="icon-name">edit-copy-symbolic</property> |
| 66 |
<property name="visible">True</property> |
| 67 |
</object> |
| 68 |
</child> |
| 69 |
</object> |
| 70 |
</child> |
| 71 |
</object> |
| 72 |
</child> |
| 73 |
|
| 74 |
<child> |
| 75 |
<object class="GtkMenuButton" id="actions_btn"> |
| 76 |
<property name="visible">True</property> |
| 77 |
<property name="menu-model">actions-menu-short</property> |
| 78 |
<child> |
| 79 |
<object class="GtkBox"> |
| 80 |
<property name="visible">True</property> |
| 81 |
<property name="spacing">10</property> |
| 82 |
<child> |
| 83 |
<object class="GtkImage"> |
| 84 |
<property name="icon-name">system-run-symbolic</property> |
| 85 |
<property name="visible">True</property> |
| 86 |
</object> |
| 87 |
</child> |
| 88 |
<child> |
| 89 |
<object class="GtkImage"> |
| 90 |
<property name="icon-name">pan-down-symbolic</property> |
| 91 |
<property name="visible">True</property> |
| 92 |
</object> |
| 93 |
<packing> |
| 94 |
<property name="pack-type">end</property> |
| 95 |
</packing> |
| 96 |
</child> |
| 97 |
</object> |
| 98 |
</child> |
| 99 |
</object> |
| 100 |
</child> |
| 101 |
|
| 102 |
<child> |
| 103 |
<object class="GtkMenuButton" id="actions_btn_long"> |
| 104 |
<property name="visible">True</property> |
| 105 |
<style><class name="suggested-action"/></style> |
| 106 |
<property name="menu-model">actions-menu-long</property> |
| 107 |
<child> |
| 108 |
<object class="GtkBox"> |
| 109 |
<property name="visible">True</property> |
| 110 |
<property name="spacing">10</property> |
| 111 |
<child> |
| 112 |
<object class="GtkImage"> |
| 113 |
<property name="icon-name">system-run-symbolic</property> |
| 114 |
<property name="visible">True</property> |
| 115 |
</object> |
| 116 |
</child> |
| 117 |
<child> |
| 118 |
<object class="GtkImage"> |
| 119 |
<property name="icon-name">pan-down-symbolic</property> |
| 120 |
<property name="visible">True</property> |
| 121 |
</object> |
| 122 |
<packing> |
| 123 |
<property name="pack-type">end</property> |
| 124 |
</packing> |
| 125 |
</child> |
| 126 |
</object> |
| 127 |
</child> |
| 128 |
</object> |
| 129 |
</child> |
| 130 |
|
| 131 |
<child> |
| 132 |
<object class="GtkMenuButton" id="options_btn"> |
| 133 |
<property name="valign">center</property> |
| 134 |
<property name="visible">True</property> |
| 135 |
<property name="menu-model">options-menu</property> |
| 136 |
<child> |
| 137 |
<object class="GtkBox"> |
| 138 |
<property name="visible">True</property> |
| 139 |
<property name="spacing">10</property> |
| 140 |
<child> |
| 141 |
<object class="GtkBox" id="options_long_box"> |
| 142 |
<property name="visible">True</property> |
| 143 |
<property name="spacing">10</property> |
| 144 |
<child> |
| 145 |
<object class="GtkLabel"> |
| 146 |
<property name="label" translatable="yes">Selection options</property> |
| 147 |
<property name="visible">True</property> |
| 148 |
</object> |
| 149 |
</child> |
| 150 |
<child> |
| 151 |
<object class="GtkImage"> |
| 152 |
<property name="icon-name">pan-down-symbolic</property> |
| 153 |
<property name="visible">True</property> |
| 154 |
</object> |
| 155 |
<packing> |
| 156 |
<property name="pack-type">end</property> |
| 157 |
</packing> |
| 158 |
</child> |
| 159 |
</object> |
| 160 |
</child> |
| 161 |
<child> |
| 162 |
<object class="GtkImage" id="options_short_box"> |
| 163 |
<property name="icon-name">view-more-symbolic</property> |
| 164 |
<property name="tooltip-text" translatable="yes">Selection options</property> |
| 165 |
<property name="visible">True</property> |
| 166 |
</object> |
| 167 |
</child> |
| 168 |
</object> |
| 169 |
</child> |
| 170 |
</object> |
| 171 |
</child> |
| 172 |
|
| 173 |
<child> |
| 174 |
<object class="GtkToggleButton" id="minimap_btn"> |
| 175 |
<property name="valign">center</property> |
| 176 |
<property name="tooltip-text" translatable="yes">Preview</property> |
| 177 |
<property name="visible">True</property> |
| 178 |
<property name="action-name">win.toggle_preview</property> |
| 179 |
<child> |
| 180 |
<object class="GtkBox"> |
| 181 |
<property name="visible">True</property> |
| 182 |
<property name="spacing">10</property> |
| 183 |
<child> |
| 184 |
<object class="GtkLabel" id="minimap_label"> |
| 185 |
<property name="label">100%</property> |
| 186 |
<property name="visible">True</property> |
| 187 |
</object> |
| 188 |
</child> |
| 189 |
<child> |
| 190 |
<object class="GtkImage" id="minimap_arrow"> |
| 191 |
<property name="icon-name">pan-down-symbolic</property> |
| 192 |
<property name="visible">True</property> |
| 193 |
</object> |
| 194 |
<packing> |
| 195 |
<property name="pack-type">end</property> |
| 196 |
</packing> |
| 197 |
</child> |
| 198 |
</object> |
| 199 |
</child> |
| 200 |
</object> |
| 201 |
<packing> |
| 202 |
<property name="pack-type">end</property> |
| 203 |
</packing> |
| 204 |
</child> |
| 205 |
|
| 206 |
<child> |
| 207 |
<object class="GtkButton" id="help_btn"> |
| 208 |
<property name="visible">True</property> |
| 209 |
<property name="relief">none</property> |
| 210 |
<property name="tooltip-text" translatable="yes">Help about selection</property> |
| 211 |
<property name="action-name">app.help_selection</property> |
| 212 |
<child> |
| 213 |
<object class="GtkImage"> |
| 214 |
<property name="icon-name">help-faq-symbolic</property> |
| 215 |
<property name="visible">True</property> |
| 216 |
</object> |
| 217 |
</child> |
| 218 |
</object> |
| 219 |
<packing> |
| 220 |
<property name="pack-type">end</property> |
| 221 |
</packing> |
| 222 |
</child> |
| 223 |
|
| 224 |
</object> |
| 225 |
|
| 226 |
<!-- ********************************************************************* --> |
| 227 |
|
| 228 |
<menu id="actions-menu-long"> |
| 229 |
<section> |
| 230 |
<item> |
| 231 |
<attribute name="label" translatable="yes">Select all</attribute> |
| 232 |
<attribute name="action">win.select_all</attribute> |
| 233 |
</item> |
| 234 |
<item> |
| 235 |
<attribute name="label" translatable="yes">Deselect</attribute> |
| 236 |
<attribute name="action">win.unselect</attribute> |
| 237 |
</item> |
| 238 |
<item> |
| 239 |
<attribute name="label" translatable="yes">Invert selection</attribute> |
| 240 |
<attribute name="action">win.selection_invert</attribute> |
| 241 |
<attribute name="hidden-when">action-missing</attribute> |
| 242 |
</item> |
| 243 |
<item> |
| 244 |
<attribute name="label" translatable="yes">Close selection</attribute> |
| 245 |
<attribute name="action">win.selection_close</attribute> |
| 246 |
</item> |
| 247 |
</section> |
| 248 |
<section> |
| 249 |
<attribute name="display-hint">horizontal-buttons</attribute> |
| 250 |
<item> |
| 251 |
<attribute name="label" translatable="yes">Import</attribute> |
| 252 |
<attribute name="action">win.import</attribute> |
| 253 |
</item> |
| 254 |
<item> |
| 255 |
<attribute name="label" translatable="yes">Paste</attribute> |
| 256 |
<attribute name="action">win.paste</attribute> |
| 257 |
</item> |
| 258 |
</section> |
| 259 |
<section> |
| 260 |
<item> |
| 261 |
<attribute name="label" translatable="yes">Define as current image</attribute> |
| 262 |
<attribute name="action">win.selection-replace-canvas</attribute> |
| 263 |
<attribute name="hidden-when">action-missing</attribute> |
| 264 |
</item> |
| 265 |
<item> |
| 266 |
<attribute name="label" translatable="yes">Expand image to fit</attribute> |
| 267 |
<attribute name="action">win.selection-expand-canvas</attribute> |
| 268 |
<attribute name="hidden-when">action-missing</attribute> |
| 269 |
</item> |
| 270 |
</section> |
| 271 |
<section> |
| 272 |
<item> |
| 273 |
<attribute name="label" translatable="yes">Open As New Image</attribute> |
| 274 |
<attribute name="action">win.new_tab_selection</attribute> |
| 275 |
</item> |
| 276 |
<item> |
| 277 |
<attribute name="label" translatable="yes">Export as…</attribute> |
| 278 |
<attribute name="action">win.selection_export</attribute> |
| 279 |
</item> |
| 280 |
</section> |
| 281 |
<section> |
| 282 |
<item> |
| 283 |
<attribute name="label" translatable="yes">Help about selection</attribute> |
| 284 |
<attribute name="action">app.help_selection</attribute> |
| 285 |
</item> |
| 286 |
</section> |
| 287 |
</menu> |
| 288 |
|
| 289 |
<menu id="actions-menu-short"> |
| 290 |
<section> |
| 291 |
<item> |
| 292 |
<attribute name="label" translatable="yes">Select all</attribute> |
| 293 |
<attribute name="action">win.select_all</attribute> |
| 294 |
</item> |
| 295 |
<item> |
| 296 |
<attribute name="label" translatable="yes">Deselect</attribute> |
| 297 |
<attribute name="action">win.unselect</attribute> |
| 298 |
</item> |
| 299 |
<item> |
| 300 |
<attribute name="label" translatable="yes">Invert selection</attribute> |
| 301 |
<attribute name="action">win.selection_invert</attribute> |
| 302 |
<attribute name="hidden-when">action-missing</attribute> |
| 303 |
</item> |
| 304 |
<item> |
| 305 |
<attribute name="label" translatable="yes">Close selection</attribute> |
| 306 |
<attribute name="action">win.selection_close</attribute> |
| 307 |
</item> |
| 308 |
</section> |
| 309 |
<section> |
| 310 |
<item> |
| 311 |
<attribute name="label" translatable="yes">Define as current image</attribute> |
| 312 |
<attribute name="action">win.selection-replace-canvas</attribute> |
| 313 |
<attribute name="hidden-when">action-missing</attribute> |
| 314 |
</item> |
| 315 |
<item> |
| 316 |
<attribute name="label" translatable="yes">Expand image to fit</attribute> |
| 317 |
<attribute name="action">win.selection-expand-canvas</attribute> |
| 318 |
<attribute name="hidden-when">action-missing</attribute> |
| 319 |
</item> |
| 320 |
</section> |
| 321 |
<section> |
| 322 |
<item> |
| 323 |
<attribute name="label" translatable="yes">Open As New Image</attribute> |
| 324 |
<attribute name="action">win.new_tab_selection</attribute> |
| 325 |
</item> |
| 326 |
<item> |
| 327 |
<attribute name="label" translatable="yes">Export as…</attribute> |
| 328 |
<attribute name="action">win.selection_export</attribute> |
| 329 |
</item> |
| 330 |
</section> |
| 331 |
</menu> |
| 332 |
|
| 333 |
<menu id="options-menu"> |
| 334 |
<section> |
| 335 |
<attribute name="label" translatable="yes">Replace with…</attribute> |
| 336 |
<item> |
| 337 |
<attribute name="label" translatable="yes">Transparency</attribute> |
| 338 |
<attribute name="action">win.selection-color</attribute> |
| 339 |
<attribute name="target">alpha</attribute> |
| 340 |
</item> |
| 341 |
<item> |
| 342 |
<attribute name="label" translatable="yes">Default color</attribute> |
| 343 |
<attribute name="action">win.selection-color</attribute> |
| 344 |
<attribute name="target">initial</attribute> |
| 345 |
</item> |
| 346 |
<item> |
| 347 |
<attribute name="label" translatable="yes">Secondary color</attribute> |
| 348 |
<attribute name="action">win.selection-color</attribute> |
| 349 |
<attribute name="target">secondary</attribute> |
| 350 |
</item> |
| 351 |
<item> |
| 352 |
<attribute name="label" translatable="yes">Extract from this color</attribute> |
| 353 |
<attribute name="action">win.selection-extract</attribute> |
| 354 |
</item> |
| 355 |
</section> |
| 356 |
</menu> |
| 357 |
|
| 358 |
</interface> |
| 359 |
|