diff options
author | sunflowerskater <sunflowerskater@tutanota.com> | 2023-02-14 14:07:37 -0300 |
---|---|---|
committer | Felipe Borges <felipeborges@gnome.org> | 2023-05-10 09:37:04 +0000 |
commit | 1300d4b2d7d4ace8defdaf2b96ecb7305a983c1d (patch) | |
tree | 2ca85c479d753275ee229a3350cd9558a343ee7d | |
parent | 1ba63a360cf1c7f8bac6bcab70626be3169433a2 (diff) | |
download | gnome-control-center-1300d4b2d7d4ace8defdaf2b96ecb7305a983c1d.tar.gz |
add-user-dialog: 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/-/blob/master/users/add-user.png
-rw-r--r-- | panels/user-accounts/cc-add-user-dialog.ui | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/panels/user-accounts/cc-add-user-dialog.ui b/panels/user-accounts/cc-add-user-dialog.ui index 42ea44d83..723870e37 100644 --- a/panels/user-accounts/cc-add-user-dialog.ui +++ b/panels/user-accounts/cc-add-user-dialog.ui @@ -129,8 +129,36 @@ <object class="AdwActionRow"> <property name="activatable-widget">local_account_type_switch</property> <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. Parental controls cannot be applied to administrators.</property> - <property name="subtitle-lines">3</property> + <child type="suffix"> + <object class="GtkMenuButton"> + <property name="tooltip-text">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 type="suffix"> <object class="GtkSwitch" id="local_account_type_switch"> <property name="valign">center</property> |