🎉 First commit

This commit is contained in:
Paillat
2025-12-08 13:28:28 +01:00
committed by Paillat-dev
commit dd77e3d433
26 changed files with 2294 additions and 0 deletions

21
src/renderer/flag.py Normal file
View File

@@ -0,0 +1,21 @@
# Copyright (c) NiceBots
# SPDX-License-Identifier: MIT
from dataclasses import dataclass
from typing import Literal
@dataclass
class Flag:
url: str
flag_pole_type: Literal["gallery"] = "gallery"
background: Literal["blue-sky", "custom"] = "custom"
backgroundcolor: str = "1a1a1e"
def to_url_params(self) -> dict[str, str]:
return {
"src": self.url,
"flagpoletype": self.flag_pole_type,
"background": self.background,
"backgroundcolor": self.backgroundcolor,
}