summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsunflowerskater <sunflowerskater@tutanota.com>2023-02-14 14:06:17 -0300
committerFelipe Borges <felipeborges@gnome.org>2023-05-10 09:37:04 +0000
commit1ba63a360cf1c7f8bac6bcab70626be3169433a2 (patch)
treeb51b5bc5716a8ac4872eac179dc6b059f164ae45
parent754283c2c2a18ed9d82857df41a8c841e1850bd6 (diff)
downloadgnome-control-center-1ba63a360cf1c7f8bac6bcab70626be3169433a2.tar.gz
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
-rw-r--r--panels/user-accounts/cc-user-panel.ui31
1 files changed, 30 insertions, 1 deletions
diff --git a/panels/user-accounts/cc-user-panel.ui b/panels/user-accounts/cc-user-panel.ui
index 7b295bd45..1e0e1d5b4 100644
--- a/panels/user-accounts/cc-user-panel.ui
+++ b/panels/user-accounts/cc-user-panel.ui
@@ -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>