Fix: img.cache gehört ins Repo (Control-Panel-Bitmaps) + EQ-Koordinatenpfad

img.cache (~378 MB) sind die vor-gerenderten Button-/Status-Bitmaps der
Control-Panels und NICHT regenerierbar (keine PNG-Quellen). Ohne sie bricht das
Panel mit "Failed to get image ..." (z.B. cs_in3_off). Waren versehentlich per
.gitignore ausgeschlossen -> zurück ins Repo.

Zusätzlich: VA_SVG_WINPATH deckt jetzt auch diagram.py ab, damit der EQ nicht auf
negatives Y (außerhalb des Panels) positioniert wird.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
maik
2026-08-20 20:31:13 +02:00
co-authored by Claude Opus 4.8
parent a7c93fa266
commit dbc60c7504
46 changed files with 33 additions and 11 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
# Generierte Skin-Bitmap-Caches (werden aus den SVGs neu erzeugt, ~378 MB)
**/img.cache
**/img.cache.zip
# HINWEIS: img.cache (~378 MB) MUSS ins Repo - es sind die vor-gerenderten
# Button-/Status-Bitmaps der Control-Panels. Es gibt KEINE PNG-Quellen, aus denen
# sie regeneriert werden koennten. Ohne sie: "Failed to get image ...".
# GIMP-Editing-Quellen (nicht Laufzeit)
**/*.xcf
+3 -2
View File
@@ -77,8 +77,9 @@ Kompatibilitäts-Fixes, weil die App Linux (`os.name='posix'`) wie einen **Mac**
Koordinatenpfad; Linux nimmt fälschlich den Mac-Pfad (Y gespiegelt/versetzt). **Experimentell:**
mit `VA_SVG_WINPATH=1 ./run.sh` erzwingt man den Windows-Pfad. Siehe `STATUS.md`.
- **RTA-Messung (Mikrofon)** braucht Audio-Durchreichung (ALSA/Pulse) in den Container.
- **`img.cache`** (vor-gerenderte Skin-Bitmaps) ist **nicht** im Repo — die App rendert aus den
vorhandenen SVGs und baut den Cache bei Bedarf neu (siehe `.gitignore`).
- **`img.cache`** (vor-gerenderte Button-/Status-Bitmaps der Control-Panels, ~378 MB) ist
**notwendige Laufzeitdaten** und im Repo enthalten — es gibt keine PNG-Quellen, aus denen sie
regeneriert werden könnten. Fehlen sie, meldet die App `Failed to get image …`.
## Aufbau
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
}q.
+15 -6
View File
@@ -51,12 +51,21 @@ except Exception:
# Windows-Pfad, indem mac_names so gesetzt wird, dass os.name='posix' NICHT enthalten ist.
# Aktivieren mit VA_SVG_WINPATH=1.
if os.environ.get('VA_SVG_WINPATH') == '1':
try:
import svg_panel as _sp
_sp.mac_names = '__winpath__'
sys.stderr.write('[launch] VA_SVG_WINPATH=1 -> svg_panel nutzt Windows-Koordinatenpfad\n')
except Exception:
pass
# GUI-Module, deren `mac_names`-Zweige reine Koordinaten/Rendering-Logik sind
# (Mac-Pfad = Y gespiegelt/versetzt -> auf Linux falsch: Fader nicht greifbar,
# EQ-Diagramm auf negatives Y = ausserhalb des Panels). Bewusst NUR GUI-Module -
# die Protokoll-Module (d_protocol, d_keepalive) nutzen mac_names fuer Zeilenenden/
# Serial und werden NICHT angefasst.
_gui_mods = ['svg_panel', 'diagram']
_done = []
for _m in _gui_mods:
try:
__import__(_m)
sys.modules[_m].mac_names = '__winpath__'
_done.append(_m)
except Exception:
pass
sys.stderr.write('[launch] VA_SVG_WINPATH=1 -> Windows-Koordinatenpfad fuer: %s\n' % ', '.join(_done))
if __name__ == '__main__':
frame = one_unit.main_application(sys.argv)
+1
View File
@@ -0,0 +1 @@
}q.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
}q.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
}q.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
{0
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
}q.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
}q.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
{0
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
{0
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
}q.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
}q.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+1
View File
@@ -0,0 +1 @@
}q.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.