Refactor Addressbook

This commit is contained in:
shekhar-cis 2022-06-20 20:07:58 +05:30
parent cced8fe84e
commit b8c39e8dce
Signed by untrusted user: shekhar-cis
GPG Key ID: F4F00AB04E83F9A7

View File

@ -20,8 +20,6 @@ from kivy.properties import (
from kivy.uix.screenmanager import Screen from kivy.uix.screenmanager import Screen
from kivy.app import App from kivy.app import App
import state
from bitmessagekivy.get_platform import platform from bitmessagekivy.get_platform import platform
from bitmessagekivy import kivy_helper_search from bitmessagekivy import kivy_helper_search
from bitmessagekivy.baseclass.common import ( from bitmessagekivy.baseclass.common import (
@ -86,7 +84,7 @@ class AddressBook(Screen, HelperAddressBook):
listItem.theme_text_color = "Custom" listItem.theme_text_color = "Custom"
listItem.text_color = ThemeClsColor listItem.text_color = ThemeClsColor
image = os.path.join( image = os.path.join(
state.imageDir, "text_images", "{}.png".format(avatarImageFirstLetter(item[0].strip())) self.kivy_state.imageDir, "text_images", "{}.png".format(avatarImageFirstLetter(item[0].strip()))
) )
message_row.ids.avater_img.source = image message_row.ids.avater_img.source = image
listItem.bind(on_release=partial( listItem.bind(on_release=partial(