[275] Umbau: Farbe oder Stift je Status, gedämpfte Vorgabe, eigene Farben je Etappe
Wunsch Maintainer 17.11.: Umbau-Farben nicht mehr hart, Farbe oder Stift wählbar, weniger leuchtendes Gelb und Rot. Vorgabe (renovation::default_style, eine Stelle für Plan, Schnitt, Ansicht, Axo, 3D, Cycles-Umbaufarben, Panel): Abbruch #e8c35a statt #ffd800, Neu #c8524a mit Linie #9e3a33 statt #e3001b/#c00016, Bestand #a6a6a6 unverändert. Begründung im Bild (doc/review-275/01, 01b, 02): Ocker bleibt auf weissem Papier klar gelb und neben dem Grau unterscheidbar, hat aber mehr Kontrast als das Signalgelb (Leuchtdichte ~0.58 statt ~0.70); das Ziegelrot ist ruhig, die Wand-Füllung deutlich gegen den grauen Bestand. Richtwerte unverändert übernommen. Eine eigene Abbruch-Linie (dunkles Ocker #ad8a2c) wurde ausprobiert: Möbel und Baum „zu fällen“ werden kräftiger, aber die Wandkontur wird ocker statt schwarz gestrichelt und verschwimmt mit der Füllung — darum Linie weiter „wie ohne Filter“ (dünnes Abbruch-Strichwerk bleibt blass, offen in TODO). Modell (Rust, gen:types): RenovationStyle.fillPen/linePen (ColorPen-Id; Farbe aus dem aktiven Stiftsatz beim Lesen, nicht eingebacken: ein S/W-Stiftsatz färbt den Umbauplan um; Stift ohne Eintrag ⇒ freie Farbe/Vorgabe), RenovationPhase.styles (eigene Farben der Etappe über der Projektfarbe). Kern: renovation::style/phase_style/apply_own, View.phase_styles; View::treat nimmt die Etappen-Farbe, solange das Element seinen eigenen Status zeigt (im Stand einer späteren Etappe ist es Bestand), Ersatzstücke nach der Etappe ihrer Öffnung, Sanierung je Schicht über treat; colors() (Tusche behält Farben) und key() mit Etappen-Farben. Abfrage renovationStyles (Vorgabe, Projekt, Etappen aufgelöst) — TS rechnet keine Farben mehr (DEFAULT_RENOVATION_STYLES entfernt, renovationStyleOf fragt den Kern). project_refs prüft die Stifte. Oberfläche: gemeinsamer Editor ui/RenovationStyleEditor.tsx mit dem PenColorField der App (Frei/Stift), gestrichelt, Zurücksetzen je Status — im Umbau-Panel (Abschnitt „Darstellung“, Knopf „SIA-Vorgabe“; je Etappe ein Farbmuster-Knopf mit eigenem Editor und „Farben des Projekts verwenden“) und im Ressourcen-Tab „Umbau“ (ersetzt die input type=color). Ops setRenovationStylesOps/setPhaseStylesOps/patchRenovationStyles (Farbe und Stift schliessen sich aus). Statusleisten-Punkt in der Projektfarbe (useRenovationSwatches, hört nur auf Umbau/Stiftsätze). CSS-Muster über --reno-*. Beispiel :umbau: Etappe 2 (Anbau) Neu gedämpft blau #5b84b1. Geprüft: Kern cargo test --release (1913 + robustness 14) und --features web robustness_web (3) grün, neu renovation_style_tests (6); WASM build:core --no-opt; tsc; vitest gesamt 3640 grün (neu model/renovationStyles.test.ts), Goldens ohne Änderung (kein Golden mit Umbau-Farben); e2e renovation271, renovationPanel271, renovation274, renderCount (43 Renders je Wand-Änderung, unverändert) und neu renovationStyles275 grün (Port 5196). Angesehen: CLI-SVG --hatch Grundriss EG 1:50 und Schnitt C vorher/nachher, Etappe 2 blau, Panel hell/dunkel im Browser-Build (Chromium/Linux). Nicht geprüft: Tauri/Mac, 3D-Fenster (render3d) und Cycles-Bild mit den neuen Farben (nur über Tests), Ressourcen-Tab nur per tsc (nicht angesehen).
This commit is contained in:
40 files changed
+956
-144
No files matched your search
+95
-7
@@ -10,6 +10,11 @@
|
||||
:root {
|
||||
color-scheme: light;
|
||||
|
||||
/* [275] Vorgabe der Umbau-Farben (Kern `renovation::default_style`); Muster mit Projektfarben setzen sie inline. */
|
||||
--reno-existing: #a6a6a6;
|
||||
--reno-demolish: #e8c35a;
|
||||
--reno-new: #c8524a;
|
||||
|
||||
--bg: #e0dbd4;
|
||||
--panel: #e0dbd4;
|
||||
--panel-2: #d4cfc8;
|
||||
@@ -1311,13 +1316,13 @@ body {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
.sb-renovation-existing {
|
||||
background: #a6a6a6;
|
||||
background: var(--reno-existing);
|
||||
}
|
||||
.sb-renovation-demolish {
|
||||
background: #ffd800;
|
||||
background: var(--reno-demolish);
|
||||
}
|
||||
.sb-renovation-new {
|
||||
background: #e3001b;
|
||||
background: var(--reno-new);
|
||||
}
|
||||
.sb-toggle.sb-renovation-on {
|
||||
font-weight: 600;
|
||||
@@ -9709,7 +9714,7 @@ body {
|
||||
opacity: 0.6;
|
||||
}
|
||||
.reno-swatch.is-mixed {
|
||||
background: repeating-linear-gradient(45deg, #a6a6a6 0 3px, #ffd800 3px 6px, #e3001b 6px 9px);
|
||||
background: repeating-linear-gradient(45deg, var(--reno-existing) 0 3px, var(--reno-demolish) 3px 6px, var(--reno-new) 6px 9px);
|
||||
}
|
||||
.reno-status-row {
|
||||
display: flex;
|
||||
@@ -10363,13 +10368,13 @@ body {
|
||||
min-width: 0;
|
||||
}
|
||||
.reno-fate.is-demolish {
|
||||
box-shadow: inset 3px 0 0 #ffd800;
|
||||
box-shadow: inset 3px 0 0 var(--reno-demolish);
|
||||
}
|
||||
.reno-fate.is-new {
|
||||
box-shadow: inset 3px 0 0 #e3001b;
|
||||
box-shadow: inset 3px 0 0 var(--reno-new);
|
||||
}
|
||||
.reno-fate.is-kept {
|
||||
box-shadow: inset 3px 0 0 #a6a6a6;
|
||||
box-shadow: inset 3px 0 0 var(--reno-existing);
|
||||
}
|
||||
.reno-create {
|
||||
display: flex;
|
||||
@@ -10380,3 +10385,86 @@ body {
|
||||
min-width: 0;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
/* ── [275] Umbau-Farben bearbeiten (Panel „Umbau“ › Darstellung, Etappen; Ressourcen-Tab „Umbau“) ───────────────── */
|
||||
.reno-style-grid {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
.reno-style-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(44px, 1fr) 44px 44px 84px 24px;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.reno-style-label {
|
||||
font-weight: 600;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.reno-style-field {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
.reno-style-head .reno-style-cap {
|
||||
justify-self: start;
|
||||
}
|
||||
.reno-style-cap {
|
||||
font-size: 10px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.reno-style-dashed {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
font-size: 11px;
|
||||
color: var(--ink-2);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.reno-style-actions {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
.reno-phase-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
.reno-phase-sw {
|
||||
flex: 0 0 auto;
|
||||
display: inline-flex;
|
||||
gap: 2px;
|
||||
padding: 3px;
|
||||
background: transparent;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.reno-phase-sw .reno-swatch {
|
||||
width: 10px;
|
||||
height: 14px;
|
||||
}
|
||||
.reno-phase-sw.is-own {
|
||||
border-color: var(--ink-2);
|
||||
}
|
||||
.reno-phase-sw.active,
|
||||
.reno-phase-sw:hover {
|
||||
border-color: var(--active);
|
||||
}
|
||||
.reno-phase-styles {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
margin: 0 0 4px 22px;
|
||||
padding: 6px 8px;
|
||||
background: var(--input);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.reno-phase-styles .reno-link-btn {
|
||||
align-self: flex-start;
|
||||
}
|
||||
Reference in new issue
Block a user