650p is way too much and makes the bottom bar to
appear when there is still space available in
the headerbar. Use 450p so the bottom bar will only
appear when the headerbar doesn't have enough
space available.
Follow-up from a4224d9e21
62 lines
2.6 KiB
XML
62 lines
2.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="CcRemoteDesktopPage" parent="AdwNavigationPage">
|
|
<property name="title" translatable="yes">Remote Desktop</property>
|
|
<property name="tag">remote-desktop</property>
|
|
<property name="visible" bind-source="desktop_sharing_page" bind-property="visible" bind-flags="sync-create"/>
|
|
<property name="child">
|
|
<object class="AdwBreakpointBin">
|
|
<property name="width-request">300</property>
|
|
<property name="height-request">200</property>
|
|
<child>
|
|
<object class="AdwBreakpoint">
|
|
<condition>max-width: 450sp</condition>
|
|
<setter object="header_bar" property="title-widget"/>
|
|
<setter object="view_switcher_bar" property="reveal">True</setter>
|
|
</object>
|
|
</child>
|
|
<property name="child">
|
|
<object class="AdwToolbarView">
|
|
<child type="top">
|
|
<object class="AdwHeaderBar" id="header_bar">
|
|
<property name="title-widget">
|
|
<object class="AdwViewSwitcher">
|
|
<property name="stack">stack</property>
|
|
<property name="policy">wide</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child type="bottom">
|
|
<object class="AdwViewSwitcherBar" id="view_switcher_bar">
|
|
<property name="stack">stack</property>
|
|
</object>
|
|
</child>
|
|
<property name="content">
|
|
<object class="AdwViewStack" id="stack">
|
|
<child>
|
|
<object class="AdwViewStackPage">
|
|
<property name="title" translatable="yes">Desktop Sharing</property>
|
|
<property name="icon-name">preferences-desktop-remote-desktop-symbolic</property>
|
|
<property name="child">
|
|
<object class="CcDesktopSharingPage" id="desktop_sharing_page"/>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwViewStackPage">
|
|
<property name="title" translatable="yes">Remote Login</property>
|
|
<property name="icon-name">preferences-desktop-display-symbolic</property>
|
|
<property name="child">
|
|
<object class="CcRemoteSessionPage" id="remote_session_page"/>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</template>
|
|
</interface>
|