MCPcopy Create free account
hub / github.com/Bbalduzz/fletmint / toggle_theme

Method toggle_theme

fletmint/toggle.py:85–90  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

83 setattr(self, attr, getattr(colors, attr))
84
85 def toggle_theme(self):
86 self.theme = (
87 ft.ThemeMode.LIGHT if self.theme == ft.ThemeMode.DARK else ft.ThemeMode.DARK
88 )
89 self.apply_theme()
90 self.update()

Callers 1

change_themeFunction · 0.45

Calls 1

apply_themeMethod · 0.95

Tested by

no test coverage detected