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,290 @@
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--bg: #0e1512;
|
||||
--panel: #161f1b;
|
||||
--panel-border: #26332c;
|
||||
--text: #eaf2ec;
|
||||
--text-dim: #8fa39a;
|
||||
--accent: #5fd68a;
|
||||
--accent-dim: #2f6b4a;
|
||||
--warn: #e0b34d;
|
||||
--danger: #e0644d;
|
||||
--rpm: #4d9be0;
|
||||
--grid-line: #22302a;
|
||||
}
|
||||
|
||||
[data-theme="light"] {
|
||||
color-scheme: light;
|
||||
--bg: #f2f5f2;
|
||||
--panel: #ffffff;
|
||||
--panel-border: #dbe4dd;
|
||||
--text: #16211b;
|
||||
--text-dim: #5c6d63;
|
||||
--accent: #1f9d54;
|
||||
--accent-dim: #bfe8cf;
|
||||
--warn: #a56a00;
|
||||
--danger: #b53a24;
|
||||
--rpm: #1c6fb5;
|
||||
--grid-line: #e2e9e3;
|
||||
}
|
||||
|
||||
* { box-sizing: border-box; }
|
||||
|
||||
html, body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.app { min-height: 100vh; display: flex; flex-direction: column; }
|
||||
|
||||
.topbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 12px 20px;
|
||||
background: var(--panel);
|
||||
border-bottom: 1px solid var(--panel-border);
|
||||
}
|
||||
|
||||
.brand { display: flex; align-items: baseline; gap: 10px; }
|
||||
.brand-mark {
|
||||
font-weight: 800;
|
||||
letter-spacing: 1px;
|
||||
color: var(--accent);
|
||||
font-size: 15px;
|
||||
padding: 3px 8px;
|
||||
border: 1px solid var(--accent-dim);
|
||||
border-radius: 6px;
|
||||
}
|
||||
.brand-title { font-weight: 600; font-size: 16px; color: var(--text-dim); }
|
||||
.brand-sub { font-size: 12px; color: var(--text-dim); opacity: .7; }
|
||||
|
||||
.topbar-right { display: flex; align-items: center; gap: 10px; }
|
||||
|
||||
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
|
||||
.status-dot {
|
||||
width: 9px; height: 9px; border-radius: 50%;
|
||||
background: var(--danger);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 25%, transparent);
|
||||
}
|
||||
.status-dot.live {
|
||||
background: var(--accent);
|
||||
box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
|
||||
}
|
||||
|
||||
.icon-btn {
|
||||
background: transparent;
|
||||
border: 1px solid var(--panel-border);
|
||||
color: var(--text);
|
||||
border-radius: 6px;
|
||||
width: 32px; height: 32px;
|
||||
cursor: pointer;
|
||||
font-size: 15px;
|
||||
}
|
||||
.icon-btn:hover { border-color: var(--accent); }
|
||||
|
||||
.grid {
|
||||
flex: 1;
|
||||
display: grid;
|
||||
gap: 14px;
|
||||
padding: 14px;
|
||||
grid-template-columns: 1.4fr 1fr;
|
||||
grid-template-areas:
|
||||
"time vehicle"
|
||||
"weather vehicle"
|
||||
"farm vehicle"
|
||||
"storage vehicle"
|
||||
"table table";
|
||||
max-width: 1400px;
|
||||
margin: 0 auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.grid { grid-template-columns: 1fr; grid-template-areas: "vehicle" "time" "weather" "farm" "storage" "table"; }
|
||||
}
|
||||
|
||||
.panel {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--panel-border);
|
||||
border-radius: 12px;
|
||||
padding: 14px 16px 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.vehicle-panel { grid-area: vehicle; }
|
||||
.time-panel { grid-area: time; }
|
||||
.weather-panel { grid-area: weather; }
|
||||
.farm-panel { grid-area: farm; }
|
||||
.storage-panel { grid-area: storage; }
|
||||
.table-panel { grid-area: table; }
|
||||
|
||||
.panel-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
|
||||
.panel-header h2 { margin: 0; font-size: 14px; letter-spacing: .3px; color: var(--text-dim); text-transform: uppercase; }
|
||||
.panel-sub { font-size: 12px; color: var(--text-dim); }
|
||||
|
||||
.panel-toggle {
|
||||
flex: 0 0 auto;
|
||||
background: transparent;
|
||||
border: none;
|
||||
color: var(--text-dim);
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
padding: 2px 4px;
|
||||
line-height: 1;
|
||||
transition: transform .2s ease;
|
||||
}
|
||||
.panel-toggle:hover { color: var(--text); }
|
||||
.panel.collapsed .panel-toggle { transform: rotate(-90deg); }
|
||||
.panel.collapsed .panel-body { display: none; }
|
||||
.panel.collapsed { padding-bottom: 14px; }
|
||||
|
||||
.link-btn {
|
||||
background: transparent;
|
||||
border: 1px solid var(--panel-border);
|
||||
color: var(--text-dim);
|
||||
border-radius: 6px;
|
||||
padding: 3px 8px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.link-btn:hover { border-color: var(--accent); color: var(--text); }
|
||||
.link-btn.active { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
|
||||
|
||||
#vehicleName { color: var(--text) !important; text-transform: none !important; font-size: 16px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.vehicle-panel .panel-header { gap: 10px; }
|
||||
#followMyVehicleBtn { flex: 0 0 auto; }
|
||||
.manual-select-hint { font-size: 11px; color: var(--warn); margin: -4px 0 8px; }
|
||||
|
||||
.gauge-row { display: flex; gap: 10px; }
|
||||
.gauge-box { flex: 1; text-align: center; }
|
||||
.gauge { width: 100%; max-width: 220px; } /* keep the arc compact even in a wide panel */
|
||||
.gauge-track, .gauge-fill { fill: none; stroke-width: 14; stroke-linecap: round; }
|
||||
.gauge-track { stroke: var(--grid-line); }
|
||||
.gauge-fill {
|
||||
stroke: var(--accent);
|
||||
stroke-dasharray: 251.33; /* pi * radius(80) - must match the arc's actual path length */
|
||||
stroke-dashoffset: 251.33;
|
||||
transition: stroke-dashoffset .25s ease, opacity .15s ease;
|
||||
opacity: 0; /* hidden at 0% by default rather than relying on dashoffset alone -
|
||||
round linecaps can leave a stray dot of color at the arc's start
|
||||
even at "empty", this guarantees a clean look at 0 */
|
||||
}
|
||||
.gauge-fill.has-value { opacity: 1; }
|
||||
.gauge-fill-rpm { stroke: var(--rpm); }
|
||||
.gauge-value { fill: var(--text); font-size: 30px; font-weight: 700; text-anchor: middle; font-family: inherit; }
|
||||
.gauge-unit { fill: var(--text-dim); font-size: 11px; text-anchor: middle; font-family: inherit; }
|
||||
.gauge-caption { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
|
||||
|
||||
.stat-row, .farm-row { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
|
||||
.stat-chip {
|
||||
flex: 1;
|
||||
min-width: 90px;
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--grid-line);
|
||||
border-radius: 8px;
|
||||
padding: 8px 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
.stat-label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .3px; }
|
||||
.stat-value { font-size: 15px; font-weight: 600; }
|
||||
.stat-value.active { color: var(--accent); }
|
||||
|
||||
.bar-row { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
|
||||
.bar-block { }
|
||||
.bar-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-bottom: 4px; }
|
||||
.bar-track { height: 10px; background: var(--grid-line); border-radius: 5px; overflow: hidden; }
|
||||
.bar-fill { height: 100%; width: 0%; transition: width .3s ease, background-color .3s ease; }
|
||||
.bar-fuel { background: var(--warn); }
|
||||
.bar-damage { background: var(--danger); }
|
||||
.bar-dirt { background: #8a6a3d; }
|
||||
|
||||
.sparkline-block { margin-top: 14px; }
|
||||
#speedHistory { width: 100%; height: 48px; display: block; }
|
||||
|
||||
.implements-block { margin-top: 14px; }
|
||||
.implements-empty { font-size: 12px; color: var(--text-dim); }
|
||||
.implements-list { display: flex; flex-direction: column; gap: 8px; }
|
||||
.implement-card {
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--grid-line);
|
||||
border-radius: 8px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
.implement-name { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
|
||||
.implement-fill { margin-top: 6px; }
|
||||
.implement-fill:first-of-type { margin-top: 0; }
|
||||
.implement-empty-tank { font-size: 11px; color: var(--text-dim); }
|
||||
.implement-chained { border-left: 2px solid var(--accent-dim); }
|
||||
|
||||
.clock { font-size: 42px; font-weight: 700; letter-spacing: 1px; }
|
||||
.time-sub { display: flex; gap: 14px; color: var(--text-dim); font-size: 13px; margin-top: 4px; flex-wrap: wrap; }
|
||||
|
||||
.weather-now { display: flex; align-items: center; gap: 14px; }
|
||||
.weather-icon { font-size: 40px; }
|
||||
.weather-type { font-size: 16px; font-weight: 600; }
|
||||
.weather-temp { color: var(--text-dim); font-size: 13px; }
|
||||
.weather-badges { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
|
||||
.weather-badge {
|
||||
font-size: 11px;
|
||||
padding: 3px 8px;
|
||||
border-radius: 999px;
|
||||
background: var(--grid-line);
|
||||
color: var(--text-dim);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.weather-badge.active { background: color-mix(in srgb, var(--rpm) 20%, transparent); color: var(--rpm); }
|
||||
|
||||
.forecast-strip { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; }
|
||||
.forecast-empty { color: var(--text-dim); font-size: 12px; padding: 8px 0; }
|
||||
.forecast-day {
|
||||
flex: 0 0 auto;
|
||||
min-width: 64px;
|
||||
text-align: center;
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--grid-line);
|
||||
border-radius: 8px;
|
||||
padding: 8px 6px;
|
||||
}
|
||||
.forecast-day .fc-label { font-size: 11px; color: var(--text-dim); }
|
||||
.forecast-day .fc-icon { font-size: 20px; margin: 4px 0; }
|
||||
.forecast-day .fc-temp { font-size: 11px; color: var(--text-dim); }
|
||||
|
||||
.storage-subhead { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .3px; margin: 10px 0 6px; }
|
||||
.storage-subhead:first-of-type { margin-top: 0; }
|
||||
.storage-empty { font-size: 12px; color: var(--text-dim); }
|
||||
.storage-list { display: flex; flex-direction: column; gap: 8px; }
|
||||
.storage-item {
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--grid-line);
|
||||
border-radius: 8px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
.storage-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
|
||||
.storage-fill-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); padding: 2px 0; }
|
||||
.storage-fill-row span:last-child { color: var(--text); }
|
||||
.storage-animal-count { font-size: 15px; font-weight: 600; }
|
||||
.storage-animal-sub { font-size: 11px; color: var(--text-dim); }
|
||||
|
||||
.production-recipe-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; margin-top: 8px; }
|
||||
.production-recipe-head:first-of-type { margin-top: 6px; }
|
||||
.production-flow { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
|
||||
.production-status { font-size: 10px; padding: 2px 7px; border-radius: 999px; background: var(--grid-line); color: var(--text-dim); font-weight: 500; white-space: nowrap; }
|
||||
.production-status.ok { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent); }
|
||||
.production-status.warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
|
||||
.production-content-head { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .3px; margin-top: 10px; margin-bottom: 4px; }
|
||||
|
||||
.table-wrap { overflow-x: auto; }
|
||||
table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
||||
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--grid-line); white-space: nowrap; }
|
||||
th { color: var(--text-dim); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; }
|
||||
tbody tr { cursor: pointer; }
|
||||
tbody tr:hover { background: var(--grid-line); }
|
||||
tbody tr.selected { background: color-mix(in srgb, var(--accent) 14%, transparent); }
|
||||
Reference in New Issue
Block a user