Privzete nastavitve - uskladitev v kodo programa

This commit is contained in:
2026-03-22 16:17:12 +01:00
parent e09ebbe165
commit 48536d57ab
2 changed files with 11 additions and 7 deletions

View File

@@ -63,17 +63,18 @@ class SongProjector:
# Nastavitve # Nastavitve
# -------------------------------------------------- # --------------------------------------------------
DEFAULT_SETTINGS = { DEFAULT_SETTINGS = {
"font_name": "Times New Roman", "font_name": "Noto Sans",
"bg_color": "#000000", "bg_color": "#000000",
"fg_color": "#FFFFFF", "fg_color": "#FFFFFF",
"font_size": 32, "font_size": 32,
"screen_width_percent": 60, "screen_width_percent": 60,
"font_bold": True, "font_bold": False,
"show_song_info": True, "show_song_info": True,
"split_by_stanza": False, # TODO: mogoče nekoč (prelom po kitici namesto po višini) "split_by_stanza": False,
"web_port": 5000,
"db_update_url": "", "db_update_url": "",
"ntfy_topic": "", "ntfy_topic": "",
"installation_label": "Projekcija: DEFAULT" "installation_label": "Projekcija"
} }
if not os.path.exists(SETTINGS_PATH): if not os.path.exists(SETTINGS_PATH):

View File

@@ -8,15 +8,18 @@ import subprocess
import sys import sys
DEFAULT_SETTINGS = { DEFAULT_SETTINGS = {
"font_name": "Times New Roman", "font_name": "Noto Sans",
"bg_color": "#000000", "bg_color": "#000000",
"fg_color": "#FFFFFF", "fg_color": "#FFFFFF",
"font_size": 32, "font_size": 32,
"screen_width_percent": 60, "screen_width_percent": 60,
"font_bold": True, "font_bold": False,
"show_song_info": True, "show_song_info": True,
"split_by_stanza": False, "split_by_stanza": False,
"web_port": 5000 "web_port": 5000,
"db_update_url": "",
"ntfy_topic": "",
"installation_label": "Projekcija"
} }
SETTINGS_FILE = "settings.json" SETTINGS_FILE = "settings.json"