gnome-control-center/panels/system/region/cc-region-page.ui
Felipe Borges 8da25aaef5 system: Replace dynamic System row subtitles with static text
Row subtitles in Settings are typically a description of the main label or setting.
You can see this in Mouse & Touchpad, Privacy, Sharing, and Wi-Fi.
For the System panel we did something a bit different and used the subtitle to show
the status of each panel.

Given the standard use of subtitles elsewhere, this feels a bit surprising which,
as a result, makes the panel harder to read. I think that a standard description
would probably also be more useful than the current labels.

Mockups https://gitlab.gnome.org/Teams/Design/settings-mockups/-/blob/master/system/system-panel.png?ref_type=heads

This also removes the thin CcSystemPage abstract class because it was
only introduced to add the support for dynamic System row subtitle. Now
this abstraction is no longer necessary.

Fixes #2776
2024-01-04 11:38:47 +00:00

82 lines
3.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcRegionPage" parent="AdwNavigationPage">
<property name="title" translatable="yes">Region &amp; Language</property>
<property name="tag">system-region-page</property>
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="AdwBanner" id="banner">
<property name="title" translatable="yes">Language and format will be changed after next login</property>
<property name="button-label" translatable="yes">Log _Out…</property>
<signal name="button-clicked" handler="restart_now" object="CcRegionPage" swapped="yes"/>
</object>
</child>
<child>
<object class="AdwPreferencesPage">
<property name="description" translatable="yes">The language setting is used for interface text and web pages. Formats are used for numbers, dates, and currencies.</property>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Your Account</property>
<child>
<object class="CcListRow" id="language_row">
<property name="title" translatable="yes">_Language</property>
<property name="activatable">True</property>
<property name="show-arrow">True</property>
<signal name="activated" handler="on_user_language_row_activated_cb" object="CcRegionPage" swapped="yes" />
</object>
</child>
<child>
<object class="CcListRow" id="formats_row">
<property name="title" translatable="yes">_Formats</property>
<property name="activatable">True</property>
<property name="show-arrow">True</property>
<signal name="activated" handler="on_user_formats_row_activated_cb" object="CcRegionPage" swapped="yes" />
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="login_group">
<property name="title" translatable="yes">Login Screen</property>
<child>
<object class="CcListRow" id="login_language_row">
<property name="title" translatable="yes">L_anguage</property>
<property name="activatable">True</property>
<property name="show-arrow">True</property>
<signal name="activated" handler="on_login_language_row_activated_cb" object="CcRegionPage" swapped="yes" />
</object>
</child>
<child>
<object class="CcListRow" id="login_formats_row">
<property name="title" translatable="yes">Fo_rmats</property>
<property name="activatable">True</property>
<property name="show-arrow">True</property>
<signal name="activated" handler="on_login_formats_row_activated_cb" object="CcRegionPage" swapped="yes" />
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</template>
</interface>