|
13 | 13 | # Global variable to track phrases.txt modification time. |
14 | 14 | last_phrases_mtime = os.path.getmtime("phrases.txt") |
15 | 15 |
|
| 16 | +HEADER_TEXT = "COMMIT !BINGO" |
| 17 | +HEADER_TEXT_COLOR = "#0CB2B3" # Color for header text |
| 18 | + |
16 | 19 | FREE_SPACE_TEXT = "FREE MEAT" |
17 | 20 | FREE_SPACE_TEXT_COLOR = "#FF7f33" |
18 | 21 |
|
|
25 | 28 |
|
26 | 29 | HOME_BG_COLOR = "#100079" # Background for home page |
27 | 30 | STREAM_BG_COLOR = "#00FF00" # Background for stream page |
28 | | -HEADER_TEXT_COLOR = "#0CB2B3" # Color for header text |
| 31 | + |
29 | 32 |
|
30 | 33 | HEADER_FONT_FAMILY = "'Super Carnival', sans-serif" |
31 | 34 | BOARD_TILE_FONT = "Inter" # Set the desired Google Font for board tiles |
@@ -443,7 +446,7 @@ def setup_head(background_color: str): |
443 | 446 |
|
444 | 447 | # Use full width with padding so the header spans edge-to-edge |
445 | 448 | with ui.element("div").classes("w-full"): |
446 | | - ui.label("COMMIT !BINGO").classes("fit-header text-center").style(f"font-family: {HEADER_FONT_FAMILY}; color: {HEADER_TEXT_COLOR};") |
| 449 | + ui.label(f"{HEADER_TEXT}).classes("fit-header text-center").style(f"font-family: {HEADER_FONT_FAMILY}; color: {HEADER_TEXT_COLOR};") |
447 | 450 |
|
448 | 451 | def get_google_font_css(font_name: str, weight: str, style: str, uniquifier: str) -> str: |
449 | 452 | """ |
@@ -628,4 +631,4 @@ def generate_new_board(): |
628 | 631 | app.mount("/static", StaticFiles(directory="static"), name="static") |
629 | 632 |
|
630 | 633 | # Run the NiceGUI app |
631 | | -ui.run(port=8080, title="Commit Bingo", dark=False) |
| 634 | +ui.run(port=8080, title=f"{HEADER_TEXT}, dark=False) |
0 commit comments