Daniel Brötzmann pushed to branch gtk4 at gajim / gajim
Commits: 0a1d1fd8 by wurstsalat at 2024-10-29T21:08:51+01:00 refactor: StartChat: Use feather-user-plus for Add new chat - - - - - 2 changed files: - + gajim/data/icons/hicolor/scalable/devices/feather-user-plus-symbolic.svg - gajim/gtk/start_chat.py Changes: ===================================== gajim/data/icons/hicolor/scalable/devices/feather-user-plus-symbolic.svg ===================================== @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user-plus"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="8.5" cy="7" r="4"></circle><line x1="20" y1="8" x2="20" y2="14"></line><line x1="23" y1="11" x2="17" y2="11"></line></svg> \ No newline at end of file ===================================== gajim/gtk/start_chat.py ===================================== @@ -4,14 +4,19 @@ from __future__ import annotations -from typing import Any, Generic, Type, TypeVar +from typing import Any from typing import cast +from typing import Generic +from typing import Type +from typing import TypeVar from enum import Enum -from gi.repository import GObject, Gdk, Gio +from gi.repository import Gdk from gi.repository import GdkPixbuf +from gi.repository import Gio from gi.repository import GLib +from gi.repository import GObject from gi.repository import Gtk from nbxmpp import JID from nbxmpp.errors import CancelledError @@ -46,8 +51,10 @@ from gajim.gtk.groupchat_nick import NickChooser from gajim.gtk.menus import get_start_chat_row_menu from gajim.gtk.tooltips import ContactTooltip -from gajim.gtk.util import AccountBadge, GroupBadgeBox, get_icon_theme +from gajim.gtk.util import AccountBadge from gajim.gtk.util import GajimPopover +from gajim.gtk.util import get_icon_theme +from gajim.gtk.util import GroupBadgeBox from gajim.gtk.util import IdleBadge from gajim.gtk.util import SignalManager from gajim.gtk.widgets import GajimAppWindow @@ -919,7 +926,13 @@ def __init__( if is_new: theme = get_icon_theme() avatar_paintable = theme.lookup_icon( - 'avatar-default', None, AvatarSize.CHAT, scale, Gtk.TextDirection.NONE, 0) + 'feather-user-plus-symbolic', + None, + AvatarSize.CHAT, + scale, + Gtk.TextDirection.NONE, + 0, + ) else: avatar_paintable = contact.get_avatar(AvatarSize.CHAT, scale) View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/0a1d1fd881be20dbdfd272a0eab89766f3fe29fd -- View it on GitLab: https://dev.gajim.org/gajim/gajim/-/commit/0a1d1fd881be20dbdfd272a0eab89766f3fe29fd You're receiving this email because of your account on dev.gajim.org.
_______________________________________________ Commits mailing list -- [email protected] To unsubscribe send an email to [email protected]
