windowTitle: Add custom window title widget

Fixes #202
This commit is contained in:
Sophie Herold 2023-12-20 20:26:32 +01:00
parent d39bd774d5
commit d185973815
4 changed files with 107 additions and 1 deletions

View file

@ -61,7 +61,6 @@
<property name="default-height">498</property>
<property name="width-request">360</property>
<property name="height-request">360</property>
<property name="title" translatable="yes">Image Viewer</property>
<child>
<object class="AdwBreakpoint">
<condition>max-width: 590sp</condition>
@ -74,6 +73,11 @@
<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="title-widget">
<object class="LpWindowTitle" id="title">
<property name="title" bind-source="LpWindow" bind-property="title" />
</object>
</property>
<style>
<class name="fullscreen-osd" />
</style>