refactor: externalize app configuration to JSON and unify UI color scheme constants

This commit is contained in:
joel
2026-07-19 23:55:08 +02:00
parent d130dd267b
commit 293aa5a907
4 changed files with 97 additions and 55 deletions
+6 -7
View File
@@ -17,14 +17,13 @@ from typing import Callable
from urllib.request import urlopen, Request
from urllib.error import URLError
import json
from .config import APP_INFO
# Aktuelle Version des Programms
CURRENT_VERSION = "2.0.0"
# Gitea API-URL für Releases
GITEA_API_BASE = "https://git.joelunger.de/api/v1"
REPO_OWNER = "public"
REPO_NAME = "fcco-Converter"
# Aktuelle Version des Programms und Repos (aus config.json)
CURRENT_VERSION = APP_INFO["app_version"]
GITEA_API_BASE = APP_INFO["gitea_api_base"]
REPO_OWNER = APP_INFO["repo_owner"]
REPO_NAME = APP_INFO["repo_name"]
RELEASES_URL = f"{GITEA_API_BASE}/repos/{REPO_OWNER}/{REPO_NAME}/releases"