Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,9 +37,9 @@ except Exception:
|
|
| 37 |
APP_DIR = os.getcwd()
|
| 38 |
SESSION_FILE = "/tmp/forge_session.json"
|
| 39 |
# --- Branding
|
| 40 |
-
LOGO_AUTOFIT =
|
| 41 |
LOGO_HEIGHT_PX = 60 # used only if LOGO_AUTOFIT is False
|
| 42 |
-
LOGO_SCALE =
|
| 43 |
LOGO_AUTOFIT = os.getenv("FORGE_LOGO_AUTOFIT", "1") == "1" if "FORGE_LOGO_AUTOFIT" in os.environ else LOGO_AUTOFIT
|
| 44 |
LOGO_HEIGHT_PX = int(os.getenv("FORGE_LOGO_PX", LOGO_HEIGHT_PX))
|
| 45 |
LOGO_SCALE = float(os.getenv("FORGE_LOGO_SCALE", LOGO_SCALE))
|
|
@@ -232,9 +232,9 @@ def load_settings() -> dict:
|
|
| 232 |
"shape_aliases_enabled": True,
|
| 233 |
"shape_aliases": [],
|
| 234 |
"excel_thumb_px": 128,
|
| 235 |
-
"logo_auto":
|
| 236 |
"logo_px": 60,
|
| 237 |
-
"logo_scale":
|
| 238 |
"shape_aliases_persist": True,
|
| 239 |
}
|
| 240 |
|
|
|
|
| 37 |
APP_DIR = os.getcwd()
|
| 38 |
SESSION_FILE = "/tmp/forge_session.json"
|
| 39 |
# --- Branding
|
| 40 |
+
LOGO_AUTOFIT = True # match logo height to title+subtitles stack
|
| 41 |
LOGO_HEIGHT_PX = 60 # used only if LOGO_AUTOFIT is False
|
| 42 |
+
LOGO_SCALE = 0.7 # multiplier when auto-fitting
|
| 43 |
LOGO_AUTOFIT = os.getenv("FORGE_LOGO_AUTOFIT", "1") == "1" if "FORGE_LOGO_AUTOFIT" in os.environ else LOGO_AUTOFIT
|
| 44 |
LOGO_HEIGHT_PX = int(os.getenv("FORGE_LOGO_PX", LOGO_HEIGHT_PX))
|
| 45 |
LOGO_SCALE = float(os.getenv("FORGE_LOGO_SCALE", LOGO_SCALE))
|
|
|
|
| 232 |
"shape_aliases_enabled": True,
|
| 233 |
"shape_aliases": [],
|
| 234 |
"excel_thumb_px": 128,
|
| 235 |
+
"logo_auto": True,
|
| 236 |
"logo_px": 60,
|
| 237 |
+
"logo_scale": 0.7,
|
| 238 |
"shape_aliases_persist": True,
|
| 239 |
}
|
| 240 |
|