feat: add FS25_FarmHUD mod and FarmHUD desktop companion app
Initial commit: the FS25 Lua mod (live.json data export), the FS25-WebDashboard project (Node/web dashboard + PySide6 desktop variant), and FarmHUD (standalone PySide6 companion app with Discord Rich Presence, settings, and installer).
This commit is contained in:
@@ -0,0 +1,156 @@
|
||||
"""FarmHUD's visual identity: a tractor instrument-cluster, not a SaaS
|
||||
dashboard. Warm soil/dusk tones instead of cool corporate slate, a single
|
||||
harvest-gold accent (pulled from the wheat-sheaf icon), and two purposeful
|
||||
typefaces - Bahnschrift for the wordmark/headings (a technical, signage-like
|
||||
grotesk already on every Windows 10+ box) and Cascadia Mono for live
|
||||
numeric readouts (tabular figures, like a real digital gauge display).
|
||||
Everything else stays quiet so those two choices carry the personality.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
BG = "#14140f"
|
||||
PANEL = "#1d1f16"
|
||||
PANEL_BORDER = "#363a29"
|
||||
PANEL_BORDER_STRONG = "#4a5138"
|
||||
INK = "#f1ecdc"
|
||||
MUTED = "#9a9782"
|
||||
AMBER = "#e2a63c"
|
||||
AMBER_SOFT = "#8a6a2c"
|
||||
RUST = "#c1552f"
|
||||
SAGE = "#7a9b57"
|
||||
|
||||
HEADING_FONT = '"Bahnschrift SemiBold", "Segoe UI Semibold", "Segoe UI", sans-serif'
|
||||
MONO_FONT = '"Cascadia Mono", Consolas, "Courier New", monospace'
|
||||
BODY_FONT = '"Segoe UI", sans-serif'
|
||||
|
||||
STYLESHEET = f"""
|
||||
QWidget {{
|
||||
background: {BG};
|
||||
color: {INK};
|
||||
font-family: {BODY_FONT};
|
||||
font-size: 13px;
|
||||
}}
|
||||
QMainWindow, QDialog {{
|
||||
background: {BG};
|
||||
}}
|
||||
QLabel[role="title"] {{
|
||||
font-family: {HEADING_FONT};
|
||||
font-size: 19px;
|
||||
letter-spacing: 0.2px;
|
||||
}}
|
||||
QLabel[role="section-title"] {{
|
||||
font-family: {HEADING_FONT};
|
||||
font-size: 14px;
|
||||
color: {INK};
|
||||
}}
|
||||
QLabel[role="tile-label"] {{
|
||||
font-family: {HEADING_FONT};
|
||||
color: {MUTED};
|
||||
font-size: 11.5px;
|
||||
letter-spacing: 0.2px;
|
||||
}}
|
||||
QLabel[role="tile-value"] {{
|
||||
font-family: {MONO_FONT};
|
||||
font-size: 21px;
|
||||
font-weight: 600;
|
||||
color: {AMBER};
|
||||
}}
|
||||
QLabel[role="tile-value-lg"] {{
|
||||
font-family: {MONO_FONT};
|
||||
font-size: 26px;
|
||||
font-weight: 600;
|
||||
color: {AMBER};
|
||||
}}
|
||||
QLabel[role="row-value"] {{
|
||||
font-family: {MONO_FONT};
|
||||
font-size: 13px;
|
||||
color: {INK};
|
||||
}}
|
||||
QLabel[role="egg"] {{
|
||||
color: {AMBER};
|
||||
font-size: 12px;
|
||||
font-style: italic;
|
||||
}}
|
||||
QLabel[role="dim"] {{
|
||||
color: {MUTED};
|
||||
font-size: 11.5px;
|
||||
}}
|
||||
QFrame[role="tile"] {{
|
||||
background: {PANEL};
|
||||
border: 1px solid {PANEL_BORDER};
|
||||
border-radius: 4px;
|
||||
}}
|
||||
QFrame[role="tile-hero"] {{
|
||||
background: {PANEL};
|
||||
border: 1px solid {PANEL_BORDER_STRONG};
|
||||
border-left: 3px solid {AMBER};
|
||||
border-radius: 4px;
|
||||
}}
|
||||
QFrame[role="footer"] {{
|
||||
background: {PANEL};
|
||||
border-top: 1px solid {PANEL_BORDER};
|
||||
}}
|
||||
QFrame[role="header"] {{
|
||||
background: {PANEL};
|
||||
border-bottom: 1px solid {PANEL_BORDER};
|
||||
}}
|
||||
QPushButton {{
|
||||
background: {PANEL};
|
||||
border: 1px solid {PANEL_BORDER};
|
||||
border-radius: 4px;
|
||||
padding: 6px 12px;
|
||||
color: {INK};
|
||||
}}
|
||||
QPushButton:hover {{
|
||||
border-color: {AMBER_SOFT};
|
||||
color: {AMBER};
|
||||
}}
|
||||
QPushButton[flat="true"] {{
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: {MUTED};
|
||||
font-size: 16px;
|
||||
}}
|
||||
QPushButton[flat="true"]:hover {{
|
||||
color: {AMBER};
|
||||
}}
|
||||
QPushButton[role="primary"] {{
|
||||
background: {AMBER};
|
||||
border: none;
|
||||
color: #1c1204;
|
||||
font-weight: 600;
|
||||
}}
|
||||
QPushButton[role="primary"]:hover {{
|
||||
background: #edb658;
|
||||
}}
|
||||
QLineEdit, QSpinBox {{
|
||||
background: {BG};
|
||||
border: 1px solid {PANEL_BORDER};
|
||||
border-radius: 4px;
|
||||
padding: 5px 8px;
|
||||
color: {INK};
|
||||
}}
|
||||
QLineEdit:focus, QSpinBox:focus {{
|
||||
border-color: {AMBER_SOFT};
|
||||
}}
|
||||
QCheckBox {{
|
||||
spacing: 8px;
|
||||
}}
|
||||
QScrollArea {{
|
||||
border: none;
|
||||
}}
|
||||
QGroupBox {{
|
||||
border: 1px solid {PANEL_BORDER};
|
||||
border-radius: 4px;
|
||||
margin-top: 10px;
|
||||
padding-top: 14px;
|
||||
font-family: {HEADING_FONT};
|
||||
font-weight: 600;
|
||||
}}
|
||||
QGroupBox::title {{
|
||||
subcontrol-origin: margin;
|
||||
left: 10px;
|
||||
padding: 0 4px;
|
||||
color: {MUTED};
|
||||
}}
|
||||
"""
|
||||
Reference in New Issue
Block a user