Demo version
All checks were successful
checks-impure / test (pull_request) Successful in 1m22s
checks / test (pull_request) Successful in 2m18s

This commit is contained in:
Luis Hebendanz 2024-01-30 14:02:52 +07:00
parent 4e30c4cfff
commit c00e5b3df3
4 changed files with 7 additions and 10 deletions

View File

@ -40,7 +40,6 @@ class Join:
@classmethod
def use(cls: Any) -> "Join":
if cls._instance is None:
print("Creating new instance")
cls._instance = cls.__new__(cls)
cls.list_store = Gio.ListStore.new(JoinValue)

View File

@ -31,7 +31,6 @@ class Views:
@classmethod
def use(cls: Any) -> "Views":
if cls._instance is None:
print("Creating new instance")
cls._instance = cls.__new__(cls)
cls.view = Adw.ViewStack()

View File

@ -136,7 +136,6 @@ class VMS:
@classmethod
def use(cls: Any) -> "VMS":
if cls._instance is None:
print("Creating new instance")
cls._instance = cls.__new__(cls)
cls.list_store = Gio.ListStore.new(VM)

View File

@ -8,7 +8,7 @@ from clan_vm_manager.models.use_join import Join, JoinValue
from clan_vm_manager.models.use_views import Views
gi.require_version("Adw", "1")
from gi.repository import Adw, Gio, GObject, Gtk
from gi.repository import Adw, Gdk, Gio, GObject, Gtk
from clan_vm_manager.models.use_vms import VM, VMS
@ -90,12 +90,12 @@ class ClanList(Gtk.Box):
row.set_subtitle_lines(1)
# # Avatar
# avatar = Adw.Avatar()
# avatar.set_custom_image(Gdk.Texture.new_from_filename(flake.icon))
# avatar.set_text(flake.clan_name + " " + flake.flake_attr)
# avatar.set_show_initials(True)
# avatar.set_size(50)
# row.add_prefix(avatar)
avatar = Adw.Avatar()
avatar.set_custom_image(Gdk.Texture.new_from_filename(flake.icon))
avatar.set_text(flake.clan_name + " " + flake.flake_attr)
avatar.set_show_initials(True)
avatar.set_size(50)
row.add_prefix(avatar)
# Switch
switch = Gtk.Switch()