Commit 5c024031 authored by Eisha Chen-yen-su's avatar Eisha Chen-yen-su

MediaViewer: Change full screen button icon

This changes the full screen's button icon when in full screen mode to
show the icon "view-restore-symbolic" as it is more appropriate.

See https://gitlab.gnome.org/World/fractal/issues/265
parent f74fbb57
......@@ -276,7 +276,7 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<child>
<object class="GtkImage">
<object class="GtkImage" id="full_screen_button_icon">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">view-fullscreen-symbolic</property>
......
......@@ -239,6 +239,11 @@ impl AppOp {
media_viewer_headerbar.remove(&media_viewer_back_button);
media_viewer_headerbar.set_show_close_button(false);
let full_screen_button_icon = self.ui.builder
.get_object::<gtk::Image>("full_screen_button_icon")
.expect("Can't find full_screen_button_icon in ui file.");
full_screen_button_icon.set_property_icon_name(Some("view-restore-symbolic"));
headerbar_revealer.add(&media_viewer_headerbar_box);
self.update_media_viewport();
......@@ -275,6 +280,11 @@ impl AppOp {
media_viewer_headerbar.set_child_position(&media_viewer_back_button, 0);
media_viewer_headerbar.set_show_close_button(true);
let full_screen_button_icon = self.ui.builder
.get_object::<gtk::Image>("full_screen_button_icon")
.expect("Can't find full_screen_button_icon in ui file.");
full_screen_button_icon.set_property_icon_name(Some("view-fullscreen-symbolic"));
stack_header.add_named(&media_viewer_headerbar_box, "media-viewer");
stack_header.set_visible_child_name("media-viewer");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment