Merge pull request 'Demo version' (#776) from Qubasa-main into main
This commit is contained in:
@@ -40,7 +40,6 @@ class Join:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def use(cls: Any) -> "Join":
|
def use(cls: Any) -> "Join":
|
||||||
if cls._instance is None:
|
if cls._instance is None:
|
||||||
print("Creating new instance")
|
|
||||||
cls._instance = cls.__new__(cls)
|
cls._instance = cls.__new__(cls)
|
||||||
cls.list_store = Gio.ListStore.new(JoinValue)
|
cls.list_store = Gio.ListStore.new(JoinValue)
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ class Views:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def use(cls: Any) -> "Views":
|
def use(cls: Any) -> "Views":
|
||||||
if cls._instance is None:
|
if cls._instance is None:
|
||||||
print("Creating new instance")
|
|
||||||
cls._instance = cls.__new__(cls)
|
cls._instance = cls.__new__(cls)
|
||||||
cls.view = Adw.ViewStack()
|
cls.view = Adw.ViewStack()
|
||||||
|
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ class VMS:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def use(cls: Any) -> "VMS":
|
def use(cls: Any) -> "VMS":
|
||||||
if cls._instance is None:
|
if cls._instance is None:
|
||||||
print("Creating new instance")
|
|
||||||
cls._instance = cls.__new__(cls)
|
cls._instance = cls.__new__(cls)
|
||||||
cls.list_store = Gio.ListStore.new(VM)
|
cls.list_store = Gio.ListStore.new(VM)
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ from clan_vm_manager.models.use_join import Join, JoinValue
|
|||||||
from clan_vm_manager.models.use_views import Views
|
from clan_vm_manager.models.use_views import Views
|
||||||
|
|
||||||
gi.require_version("Adw", "1")
|
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
|
from clan_vm_manager.models.use_vms import VM, VMS
|
||||||
|
|
||||||
@@ -90,12 +90,12 @@ class ClanList(Gtk.Box):
|
|||||||
row.set_subtitle_lines(1)
|
row.set_subtitle_lines(1)
|
||||||
|
|
||||||
# # Avatar
|
# # Avatar
|
||||||
# avatar = Adw.Avatar()
|
avatar = Adw.Avatar()
|
||||||
# avatar.set_custom_image(Gdk.Texture.new_from_filename(flake.icon))
|
avatar.set_custom_image(Gdk.Texture.new_from_filename(flake.icon))
|
||||||
# avatar.set_text(flake.clan_name + " " + flake.flake_attr)
|
avatar.set_text(flake.clan_name + " " + flake.flake_attr)
|
||||||
# avatar.set_show_initials(True)
|
avatar.set_show_initials(True)
|
||||||
# avatar.set_size(50)
|
avatar.set_size(50)
|
||||||
# row.add_prefix(avatar)
|
row.add_prefix(avatar)
|
||||||
|
|
||||||
# Switch
|
# Switch
|
||||||
switch = Gtk.Switch()
|
switch = Gtk.Switch()
|
||||||
|
|||||||
Reference in New Issue
Block a user