Per mockups in https://gitlab.gnome.org/Teams/Design/settings-mockups/-/raw/master/system/system-panel.png This adds a thin abstract CcSystemPage object with a "summary" property. Each CcListRow::subtitle is binded to its corresponded CcSystemPage::summary. See #2241
94 lines
4.5 KiB
XML
94 lines
4.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="CcSystemPanel" parent="CcPanel">
|
|
<child type="child">
|
|
<object class="AdwNavigationView" id="navigation">
|
|
|
|
<child>
|
|
<object class="AdwNavigationPage">
|
|
<property name="title" translatable="yes">System</property>
|
|
<property name="child">
|
|
<object class="AdwToolbarView">
|
|
<child type="top">
|
|
<object class="AdwHeaderBar"/>
|
|
</child>
|
|
|
|
<property name="content">
|
|
<object class="AdwPreferencesPage">
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
|
|
<child>
|
|
<object class="CcListRow">
|
|
<property name="title" translatable="yes">_Region &amp; Language</property>
|
|
<property name="subtitle" bind-source="region_page" bind-property="summary" bind-flags="sync-create|bidirectional"/>
|
|
<property name="icon-name">org.gnome.Settings-region-symbolic</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="show-arrow">True</property>
|
|
<property name="action-name">navigation.push</property>
|
|
<property name="action-target">'system-region-page'</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="CcListRow">
|
|
<property name="title" translatable="yes">_Date &amp; Time</property>
|
|
<property name="subtitle" bind-source="datetime_page" bind-property="summary" bind-flags="sync-create|bidirectional"/>
|
|
<property name="icon-name">org.gnome.Settings-time-symbolic</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="show-arrow">True</property>
|
|
<property name="action-name">navigation.push</property>
|
|
<property name="action-target">'system-date-time-page'</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="CcListRow">
|
|
<property name="title" translatable="yes">_Remote Desktop</property>
|
|
<property name="subtitle" bind-source="remote_desktop_page" bind-property="summary" bind-flags="sync-create|bidirectional"/>
|
|
<property name="icon-name">preferences-desktop-display-symbolic</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="show-arrow">True</property>
|
|
<property name="action-name">navigation.push</property>
|
|
<property name="action-target">'system-remote-desktop-page'</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="CcListRow">
|
|
<property name="title" translatable="yes">About</property>
|
|
<property name="subtitle" bind-source="about_page" bind-property="summary" bind-flags="sync-create|bidirectional"/>
|
|
<property name="icon-name">info-symbolic</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="show-arrow">True</property>
|
|
<property name="action-name">navigation.push</property>
|
|
<property name="action-target">'system-about-page'</property>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="CcRegionPage" id="region_page"/>
|
|
</child>
|
|
<child>
|
|
<object class="CcDateTimePage" id="datetime_page"/>
|
|
</child>
|
|
<child>
|
|
<object class="CcRemoteDesktopPage" id="remote_desktop_page"/>
|
|
</child>
|
|
<child>
|
|
<object class="CcAboutPage" id="about_page"/>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|