(self)
| 69 | ) |
| 70 | |
| 71 | def did_mount(self): |
| 72 | self.colors = ( |
| 73 | ToggleSwitchColors.dark() |
| 74 | if self.page.theme_mode == ft.ThemeMode.DARK |
| 75 | else ToggleSwitchColors.light() |
| 76 | ) |
| 77 | self.update() |
| 78 | |
| 79 | def get_container(self, icon, active): |
| 80 | """Helper function to create individual toggle containers.""" |