From: Alexander Mikhaylenko Date: Fri, 22 Apr 2022 12:21:02 +0000 (+0400) Subject: icons: Use the proper eye icons X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~4^2~227^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1ca2d41a98f7511ac3125ed761f456fc54b78b70;p=gtk4.git 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. --- 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/16x16/status/eye-not-looking-symbolic.symbolic.png b/gtk/icons/16x16/status/eye-not-looking-symbolic.symbolic.png deleted file mode 100644 index 3773d3cc30..0000000000 Binary files a/gtk/icons/16x16/status/eye-not-looking-symbolic.symbolic.png and /dev/null differ diff --git a/gtk/icons/16x16/status/eye-open-negative-filled-symbolic.symbolic.png b/gtk/icons/16x16/status/eye-open-negative-filled-symbolic.symbolic.png deleted file mode 100644 index b642dd7566..0000000000 Binary files a/gtk/icons/16x16/status/eye-open-negative-filled-symbolic.symbolic.png and /dev/null 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 @@ + + + + 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 @@ + + + + diff --git a/gtk/icons/scalable/status/eye-not-looking-symbolic.svg b/gtk/icons/scalable/status/eye-not-looking-symbolic.svg deleted file mode 100644 index 792a22ad8a..0000000000 --- a/gtk/icons/scalable/status/eye-not-looking-symbolic.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/gtk/icons/scalable/status/eye-open-negative-filled-symbolic.svg b/gtk/icons/scalable/status/eye-open-negative-filled-symbolic.svg deleted file mode 100644 index f4e133a928..0000000000 --- a/gtk/icons/scalable/status/eye-open-negative-filled-symbolic.svg +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - image/svg+xml - - Gnome Symbolic Icon Theme - - - - Gnome Symbolic Icon Theme - - - - - - - - - - - - - - \ No newline at end of file