user-panel: Add popover explaining about the "Administrator" option
This change adds a GtkPopover to explain about the "Administrator" option like in the mockups below: https://gitlab.gnome.org/Teams/Design/settings-mockups/-/raw/master/users/users.png
This commit is contained in:
parent
754283c2c2
commit
1ba63a360c
1 changed files with 30 additions and 1 deletions
|
@ -227,10 +227,39 @@
|
|||
<child>
|
||||
<object class="AdwActionRow" id="account_type_row">
|
||||
<property name="title" translatable="yes">_Administrator</property>
|
||||
<property name="subtitle" translatable="yes">Administrators can add and remove other users, and can change settings for all users.</property>
|
||||
<property name="subtitle-lines">0</property>
|
||||
<property name="use_underline">True</property>
|
||||
<property name="activatable-widget">account_type_switch</property>
|
||||
<child type="suffix">
|
||||
<object class="GtkMenuButton">
|
||||
<property name="tooltip-text" translatable="yes">Information</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="icon-name">help-about-symbolic</property>
|
||||
<style>
|
||||
<class name="flat"/>
|
||||
</style>
|
||||
<accessibility>
|
||||
<property name="label" translatable="yes">Information</property>
|
||||
</accessibility>
|
||||
<property name="popover">
|
||||
<object class="GtkPopover">
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="margin-top">6</property>
|
||||
<property name="margin-bottom">6</property>
|
||||
<property name="margin-start">6</property>
|
||||
<property name="margin-end">6</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="wrap">True</property>
|
||||
<property name="max-width-chars">50</property>
|
||||
<property name="label" translatable="yes">Administrators have extra abilities, including adding and removing users, changing login settings, and removing software. Parental controls cannot be applied to administrators.</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSwitch" id="account_type_switch">
|
||||
<property name="valign">center</property>
|
||||
|
|
Loading…
Add table
Reference in a new issue