Skip to content

Commit

Permalink
managed images in assets/img folders
Browse files Browse the repository at this point in the history
  • Loading branch information
WithSJ committed Jan 6, 2021
1 parent 4118507 commit 6bfb91b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
File renamed without changes
File renamed without changes
2 changes: 1 addition & 1 deletion libs/uix/baseclass/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def search_account(self,search_field):
twolineW= TwoLineAvatarListItem(text=f"{search_field}",
secondary_text=f"@{search_field}")

twolineW.add_widget(ImageLeftWidget(source="hamster_icon.png"))
twolineW.add_widget(ImageLeftWidget(source="assets//img//hamster_icon.png"))

self.ids.search_items.add_widget(twolineW)
# # ----- ] end dummy search
Expand Down
4 changes: 2 additions & 2 deletions libs/uix/kv/profile.kv
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

Button:
id:profile_image
background_normal: "profile.jpg"
background_down: "profile.jpg"
background_normal: "assets//img//profile.jpg"
background_down: "assets//img//profile.jpg"
on_release: root.change_profile_img()


Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def all_chats(self):
secondary_text="@username",
on_touch_up=self.chat_room)

twolineW.add_widget(ImageLeftWidget(source="hamster_icon.png"))
twolineW.add_widget(ImageLeftWidget(source="assets//img//hamster_icon.png"))

self.screen_manager.get_screen("home").ids.chat_tab.add_widget(twolineW)
# ----- ] end dummy chats
Expand Down

0 comments on commit 6bfb91b

Please sign in to comment.