Skip to content

Commit

Permalink
Fix #1092
Browse files Browse the repository at this point in the history
Also port to AdwToolbarView
  • Loading branch information
johnfactotum committed Oct 11, 2023
1 parent a22a986 commit e695e4d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/ui/book-viewer.ui
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,24 @@

<template class="FoliateBookViewer" parent="GtkOverlay">
<child type="overlay">
<object class="GtkBox" id="top-overlay-box">
<property name="orientation">vertical</property>
<object class="AdwToolbarView" id="top-overlay-box">
<property name="vexpand">True</property>
<property name="hexpand">True</property>
<style><class name="background"/></style>
<child>
<child type="top">
<object class="GtkHeaderBar" id="top-overlay-headerbar">
<style><class name="flat"/></style>
<property name="title-widget">
<object class="GtkLabel"/>
</property>
<child>
<object class="GtkButton">
<property name="action-name">win.show-library</property>
<property name="halign">center</property>
<property name="icon-name">go-previous-symbolic</property>
<property name="tooltip-text" translatable="yes">Library</property>
</object>
</child>
</object>
</child>
<child>
Expand Down Expand Up @@ -186,14 +193,9 @@
</child>
<child>
<object class="GtkButton">
<property name="action-name">win.show-library</property>
<property name="action-name">win.open</property>
<property name="halign">center</property>
<property name="child">
<object class="AdwButtonContent">
<property name="icon-name">go-previous-symbolic</property>
<property name="label" translatable="yes">Library</property>
</object>
</property>
<property name="label" translatable="yes">Open Another File…</property>
<style><class name="pill"/></style>
</object>
</child>
Expand Down

0 comments on commit e695e4d

Please sign in to comment.