Working dark theme switcher

This commit is contained in:
Qubasa
2024-05-16 19:32:05 +02:00
parent 908f9af671
commit 9f3c734b48
4 changed files with 75 additions and 116 deletions

View File

@@ -74,7 +74,7 @@ def render_option(name: str, option: dict[str, Any], level: int = 3) -> str:
read_only = option.get("readOnly")
res = f"""
{"#" * level} {sanitize(name)} {{#{sanitize(name)}}}
{"#" * level} {sanitize(name)}
{"Readonly" if read_only else ""}
{option.get("description", "No description available.")}