Skip to content

Commit 7f1863a

Browse files
committed
polkit: Show the reveal icon to reveal the password
The button should reflect its action, not the status of the entry. This is better because: - It's a button, it should reflect what it does. - It aligns with the way this is done in other parts of Cinnamon, slick-greeter, Mint tools and Firefox - The default icon depicts an eye to reveal, that's an easier concept to grasp than a hidden status with an icon representing the negation of a simpler one.
1 parent 9211718 commit 7f1863a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/st/st-password-entry.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ st_password_entry_init (StPasswordEntry *entry)
160160

161161
priv->peek_password_icon = g_object_new (ST_TYPE_ICON,
162162
"style-class", "peek-password",
163-
"icon-name", "xsi-view-conceal-symbolic",
163+
"icon-name", "xsi-view-reveal-symbolic",
164164
NULL);
165165
st_entry_set_secondary_icon (ST_ENTRY (entry), priv->peek_password_icon);
166166

@@ -257,12 +257,12 @@ st_password_entry_set_password_visible (StPasswordEntry *entry,
257257
if (priv->password_visible)
258258
{
259259
clutter_text_set_password_char (CLUTTER_TEXT (clutter_text), 0);
260-
st_icon_set_icon_name (ST_ICON (priv->peek_password_icon), "xsi-view-reveal-symbolic");
260+
st_icon_set_icon_name (ST_ICON (priv->peek_password_icon), "xsi-view-conceal-symbolic");
261261
}
262262
else
263263
{
264264
clutter_text_set_password_char (CLUTTER_TEXT (clutter_text), BULLET);
265-
st_icon_set_icon_name (ST_ICON (priv->peek_password_icon), "xsi-view-conceal-symbolic");
265+
st_icon_set_icon_name (ST_ICON (priv->peek_password_icon), "xsi-view-reveal-symbolic");
266266
}
267267

268268
g_object_notify (G_OBJECT (entry), "password-visible");

0 commit comments

Comments
 (0)