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

Class ToggleSwitchColors

fletmint/toggle_switch.py:6–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5@dataclass
6class ToggleSwitchColors:
7 container_background_color: str
8 container_border_color: str
9 active_icon_color: str
10 non_active_icon_color: str
11 active_switch_background_color: str
12
13 @staticmethod
14 def dark():
15 return ToggleSwitchColors(
16 container_background_color="#1b1d22",
17 container_border_color="#494D5F",
18 active_icon_color="#c3c3c8",
19 non_active_icon_color="#494D5F",
20 active_switch_background_color="#333742",
21 )
22
23 @staticmethod
24 def light():
25 return ToggleSwitchColors(
26 container_background_color="#ffffff",
27 container_border_color="#e0e4ed",
28 active_icon_color="#ffffff",
29 non_active_icon_color="#7b849c",
30 active_switch_background_color="#1f5eff",
31 )
32
33
34class ToggleSwitch(ft.Container):

Callers 2

darkMethod · 0.85
lightMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected