21 lines
392 B
Python
21 lines
392 B
Python
from collections.abc import Callable
|
|
from dataclasses import dataclass
|
|
|
|
import flet as ft
|
|
|
|
|
|
@dataclass(frozen=True)
|
|
class Example:
|
|
id: str
|
|
title: str
|
|
description: str
|
|
category: str
|
|
builder: Callable[[], ft.Control]
|
|
|
|
|
|
@dataclass
|
|
class GallerySettings:
|
|
theme_mode: ft.ThemeMode = ft.ThemeMode.SYSTEM
|
|
seed_color: str = "#6750A4"
|
|
show_source_buttons: bool = True
|
|
|