window: Bind headerbar opacity to controls

No purpose yet, but will help when we want to implement
fading. Need to have support for closures in Rust first.
This commit is contained in:
Christopher Davis 2021-09-24 05:58:55 -07:00
parent e45b89f854
commit 293dc3c124
3 changed files with 16 additions and 1 deletions

View file

@ -15,6 +15,11 @@
<object class="GtkHeaderBar" id="headerbar">
<property name="css-classes">titlebar</property>
<property name="show_title_buttons" bind-source="IvWindow" bind-property="fullscreened" bind-flags="sync-create|invert-boolean"/>
<binding name="opacity">
<lookup type="GtkWidget" name="opacity">
<lookup name="controls">image_view</lookup>
</lookup>
</binding>
<child type="end">
<object class="GtkMenuButton" id="menu_button">
<property name="icon-name">open-menu-symbolic</property>