[gtk/wip/exalm/eye-icons] icons: Use the proper eye icons
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/eye-icons] icons: Use the proper eye icons
- Date: Fri, 22 Apr 2022 12:36:40 +0000 (UTC)
commit 1ca2d41a98f7511ac3125ed761f456fc54b78b70
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Apr 22 16:21:02 2022 +0400
icons: Use the proper eye icons
adwaita-icon-theme has more appropriate icons for showing/hiding text now.
use those, and in the process fix the fact GtkPasswordEntry has been using
them the other way around.
demos/gtk-demo/hypertext.c | 2 +-
gtk/gtkpasswordentry.c | 8 +++----
.../actions/view-conceal-symbolic.symbolic.png | Bin 0 -> 320 bytes
.../actions/view-reveal-symbolic.symbolic.png | Bin 0 -> 292 bytes
.../status/eye-not-looking-symbolic.symbolic.png | Bin 324 -> 0 bytes
.../eye-open-negative-filled-symbolic.symbolic.png | Bin 295 -> 0 bytes
.../scalable/actions/view-conceal-symbolic.svg | 4 ++++
.../scalable/actions/view-reveal-symbolic.svg | 4 ++++
.../scalable/status/eye-not-looking-symbolic.svg | 3 ---
.../status/eye-open-negative-filled-symbolic.svg | 26 ---------------------
10 files changed, 13 insertions(+), 34 deletions(-)
---
diff --git a/demos/gtk-demo/hypertext.c b/demos/gtk-demo/hypertext.c
index e47f691f53..a704784815 100644
--- a/demos/gtk-demo/hypertext.c
+++ b/demos/gtk-demo/hypertext.c
@@ -100,7 +100,7 @@ show_page (GtkTextView *text_view,
theme = gtk_icon_theme_get_for_display (gtk_widget_get_display (GTK_WIDGET (text_view)));
icon = gtk_icon_theme_lookup_icon (theme,
- "eye-not-looking-symbolic",
+ "view-conceal-symbolic",
NULL,
16,
1,
diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c
index b6a6dea51b..f0b90f942f 100644
--- a/gtk/gtkpasswordentry.c
+++ b/gtk/gtkpasswordentry.c
@@ -169,12 +169,12 @@ visibility_toggled (GObject *object,
{
if (gtk_text_get_visibility (GTK_TEXT (entry->entry)))
{
- gtk_image_set_from_icon_name (GTK_IMAGE (entry->peek_icon), "eye-open-negative-filled-symbolic");
+ gtk_image_set_from_icon_name (GTK_IMAGE (entry->peek_icon), "view-conceal-symbolic");
gtk_widget_set_tooltip_text (entry->peek_icon, _("Hide Text"));
}
else
{
- gtk_image_set_from_icon_name (GTK_IMAGE (entry->peek_icon), "eye-not-looking-symbolic");
+ gtk_image_set_from_icon_name (GTK_IMAGE (entry->peek_icon), "view-reveal-symbolic");
gtk_widget_set_tooltip_text (entry->peek_icon, _("Show Text"));
}
@@ -625,7 +625,7 @@ gtk_password_entry_set_show_peek_icon (GtkPasswordEntry *entry,
{
GtkGesture *press;
- entry->peek_icon = gtk_image_new_from_icon_name ("eye-not-looking-symbolic");
+ entry->peek_icon = gtk_image_new_from_icon_name ("view-reveal-symbolic");
gtk_widget_set_tooltip_text (entry->peek_icon, _("Show Text"));
gtk_widget_set_parent (entry->peek_icon, GTK_WIDGET (entry));
@@ -703,7 +703,7 @@ gtk_password_entry_set_extra_menu (GtkPasswordEntry *entry,
section = g_menu_new ();
item = g_menu_item_new (_("_Show Text"), "misc.toggle-visibility");
- g_menu_item_set_attribute (item, "touch-icon", "s", "eye-not-looking-symbolic");
+ g_menu_item_set_attribute (item, "touch-icon", "s", "view-reveal-symbolic");
g_menu_append_item (section, item);
g_object_unref (item);
diff --git a/gtk/icons/16x16/actions/view-conceal-symbolic.symbolic.png
b/gtk/icons/16x16/actions/view-conceal-symbolic.symbolic.png
new file mode 100644
index 0000000000..1f085a1963
Binary files /dev/null and b/gtk/icons/16x16/actions/view-conceal-symbolic.symbolic.png differ
diff --git a/gtk/icons/16x16/actions/view-reveal-symbolic.symbolic.png
b/gtk/icons/16x16/actions/view-reveal-symbolic.symbolic.png
new file mode 100644
index 0000000000..6ae93c2de7
Binary files /dev/null and b/gtk/icons/16x16/actions/view-reveal-symbolic.symbolic.png differ
diff --git a/gtk/icons/scalable/actions/view-conceal-symbolic.svg
b/gtk/icons/scalable/actions/view-conceal-symbolic.svg
new file mode 100644
index 0000000000..172b73ed3d
--- /dev/null
+++ b/gtk/icons/scalable/actions/view-conceal-symbolic.svg
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg height="16px" viewBox="0 0 16 16" width="16px" xmlns="http://www.w3.org/2000/svg">
+ <path d="m 1.53125 0.46875 l -1.0625 1.0625 l 14 14 l 1.0625 -1.0625 l -2.382812 -2.382812 c 1.265624
-1.0625 2.171874 -2.496094 2.589843 -4.097657 c -0.914062 -3.523437 -4.097656 -5.984375 -7.738281 -5.988281 c
-1.367188 0.011719 -2.707031 0.371094 -3.894531 1.042969 z m 6.46875 3.53125 c 2.210938 0 4 1.789062 4 4 c
-0.003906 0.800781 -0.246094 1.578125 -0.699219 2.238281 l -1.46875 -1.46875 c 0.105469 -0.242187 0.164063
-0.503906 0.167969 -0.769531 c 0 -1.105469 -0.894531 -2 -2 -2 c -0.265625 0.003906 -0.527344 0.0625 -0.769531
0.167969 l -1.46875 -1.46875 c 0.660156 -0.453125 1.4375 -0.695313 2.238281 -0.699219 z m -6.144531 0.917969
c -0.753907 0.898437 -1.296875 1.957031 -1.59375 3.09375 c 0.914062 3.523437 4.097656 5.984375 7.738281
5.988281 c 0.855469 -0.007812 1.703125 -0.152344 2.511719 -0.425781 l -1.667969 -1.667969 c -0.277344
0.058594 -0.5625 0.089844 -0.84375 0.09375 c -2.210938 0 -4 -1.789062 -4 -4 c 0.003906 -0.28125 0.035156
-0.566406 0.09375 -0.84375 z m 0 0" f
ill="#2e3436"/>
+</svg>
diff --git a/gtk/icons/scalable/actions/view-reveal-symbolic.svg
b/gtk/icons/scalable/actions/view-reveal-symbolic.svg
new file mode 100644
index 0000000000..41ae3733a5
--- /dev/null
+++ b/gtk/icons/scalable/actions/view-reveal-symbolic.svg
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<svg height="16px" viewBox="0 0 16 16" width="16px" xmlns="http://www.w3.org/2000/svg">
+ <path d="m 8 2 c -3.648438 0.003906 -6.832031 2.476562 -7.738281 6.007812 c 0.914062 3.527344 4.097656
5.988282 7.738281 5.992188 c 3.648438 -0.003906 6.832031 -2.476562 7.738281 -6.011719 c -0.914062 -3.523437
-4.097656 -5.984375 -7.738281 -5.988281 z m 0 2 c 2.210938 0 4 1.789062 4 4 s -1.789062 4 -4 4 s -4 -1.789062
-4 -4 s 1.789062 -4 4 -4 z m 0 2 c -1.105469 0 -2 0.894531 -2 2 s 0.894531 2 2 2 s 2 -0.894531 2 -2 s
-0.894531 -2 -2 -2 z m 0 0" fill="#2e3436"/>
+</svg>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]