[gtk] password entry: a better Caps Lock icon



commit 5251253fc00b601c1df9bc6a00f3aef67ea426c8
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Mar 14 18:59:35 2019 -0400

    password entry: a better Caps Lock icon
    
    This is more in line with how Caps Lock
    is typically indicated.

 gtk/gtkpasswordentry.c                                 |   2 +-
 gtk/icons/16x16/status/caps-lock-symbolic.symbolic.png | Bin 0 -> 154 bytes
 gtk/icons/scalable/status/caps-lock-symbolic.svg       |   3 +++
 3 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c
index 887620750c..ee61d05c59 100644
--- a/gtk/gtkpasswordentry.c
+++ b/gtk/gtkpasswordentry.c
@@ -116,7 +116,7 @@ gtk_password_entry_init (GtkPasswordEntry *entry)
   gtk_editable_init_delegate (GTK_EDITABLE (entry));
   g_signal_connect_swapped (priv->entry, "notify::has-focus", G_CALLBACK (focus_changed), entry);
 
-  priv->icon = gtk_image_new_from_icon_name ("dialog-warning-symbolic");
+  priv->icon = gtk_image_new_from_icon_name ("caps-lock-symbolic");
   gtk_widget_set_tooltip_text (priv->icon, _("Caps Lock is on"));
   gtk_container_add (GTK_CONTAINER (priv->box), priv->icon);
 
diff --git a/gtk/icons/16x16/status/caps-lock-symbolic.symbolic.png 
b/gtk/icons/16x16/status/caps-lock-symbolic.symbolic.png
new file mode 100644
index 0000000000..9951c0370d
Binary files /dev/null and b/gtk/icons/16x16/status/caps-lock-symbolic.symbolic.png differ
diff --git a/gtk/icons/scalable/status/caps-lock-symbolic.svg 
b/gtk/icons/scalable/status/caps-lock-symbolic.svg
new file mode 100644
index 0000000000..dce3c0e41f
--- /dev/null
+++ b/gtk/icons/scalable/status/caps-lock-symbolic.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg"; width="16" height="16">
+    <path d="M8.07.918L1 7.988h3v4h8v-4h3.143zM4 12.988v2h8v-2z" style="marker:none" color="#bebebe" 
fill="#2e3436"/>
+</svg>
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]