Skip to content

Commit

Permalink
New button stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jul 30, 2024
1 parent 40e2a05 commit 777c3a9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
21 changes: 14 additions & 7 deletions data/ui/viewer.ui
Original file line number Diff line number Diff line change
Expand Up @@ -45,42 +45,48 @@
</style>
<!-- Uncomment these when making Modi a multi-image viewer. -->
<!-- <child type="left">
<object class="HeIconicButton" id="back">
<object class="HeButton" id="back">
<property name="is-iconic">true</property>
<property name="icon">go-previous-symbolic</property>
<property name="tooltip-text" translatable="true">Previous Image</property>
</object>
</child>
<child type="left">
<object class="HeIconicButton" id="forward">
<object class="HeButton" id="forward">
<property name="is-iconic">true</property>
<property name="icon">go-next-symbolic</property>
<property name="tooltip-text" translatable="true">Next Image</property>
</object>
</child>
<child type="right">-->
<child type="left">
<object class="HeIconicButton" id="fullscreen">
<object class="HeButton" id="fullscreen">
<property name="is-iconic">true</property>
<property name="icon">view-fullscreen-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="true">Go Fullscreen</property>
</object>
</child>
<child type="left">
<object class="HeIconicButton" id="restore">
<object class="HeButton" id="restore">
<property name="is-iconic">true</property>
<property name="icon">view-restore-symbolic</property>
<property name="valign">center</property>
<property name="visible">0</property>
<property name="tooltip-text" translatable="true">Unfullscreen</property>
</object>
</child>
<child type="right">
<object class="HeIconicButton" id="zoomin">
<object class="HeButton" id="zoomin">
<property name="is-iconic">true</property>
<property name="icon">zoom-in-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="true">Zoom In</property>
</object>
</child>
<child type="right">
<object class="HeIconicButton" id="zoomout">
<object class="HeButton" id="zoomout">
<property name="is-iconic">true</property>
<property name="icon">zoom-out-symbolic</property>
<property name="valign">center</property>
<property name="tooltip-text" translatable="true">Zoom Out</property>
Expand Down Expand Up @@ -108,7 +114,8 @@
<object class="HeMiniContentBlock" id="folder_mcb">
<property name="title" translatable="true">Folder</property>
<child>
<object class="HeDisclosureButton" id="open_file_button">
<object class="HeButton" id="open_file_button">
<property name="is-disclosure">true</property>
<property name="icon">document-open-symbolic</property>
<property name="tooltip-text" translatable="true">Open Image</property>
</object>
Expand Down
10 changes: 5 additions & 5 deletions src/Viewer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ public class Modi.Viewer : He.Bin {
[GtkChild]
new unowned Gtk.Stack stack;
[GtkChild]
unowned He.IconicButton zoomout;
unowned He.Button zoomout;
[GtkChild]
unowned He.IconicButton zoomin;
unowned He.Button zoomin;
[GtkChild]
unowned He.IconicButton fullscreen;
unowned He.Button fullscreen;
[GtkChild]
unowned He.IconicButton restore;
unowned He.Button restore;
[GtkChild]
unowned Gtk.ScrolledWindow sw;
[GtkChild]
unowned He.EmptyPage empty_page;
[GtkChild]
unowned He.DisclosureButton open_file_button;
unowned He.Button open_file_button;

[GtkChild]
public unowned He.MiniContentBlock folder_mcb;
Expand Down

0 comments on commit 777c3a9

Please sign in to comment.