[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,15 @@
from ...qs_button import QSButton
from user_options import user_options
class DarkModeButton(QSButton):
__gtype_name__ = "DarkModeButton"
def __init__(self):
super().__init__(
label="Dark",
icon_name="night-light-symbolic",
on_activate=lambda x: user_options.material.set_dark_mode(True),
on_deactivate=lambda x: user_options.material.set_dark_mode(False),
active=user_options.material.bind("dark_mode"),
)