gnome-control-center/panels/system/about/cc-about-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

140 lines
5.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcAboutPage" parent="AdwNavigationPage">
<property name="title" translatable="yes">About</property>
<property name="tag">system-about-page</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="AdwClamp">
<property name="orientation">vertical</property>
<property name="maximum-size">192</property>
<property name="tightening-threshold">192</property>
<property name="child">
<object class="GtkPicture" id="os_logo">
<property name="can-shrink">False</property>
<property name="content-fit">scale-down</property>
<property name="alternative-text" translatable="yes">System Logo</property>
</object>
</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<!-- Device name -->
<child>
<object class="CcHostnameEntry" id="hostname_row">
<property name="title" translatable="yes">Device Name</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<!-- OS Name -->
<child>
<object class="CcListRow" id="os_name_row">
<property name="activatable">False</property>
<property name="title" translatable="yes"
comments="Translators: this field contains the distro name and version">Operating System</property>
</object>
</child>
<!-- Hardware Model -->
<child>
<object class="CcListRow" id="hardware_model_row">
<property name="visible">False</property>
<property name="activatable">False</property>
<property name="title" translatable="yes">Hardware Model</property>
</object>
</child>
<!-- Processor -->
<child>
<object class="CcListRow" id="processor_row">
<property name="activatable">False</property>
<property name="title" translatable="yes">Processor</property>
</object>
</child>
<!-- Memory -->
<child>
<object class="CcListRow" id="memory_row">
<property name="activatable">False</property>
<property name="title" translatable="yes">Memory</property>
</object>
</child>
<!-- Disk Capacity -->
<child>
<object class="CcListRow" id="disk_row">
<property name="activatable">False</property>
<property name="title" translatable="yes">Disk Capacity</property>
<property name="secondary-label" translatable="yes">Calculating…</property>
</object>
</child>
<!-- System Details -->
<child>
<object class="AdwActionRow">
<property name="activatable">True</property>
<property name="title" translatable="yes">System _Details</property>
<property name="use-underline">True</property>
<signal name="activated" handler="cc_about_page_open_system_details" swapped="yes"/>
<child type="suffix">
<object class="GtkImage">
<property name="valign">center</property>
<property name="icon-name">go-next-symbolic</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="software_updates_group">
<!-- Software Updates -->
<child>
<object class="AdwActionRow">
<property name="activatable">True</property>
<property name="title" translatable="yes">Software _Updates</property>
<property name="use-underline">True</property>
<signal name="activated" handler="cc_about_page_open_software_update" swapped="yes"/>
<child type="suffix">
<object class="GtkImage">
<property name="valign">center</property>
<property name="icon-name">adw-external-link-symbolic</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</template>
</interface>