2020-12-26 02:05:34 -08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<interface>
|
2021-12-21 10:55:02 -08:00
|
|
|
<template class="LpWindow" parent="AdwApplicationWindow">
|
2020-12-26 02:05:34 -08:00
|
|
|
<property name="default-width">600</property>
|
|
|
|
|
<property name="default-height">498</property>
|
|
|
|
|
<property name="width-request">360</property>
|
2022-07-26 12:07:08 -04:00
|
|
|
<property name="title" translatable="yes">Image Viewer</property>
|
|
|
|
|
<binding name="title">
|
|
|
|
|
<closure type="gchararray" function="window_title">
|
|
|
|
|
<lookup type="LpImageView" name="active-file">image_view</lookup>
|
|
|
|
|
</closure>
|
|
|
|
|
</binding>
|
2021-09-05 05:51:34 -07:00
|
|
|
<property name="content">
|
2021-09-24 01:14:56 -07:00
|
|
|
<object class="AdwFlap" id="flap">
|
2020-12-26 02:05:34 -08:00
|
|
|
<property name="orientation">vertical</property>
|
2021-09-24 01:14:56 -07:00
|
|
|
<property name="fold-policy">never</property>
|
2021-10-08 05:50:49 -07:00
|
|
|
<property name="swipe-to-open">False</property>
|
|
|
|
|
<property name="swipe-to-close">False</property>
|
2021-09-24 01:14:56 -07:00
|
|
|
<property name="locked">true</property>
|
|
|
|
|
<property name="modal">false</property>
|
2022-07-26 11:31:11 -04:00
|
|
|
<binding name="fold-policy">
|
|
|
|
|
<closure type="AdwFlapFoldPolicy" function="fold_policy">
|
|
|
|
|
<lookup name="fullscreened">LpWindow</lookup>
|
|
|
|
|
<lookup type="AdwFlap" name="reveal-flap">properties_flap</lookup>
|
|
|
|
|
</closure>
|
|
|
|
|
</binding>
|
2021-09-24 01:14:56 -07:00
|
|
|
<property name="flap">
|
2020-12-26 02:05:34 -08:00
|
|
|
<object class="GtkHeaderBar" id="headerbar">
|
2021-12-21 10:55:02 -08:00
|
|
|
<property name="show_title_buttons" bind-source="LpWindow" bind-property="fullscreened" bind-flags="sync-create|invert-boolean"/>
|
2022-07-01 13:08:14 -04:00
|
|
|
<child type="start">
|
|
|
|
|
<object class="GtkButton">
|
|
|
|
|
<property name="icon-name">edit-copy-symbolic</property>
|
|
|
|
|
<property name="action-name">win.copy</property>
|
|
|
|
|
<property name="tooltip-text">Copy to Clipboard</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2020-12-26 02:05:34 -08:00
|
|
|
<child type="end">
|
|
|
|
|
<object class="GtkMenuButton" id="menu_button">
|
|
|
|
|
<property name="icon-name">open-menu-symbolic</property>
|
|
|
|
|
<property name="menu-model">primary_menu</property>
|
2021-09-29 00:36:13 -07:00
|
|
|
<property name="tooltip-text" translatable="yes">Primary Menu</property>
|
2020-12-26 02:05:34 -08:00
|
|
|
</object>
|
|
|
|
|
</child>
|
2022-07-26 11:31:11 -04:00
|
|
|
<child type="end">
|
|
|
|
|
<object class="GtkToggleButton" id="properties_button">
|
|
|
|
|
<property name="icon-name">help-about-symbolic</property>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
2020-12-26 02:05:34 -08:00
|
|
|
</object>
|
2021-09-24 01:14:56 -07:00
|
|
|
</property>
|
|
|
|
|
<property name="content">
|
2021-12-28 16:38:36 -08:00
|
|
|
<object class="AdwToastOverlay" id="toast_overlay">
|
|
|
|
|
<property name="child">
|
2022-07-26 11:31:11 -04:00
|
|
|
<object class="AdwFlap" id="properties_flap">
|
|
|
|
|
<property name="flap-position">end</property>
|
|
|
|
|
<property name="fold-policy">never</property>
|
|
|
|
|
<property name="locked">True</property>
|
|
|
|
|
<property name="reveal-flap" bind-source="properties_button" bind-property="active" bind-flags="bidirectional|sync-create"/>
|
|
|
|
|
<property name="content">
|
|
|
|
|
<object class="GtkStack" id="stack">
|
|
|
|
|
<property name="visible-child">status_page</property>
|
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="AdwStatusPage" id="status_page">
|
|
|
|
|
<property name="title" translatable="yes">Image Viewer</property>
|
2022-11-04 20:48:32 +01:00
|
|
|
<property name="description" translatable="yes">Click “Open File…” or drag an image here.</property>
|
2022-07-26 11:31:11 -04:00
|
|
|
<child>
|
|
|
|
|
<object class="GtkButton">
|
|
|
|
|
<property name="halign">center</property>
|
|
|
|
|
<property name="label" translatable="yes">Open File…</property>
|
|
|
|
|
<property name="action-name">win.open</property>
|
|
|
|
|
<style>
|
|
|
|
|
<class name="pill"/>
|
|
|
|
|
<class name="suggested-action"/>
|
|
|
|
|
</style>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
<child>
|
|
|
|
|
<object class="LpImageView" id="image_view"/>
|
|
|
|
|
</child>
|
2021-12-28 16:38:36 -08:00
|
|
|
<child>
|
2022-07-26 11:31:11 -04:00
|
|
|
<object class="GtkDropTarget" id="drop_target">
|
|
|
|
|
<property name="actions">copy</property>
|
2021-12-28 16:38:36 -08:00
|
|
|
</object>
|
|
|
|
|
</child>
|
|
|
|
|
</object>
|
2022-07-26 11:31:11 -04:00
|
|
|
</property>
|
|
|
|
|
<property name="separator">
|
|
|
|
|
<object class="GtkSeparator"/>
|
|
|
|
|
</property>
|
|
|
|
|
<property name="flap">
|
|
|
|
|
<object class="LpPropertiesView" id="properties_view">
|
|
|
|
|
<property name="file" bind-source="image_view" bind-property="active-file" bind-flags="sync-create"/>
|
2021-12-22 19:38:56 -08:00
|
|
|
</object>
|
2022-07-26 11:31:11 -04:00
|
|
|
</property>
|
2020-12-26 02:05:34 -08:00
|
|
|
</object>
|
2021-12-28 16:38:36 -08:00
|
|
|
</property>
|
2020-12-26 02:05:34 -08:00
|
|
|
</object>
|
2021-09-24 01:14:56 -07:00
|
|
|
</property>
|
|
|
|
|
<style>
|
|
|
|
|
<class name="fullscreen-widget"/>
|
|
|
|
|
</style>
|
2020-12-26 02:05:34 -08:00
|
|
|
</object>
|
|
|
|
|
</property>
|
|
|
|
|
</template>
|
|
|
|
|
<menu id="primary_menu">
|
|
|
|
|
<section>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_New Window</attribute>
|
|
|
|
|
<attribute name="action">app.new-window</attribute>
|
|
|
|
|
</item>
|
2022-08-17 21:20:02 -03:00
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_Open…</attribute>
|
|
|
|
|
<attribute name="action">win.open</attribute>
|
|
|
|
|
</item>
|
2020-12-26 02:05:34 -08:00
|
|
|
</section>
|
|
|
|
|
<section>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_Open With…</attribute>
|
|
|
|
|
<attribute name="action">win.open-with</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
<!--<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_Display On…</attribute>
|
|
|
|
|
<attribute name="action">win.display-on</attribute>
|
|
|
|
|
</item>-->
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_Print…</attribute>
|
|
|
|
|
<attribute name="action">win.print</attribute>
|
|
|
|
|
</item>
|
2022-11-03 17:40:06 +01:00
|
|
|
<item>
|
2020-12-26 02:05:34 -08:00
|
|
|
<attribute name="label" translatable="yes">_Rotate</attribute>
|
|
|
|
|
<attribute name="action">win.rotate-image</attribute>
|
2022-11-03 17:40:06 +01:00
|
|
|
</item>
|
2020-12-26 02:05:34 -08:00
|
|
|
<item>
|
2022-08-17 21:31:36 -03:00
|
|
|
<attribute name="label" translatable="yes">_Set as Background…</attribute>
|
|
|
|
|
<attribute name="action">win.set-background</attribute>
|
2020-12-26 02:05:34 -08:00
|
|
|
</item>
|
|
|
|
|
</section>
|
|
|
|
|
<section>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_Help</attribute>
|
|
|
|
|
<attribute name="action">app.help</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_Keyboard Shortcuts</attribute>
|
|
|
|
|
<attribute name="action">win.show-help-overlay</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
<item>
|
|
|
|
|
<attribute name="label" translatable="yes">_About Image Viewer</attribute>
|
|
|
|
|
<attribute name="action">app.about</attribute>
|
|
|
|
|
</item>
|
|
|
|
|
</section>
|
|
|
|
|
</menu>
|
|
|
|
|
</interface>
|