[SCRIPT] Updated

This commit is contained in:
t
2025-03-31 20:14:11 +02:00
parent 810f54cb65
commit 314a27eb42
472 changed files with 11721 additions and 921 deletions
@@ -0,0 +1,25 @@
from ignis.widgets import Widget
from typing import Callable
class ToggleBox(Widget.Box):
def __init__(
self,
label: str,
active: bool,
on_change: Callable,
css_classes: list[str] = [],
**kwargs,
):
super().__init__(
child=[
Widget.Label(label=label),
Widget.Switch(
halign="end",
hexpand=True,
active=active,
on_change=on_change,
),
],
css_classes=["toggle-box"] + css_classes,
)