Skip to content

Commit

Permalink
feat(MV): hide window controls (#1221)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr authored Nov 26, 2024
1 parent dc9981f commit 9cd932d
Showing 1 changed file with 107 additions and 105 deletions.
212 changes: 107 additions & 105 deletions data/ui/views/media_viewer.ui
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
</style>
<child type="top">
<object class="AdwHeaderBar" id="headerbar">
<property name="show-end-title-buttons">0</property>
<property name="show-start-title-buttons">0</property>
<property name="title-widget">
<object class="GtkLabel">
<property name="label" translatable="yes">Media Viewer</property>
Expand Down Expand Up @@ -69,124 +71,124 @@
</object>
</child>
<property name="content">
<object class="GtkOverlay">
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<child type="overlay">
<object class="GtkRevealer" id="page_buttons_revealer">
<property name="overflow">visible</property>
<property name="transition_type">crossfade</property>
<property name="reveal-child">0</property>
<property name="visible">0</property>
<property name="valign">end</property>
<property name="halign">start</property>
<property name="margin-start">18</property>
<property name="margin-bottom">18</property>
<property name="child">
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="spacing">12</property>
<child>
<object class="GtkButton" id="prev_btn">
<property name="icon-name">go-previous-symbolic</property>
<property name="tooltip-text" translatable="yes">Previous Attachment</property>
<signal name="clicked" handler="on_previous_clicked" swapped="no" />
<style>
<class name="osd" />
<class name="media-viewer-fab" />
<class name="circular" />
</style>
</object>
</child>
<child>
<object class="GtkButton" id="next_btn">
<property name="icon-name">go-next-symbolic</property>
<property name="tooltip-text" translatable="yes">Next Attachment</property>
<signal name="clicked" handler="on_next_clicked" swapped="no" />
<style>
<class name="osd" />
<class name="media-viewer-fab" />
<class name="circular" />
</style>
</object>
</child>
<object class="GtkOverlay">
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<child type="overlay">
<object class="GtkRevealer" id="page_buttons_revealer">
<property name="overflow">visible</property>
<property name="transition_type">crossfade</property>
<property name="reveal-child">0</property>
<property name="visible">0</property>
<property name="valign">end</property>
<property name="halign">start</property>
<property name="margin-start">18</property>
<property name="margin-bottom">18</property>
<property name="child">
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="spacing">12</property>
<child>
<object class="GtkButton" id="prev_btn">
<property name="icon-name">go-previous-symbolic</property>
<property name="tooltip-text" translatable="yes">Previous Attachment</property>
<signal name="clicked" handler="on_previous_clicked" swapped="no" />
<style>
<class name="osd" />
<class name="media-viewer-fab" />
<class name="circular" />
</style>
</object>
</property>
</object>
</child>
<child type="overlay">
<object class="GtkRevealer" id="toggle_fs_revealer">
<property name="overflow">visible</property>
<property name="transition_type">crossfade</property>
<property name="reveal-child">0</property>
<property name="visible">0</property>
<property name="valign">start</property>
<property name="halign">end</property>
<property name="margin-end">18</property>
<property name="margin-top">18</property>
<property name="child">
<object class="GtkButton">
<property name="icon-name">view-restore-symbolic</property>
<property name="tooltip-text" translatable="yes">Toggle Fullscreen</property>
<signal name="clicked" handler="toggle_fullscreen" swapped="no" />
</child>
<child>
<object class="GtkButton" id="next_btn">
<property name="icon-name">go-next-symbolic</property>
<property name="tooltip-text" translatable="yes">Next Attachment</property>
<signal name="clicked" handler="on_next_clicked" swapped="no" />
<style>
<class name="osd" />
<class name="media-viewer-fab" />
<class name="circular" />
</style>
</object>
</property>
</child>
</object>
</child>
<child type="overlay">
<object class="GtkRevealer" id="zoom_buttons_revealer">
<property name="overflow">visible</property>
<property name="transition_type">crossfade</property>
<property name="reveal-child">0</property>
<property name="visible">0</property>
<property name="valign">end</property>
<property name="halign">end</property>
<property name="margin-end">18</property>
<property name="margin-bottom">18</property>
<property name="child">
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="spacing">12</property>
<child>
<object class="GtkButton" id="zoom_out_btn">
<property name="icon-name">zoom-out-symbolic</property>
<property name="tooltip-text" translatable="yes">Zoom Out</property>
<signal name="clicked" handler="on_zoom_out_clicked" swapped="no" />
<style>
<class name="osd" />
<class name="media-viewer-fab" />
<class name="circular" />
</style>
</object>
</child>
<child>
<object class="GtkButton" id="zoom_in_btn">
<property name="icon-name">zoom-in-symbolic</property>
<property name="tooltip-text" translatable="yes">Zoom In</property>
<signal name="clicked" handler="on_zoom_in_clicked" swapped="no" />
<style>
<class name="osd" />
<class name="media-viewer-fab" />
<class name="circular" />
</style>
</object>
</child>
</object>
</property>
</property>
</object>
</child>
<child type="overlay">
<object class="GtkRevealer" id="toggle_fs_revealer">
<property name="overflow">visible</property>
<property name="transition_type">crossfade</property>
<property name="reveal-child">0</property>
<property name="visible">0</property>
<property name="valign">start</property>
<property name="halign">end</property>
<property name="margin-end">18</property>
<property name="margin-top">18</property>
<property name="child">
<object class="GtkButton">
<property name="icon-name">view-restore-symbolic</property>
<property name="tooltip-text" translatable="yes">Toggle Fullscreen</property>
<signal name="clicked" handler="toggle_fullscreen" swapped="no" />
<style>
<class name="osd" />
<class name="media-viewer-fab" />
<class name="circular" />
</style>
</object>
</child>
</property>
</object>
</child>
<child type="overlay">
<object class="GtkRevealer" id="zoom_buttons_revealer">
<property name="overflow">visible</property>
<property name="transition_type">crossfade</property>
<property name="reveal-child">0</property>
<property name="visible">0</property>
<property name="valign">end</property>
<property name="halign">end</property>
<property name="margin-end">18</property>
<property name="margin-bottom">18</property>
<property name="child">
<object class="AdwCarousel" id="carousel">
<property name="hexpand">1</property>
<property name="vexpand">1</property>
<object class="GtkBox">
<property name="orientation">horizontal</property>
<property name="spacing">12</property>
<child>
<object class="GtkButton" id="zoom_out_btn">
<property name="icon-name">zoom-out-symbolic</property>
<property name="tooltip-text" translatable="yes">Zoom Out</property>
<signal name="clicked" handler="on_zoom_out_clicked" swapped="no" />
<style>
<class name="osd" />
<class name="media-viewer-fab" />
<class name="circular" />
</style>
</object>
</child>
<child>
<object class="GtkButton" id="zoom_in_btn">
<property name="icon-name">zoom-in-symbolic</property>
<property name="tooltip-text" translatable="yes">Zoom In</property>
<signal name="clicked" handler="on_zoom_in_clicked" swapped="no" />
<style>
<class name="osd" />
<class name="media-viewer-fab" />
<class name="circular" />
</style>
</object>
</child>
</object>
</property>
</object>
</child>
<property name="child">
<object class="AdwCarousel" id="carousel">
<property name="hexpand">1</property>
<property name="vexpand">1</property>
</object>
</property>
</object>
</property>
</object>
</property>
Expand Down

0 comments on commit 9cd932d

Please sign in to comment.