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

Class ToggleColors

fletmint/toggle.py:6–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5@dataclass
6class ToggleColors:
7 label_text_color: str
8 default_outline_color: str
9 selected_outline_color: str
10 default_thumb_color: str
11 selected_thumb_color: str
12 selected_track_color: str
13 default_track_color: str = "" # Optional attribute not needed for the dark theme
14
15 @staticmethod
16 def dark():
17 return ToggleColors(
18 label_text_color="#515766",
19 default_outline_color="#494D5F",
20 selected_outline_color="#1f5eff",
21 default_thumb_color="#7b849c",
22 selected_thumb_color="#ffffff",
23 selected_track_color="#1f5eff",
24 )
25
26 @staticmethod
27 def light():
28 return ToggleColors(
29 label_text_color="#697492",
30 default_outline_color="#c1c9df",
31 selected_outline_color="#1f5eff",
32 default_thumb_color="#7b849c",
33 selected_thumb_color="#ffffff",
34 selected_track_color="#1f5eff",
35 default_track_color="#ffffff",
36 )
37
38
39class Toggle(ft.Switch):

Callers 2

darkMethod · 0.85
lightMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected