ui: Reformat .ui-files

This commit is contained in:
Sophie Herold 2023-11-28 22:02:30 +01:00
parent 5a905cd53f
commit f3ff2f5cba
5 changed files with 56 additions and 59 deletions

View file

@ -61,7 +61,7 @@
<object class="AdwStatusPage" id="error_page">
<property name="icon-name">image-missing-symbolic</property>
<property name="title" translatable="yes">Could not Load Image</property>
<property name="description" bind-source="image" bind-property="error"/>
<property name="description" bind-source="image" bind-property="error" />
</object>
</child>
<child>
@ -97,7 +97,7 @@
<property name="tooltip-text" translatable="yes">Rotate Left</property>
<property name="action-name">win.rotate_ccw</property>
<style>
<class name="flat"/>
<class name="flat" />
</style>
</object>
</child>
@ -107,7 +107,7 @@
<property name="tooltip-text" translatable="yes">Rotate Right</property>
<property name="action-name">win.rotate_cw</property>
<style>
<class name="flat"/>
<class name="flat" />
</style>
</object>
</child>
@ -118,5 +118,4 @@
</object>
</property>
</template>
</interface>
</interface>

View file

@ -9,8 +9,8 @@
<property name="hexpand">True</property>
<child>
<object class="LpSlidingView" id="sliding_view">
<signal name="notify::current-page" handler="page_changed_cb" swapped="yes"/>
<signal name="target-page-reached" handler="target_page_reached_cb" swapped="yes"/>
<signal name="notify::current-page" handler="page_changed_cb" swapped="yes" />
<signal name="target-page-reached" handler="target_page_reached_cb" swapped="yes" />
</object>
</child>
<child type="overlay">
@ -29,8 +29,8 @@
<property name="action-name">win.previous</property>
<property name="tooltip-text" translatable="yes">Previous Image</property>
<style>
<class name="osd"/>
<class name="circular"/>
<class name="osd" />
<class name="circular" />
</style>
</object>
</child>
@ -40,8 +40,8 @@
<property name="action-name">win.next</property>
<property name="tooltip-text" translatable="yes">Next Image</property>
<style>
<class name="osd"/>
<class name="circular"/>
<class name="osd" />
<class name="circular" />
</style>
</object>
</child>
@ -65,8 +65,8 @@
<property name="action-name">win.zoom-out</property>
<property name="tooltip-text" translatable="yes">Zoom Out</property>
<style>
<class name="osd"/>
<class name="circular"/>
<class name="osd" />
<class name="circular" />
</style>
</object>
</child>
@ -76,8 +76,8 @@
<property name="action-name">win.zoom-in</property>
<property name="tooltip-text" translatable="yes">Zoom In</property>
<style>
<class name="osd"/>
<class name="circular"/>
<class name="osd" />
<class name="circular" />
</style>
</object>
</child>
@ -94,8 +94,8 @@
<property name="action-name">win.toggle-fullscreen</property>
<property name="tooltip-text" translatable="yes">Toggle Fullscreen</property>
<style>
<class name="osd"/>
<class name="circular"/>
<class name="osd" />
<class name="circular" />
</style>
</object>
</child>
@ -107,7 +107,7 @@
</object>
</property>
<style>
<class name="image-view"/>
<class name="image-view" />
</style>
</template>
</interface>
</interface>

View file

@ -106,7 +106,7 @@
<object class="GtkDropDown" id="margin_unit">
<property name="tooltip-text" translatable="yes">Margin Units</property>
<style>
<class name="flat"/>
<class name="flat" />
</style>
<property name="model">
<object class="GtkStringList">
@ -136,9 +136,8 @@
<property name="title" translatable="yes">Image Size</property>
<property name="header-suffix">
<object class="GtkDropDown" id="size_unit">
<property name="tooltip-text" translatable="yes">Image Size Units</property>"
<style>
<class name="flat"/>
<property name="tooltip-text" translatable="yes">Image Size Units</property>" <style>
<class name="flat" />
</style>
<property name="model">
<object class="GtkStringList">
@ -187,4 +186,4 @@
</object>
</property>
</template>
</interface>
</interface>

View file

@ -4,12 +4,12 @@
<property name="width-request">255</property>
<binding name="metadata">
<lookup type="LpImage" name="metadata">
<lookup type="LpPropertiesView" name="image"/>
<lookup type="LpPropertiesView" name="image" />
</lookup>
</binding>
<binding name="file">
<lookup type="LpImage" name="file">
<lookup type="LpPropertiesView" name="image"/>
<lookup type="LpPropertiesView" name="image" />
</lookup>
</binding>
<property name="child">
@ -40,12 +40,12 @@
<property name="icon-name">folder-open-symbolic</property>
<property name="tooltip-text" translatable="yes">Open Containing Folder</property>
<style>
<class name="flat"/>
<class name="flat" />
</style>
</object>
</child>
<style>
<class name="property"/>
<class name="property" />
</style>
</object>
</child>
@ -61,11 +61,11 @@
<closure type="gchararray" function="image_size">
<lookup type="LpImage" name="image-size">
<lookup name="image">LpPropertiesView</lookup>
</lookup>
</lookup>
</closure>
</binding>
<style>
<class name="property"/>
<class name="property" />
</style>
</object>
</child>
@ -75,11 +75,11 @@
<property name="subtitle-selectable">True</property>
<binding name="subtitle">
<lookup type="LpImage" name="format-name">
<lookup type="LpPropertiesView" name="image"/>
<lookup type="LpPropertiesView" name="image" />
</lookup>
</binding>
<style>
<class name="property"/>
<class name="property" />
</style>
</object>
</child>
@ -93,7 +93,7 @@
</closure>
</binding>
<style>
<class name="property"/>
<class name="property" />
</style>
</object>
</child>
@ -111,7 +111,7 @@
</closure>
</binding>
<style>
<class name="property"/>
<class name="property" />
</style>
</object>
</child>
@ -123,9 +123,8 @@
<closure type="gchararray" function="modified_date">
<lookup name="file-info">LpPropertiesView</lookup>
</closure>
</binding>"
<style>
<class name="property"/>
</binding>" <style>
<class name="property" />
</style>
</object>
</child>
@ -161,12 +160,12 @@
<property name="icon-name">mark-location-symbolic</property>
<property name="tooltip-text" translatable="yes">Open Location</property>
<style>
<class name="flat"/>
<class name="flat" />
</style>
</object>
</child>
<style>
<class name="property"/>
<class name="property" />
</style>
</object>
</child>
@ -187,7 +186,7 @@
</closure>
</binding>
<style>
<class name="property"/>
<class name="property" />
</style>
</object>
</child>
@ -208,7 +207,7 @@
</closure>
</binding>
<style>
<class name="property"/>
<class name="property" />
</style>
</object>
</child>
@ -229,7 +228,7 @@
</closure>
</binding>
<style>
<class name="property"/>
<class name="property" />
</style>
</object>
</child>
@ -250,7 +249,7 @@
</closure>
</binding>
<style>
<class name="property"/>
<class name="property" />
</style>
</object>
</child>
@ -271,7 +270,7 @@
</closure>
</binding>
<style>
<class name="property"/>
<class name="property" />
</style>
</object>
</child>
@ -292,7 +291,7 @@
</closure>
</binding>
<style>
<class name="property"/>
<class name="property" />
</style>
</object>
</child>
@ -303,4 +302,4 @@
</object>
</property>
</template>
</interface>
</interface>

View file

@ -62,7 +62,7 @@
<property name="width-request">360</property>
<property name="height-request">360</property>
<property name="title" translatable="yes">Image Viewer</property>
<signal name="notify::fullscreened" handler="on_fullscreened" swapped="yes"/>
<signal name="notify::fullscreened" handler="on_fullscreened" swapped="yes" />
<binding name="title">
<closure type="gchararray" function="window_title">
<lookup name="file">
@ -101,10 +101,10 @@
</binding>
<child type="top">
<object class="AdwHeaderBar" id="headerbar">
<property name="show-end-title-buttons" bind-source="LpWindow" bind-property="fullscreened" bind-flags="sync-create|invert-boolean"/>
<property name="show-start-title-buttons" bind-source="LpWindow" bind-property="fullscreened" bind-flags="sync-create|invert-boolean"/>
<property name="show-end-title-buttons" bind-source="LpWindow" bind-property="fullscreened" bind-flags="sync-create|invert-boolean" />
<property name="show-start-title-buttons" bind-source="LpWindow" bind-property="fullscreened" bind-flags="sync-create|invert-boolean" />
<style>
<class name="fullscreen-osd"/>
<class name="fullscreen-osd" />
</style>
<child type="start">
<object class="GtkButton">
@ -134,7 +134,7 @@
<property name="tooltip-text" translatable="yes">Rotate Left</property>
<property name="action-name">win.rotate_ccw</property>
<style>
<class name="flat"/>
<class name="flat" />
</style>
</object>
</child>
@ -144,7 +144,7 @@
<property name="tooltip-text" translatable="yes">Rotate Right</property>
<property name="action-name">win.rotate_cw</property>
<style>
<class name="flat"/>
<class name="flat" />
</style>
</object>
</child>
@ -159,7 +159,7 @@
</object>
</child>
<child>
<object class="GtkEventControllerMotion" id="headerbar_events"/>
<object class="GtkEventControllerMotion" id="headerbar_events" />
</child>
</object>
</child>
@ -171,7 +171,7 @@
<property name="fold-policy">never</property>
<property name="swipe-to-open">false</property>
<property name="locked">True</property>
<property name="reveal-flap" bind-source="properties_button" bind-property="active" bind-flags="bidirectional|sync-create"/>
<property name="reveal-flap" bind-source="properties_button" bind-property="active" bind-flags="bidirectional|sync-create" />
<property name="content">
<object class="LpDragOverlay" id="drag_overlay">
<property name="drop_target">drop_target</property>
@ -179,7 +179,7 @@
<object class="AdwBin">
<property name="can-target">false</property>
<style>
<class name="lp-dragging-area-highlight"/>
<class name="lp-dragging-area-highlight" />
</style>
</object>
</property>
@ -206,8 +206,8 @@
<property name="use-underline">True</property>
<property name="action-name">win.open</property>
<style>
<class name="pill"/>
<class name="suggested-action"/>
<class name="pill" />
<class name="suggested-action" />
</style>
</object>
</child>
@ -232,7 +232,7 @@
</object>
</property>
<property name="separator">
<object class="GtkSeparator"/>
<object class="GtkSeparator" />
</property>
<property name="flap">
<object class="LpPropertiesView" id="properties_view">
@ -253,4 +253,4 @@
</object>
</property>
</template>
</interface>
</interface>