Browse Source

ui: Use revealers for back buttons

In order to have nice transitions and consistent
sizing, we should use GtkRevealer with a crossfade
transition instead of using the `visible` prop
of the back buttons.
merge-requests/1327/merge
Christopher Davis 5 years ago
parent
commit
a9f25188cf
  1. 13
      data/resources/ui/content-explore.ui
  2. 13
      data/resources/ui/content-invite.ui
  3. 13
      data/resources/ui/content-room-history.ui

13
data/resources/ui/content-explore.ui

@ -10,10 +10,15 @@
<object class="AdwHeaderBar" id="headerbar">
<property name="show-start-title-buttons" bind-source="ContentExplore" bind-property="compact" bind-flags="sync-create"/>
<child type="start">
<object class="GtkButton" id="back">
<property name="visible" bind-source="ContentExplore" bind-property="compact" bind-flags="sync-create"/>
<property name="icon-name">go-previous-symbolic</property>
<property name="action-name">content.go-back</property>
<object class="GtkRevealer">
<property name="transition-type">crossfade</property>
<property name="reveal-child" bind-source="ContentExplore" bind-property="compact" bind-flags="sync-create"/>
<property name="child">
<object class="GtkButton" id="back">
<property name="icon-name">go-previous-symbolic</property>
<property name="action-name">content.go-back</property>
</object>
</property>
</object>
</child>
<child type="title">

13
data/resources/ui/content-invite.ui

@ -10,10 +10,15 @@
<object class="AdwHeaderBar" id="headerbar">
<property name="show-start-title-buttons" bind-source="ContentInvite" bind-property="compact" bind-flags="sync-create"/>
<child type="start">
<object class="GtkButton" id="back">
<property name="visible" bind-source="ContentInvite" bind-property="compact" bind-flags="sync-create"/>
<property name="icon-name">go-previous-symbolic</property>
<property name="action-name">content.go-back</property>
<object class="GtkRevealer">
<property name="transition-type">crossfade</property>
<property name="reveal-child" bind-source="ContentInvite" bind-property="compact" bind-flags="sync-create"/>
<property name="child">
<object class="GtkButton" id="back">
<property name="icon-name">go-previous-symbolic</property>
<property name="action-name">content.go-back</property>
</object>
</property>
</object>
</child>
<child type="title">

13
data/resources/ui/content-room-history.ui

@ -19,10 +19,15 @@
<object class="AdwHeaderBar" id="headerbar">
<property name="show-start-title-buttons" bind-source="ContentRoomHistory" bind-property="compact" bind-flags="sync-create"/>
<child type="start">
<object class="GtkButton" id="back">
<property name="visible" bind-source="ContentRoomHistory" bind-property="compact" bind-flags="sync-create"/>
<property name="icon-name">go-previous-symbolic</property>
<property name="action-name">content.go-back</property>
<object class="GtkRevealer">
<property name="transition-type">crossfade</property>
<property name="reveal-child" bind-source="ContentRoomHistory" bind-property="compact" bind-flags="sync-create"/>
<property name="child">
<object class="GtkButton" id="back">
<property name="icon-name">go-previous-symbolic</property>
<property name="action-name">content.go-back</property>
</object>
</property>
</object>
</child>
<child type="title">

Loading…
Cancel
Save