gnome-control-center/panels/region/cc-region-panel.ui
Georges Basile Stavracas Neto 6f2875e467 region: Replace "Login Screen" toggle button by section
Rework the panel to have 2 groups: the user's language and
format; and the login screen's language and format. Remove
the now unused bottom label explainig the login screen.

Special-casing of single user systems is still present.

Related: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1587
2022-02-07 07:03:42 -03:00

132 lines
5.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcRegionPanel" parent="CcPanel">
<child type="content">
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkInfoBar" id="infobar">
<property name="revealed">False</property>
<property name="message-type">info</property>
<child>
<object class="GtkLabel">
<property name="hexpand">True</property>
<property name="wrap">True</property>
<property name="xalign">0.0</property>
<property name="label" translatable="yes">Language and format will be changed after next login</property>
<style>
<class name="heading" />
</style>
</object>
</child>
<child type="action">
<object class="GtkButton" id="restart_button">
<property name="valign">center</property>
<property name="label" translatable="yes">Logout…</property>
<style>
<class name="suggested-action"/>
</style>
<signal name="clicked" handler="restart_now" object="CcRegionPanel" swapped="yes"/>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesPage">
<child>
<object class="AdwPreferencesGroup">
<property name="description" translatable="yes">The language setting is used for interface text and web pages. Formats is used for numbers, dates, and currencies.</property>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Your Account</property>
<child>
<object class="AdwActionRow" id="language_row">
<property name="use-underline">True</property>
<property name="title" translatable="yes">_Language</property>
<property name="activatable">True</property>
<signal name="activated" handler="on_user_language_row_activated_cb" object="CcRegionPanel" swapped="no" />
<child>
<object class="GtkImage">
<property name="valign">center</property>
<property name="icon-name">go-next-symbolic</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="formats_row">
<property name="use-underline">True</property>
<property name="title" translatable="yes">_Formats</property>
<property name="activatable">True</property>
<signal name="activated" handler="on_user_formats_row_activated_cb" object="CcRegionPanel" swapped="no" />
<child>
<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="login_group">
<property name="title" translatable="yes">Login Screen</property>
<child>
<object class="AdwActionRow" id="login_language_row">
<property name="use-underline">True</property>
<property name="title" translatable="yes">_Language</property>
<property name="activatable">True</property>
<signal name="activated" handler="on_login_language_row_activated_cb" object="CcRegionPanel" swapped="no" />
<child>
<object class="GtkImage">
<property name="valign">center</property>
<property name="icon-name">go-next-symbolic</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="login_formats_row">
<property name="use-underline">True</property>
<property name="title" translatable="yes">_Formats</property>
<property name="activatable">True</property>
<signal name="activated" handler="on_login_formats_row_activated_cb" object="CcRegionPanel" swapped="no" />
<child>
<object class="GtkImage">
<property name="valign">center</property>
<property name="icon-name">go-next-symbolic</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>