from textual.theme import Theme from src.tui.theme_manager import theme_manager print("Loaded theme manager count:", len(theme_manager.themes)) t_sample = list(theme_manager.themes.values())[0] print("Sample theme data:", t_sample) t_obj = Theme( name=t_sample["id"], primary=t_sample["primary"], secondary=t_sample.get("secondary"), accent=t_sample.get("accent"), background=t_sample["background"], surface=t_sample["surface"], dark=True ) print("Created Textual Theme object successfully:", t_obj.name)