Spaces:
Sleeping
Sleeping
Download modules/dashboard/theme.py from sky-meilin/SkyOSFullCore: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/spaces/sky-meilin/SkyOSFullCore/resolve/main/modules/dashboard/theme.py
- Command line
-
hf download hf://spaces/sky-meilin/SkyOSFullCore/modules/dashboard/theme.py
-
curl -L -o theme.py https://huggingface.co/spaces/sky-meilin/SkyOSFullCore/resolve/main/modules/dashboard/theme.py
1.35 kB
| """ | |
| theme.py | |
| SkyOS Dashboard Theme | |
| Zentrale Darstellungskonfiguration für das Armaturenbrett. | |
| Autor: Sky Meilin | |
| Projekt: SkyOS | |
| """ | |
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| # --------------------------------------------------------- | |
| # Theme Definition | |
| # --------------------------------------------------------- | |
| class DashboardTheme: | |
| """ | |
| Farb- und Style-Konfiguration des Dashboards. | |
| """ | |
| # Hintergrund | |
| background: str = "#0b1120" | |
| surface: str = "#111827" | |
| panel: str = "#1f2937" | |
| # Text | |
| text: str = "#f8fafc" | |
| muted: str = "#94a3b8" | |
| # Statusfarben | |
| online: str = "#22c55e" | |
| warning: str = "#eab308" | |
| error: str = "#ef4444" | |
| offline: str = "#64748b" | |
| # Akzente | |
| primary: str = "#38bdf8" | |
| secondary: str = "#6366f1" | |
| # UI | |
| border_radius: str = "12px" | |
| panel_padding: str = "16px" | |
| # --------------------------------------------------------- | |
| # Standard Theme | |
| # --------------------------------------------------------- | |
| DEFAULT_THEME = DashboardTheme() | |
| # --------------------------------------------------------- | |
| # Theme Zugriff | |
| # --------------------------------------------------------- | |
| def get_theme() -> DashboardTheme: | |
| """ | |
| Gibt das aktive Dashboard Theme zurück. | |
| """ | |
| return DEFAULT_THEME |