mirror of
https://github.com/johndoe6345789/WizardMerge.git
synced 2026-04-24 13:44:55 +00:00
18 lines
418 B
Python
18 lines
418 B
Python
"""Core theme definitions."""
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
from typing import Dict
|
|
|
|
|
|
@dataclass
|
|
class Theme:
|
|
"""Simple theme container for color palette values."""
|
|
|
|
name: str
|
|
palette: Dict[str, str]
|
|
|
|
def as_dict(self) -> Dict[str, str]:
|
|
"""Return a dictionary representation usable by QML contexts."""
|
|
return {"name": self.name, **self.palette}
|