Chart theming: selectable chart theme + spec↔config merge/extract

This commit is contained in:
2026-06-12 16:48:48 +03:00
parent fe9d588103
commit 44a601affd
27 changed files with 1103 additions and 121 deletions
+11 -3
View File
@@ -1,7 +1,12 @@
import { createRoot } from 'react-dom/client';
import { App } from './app/App';
import { initPanes, wirePanes } from './app/orchestration/panes';
import { initPreviewFitMode, wirePreviewFitMode } from './app/orchestration/preferences';
import {
initChartTheme,
initPreviewFitMode,
wireChartTheme,
wirePreviewFitMode,
} from './app/orchestration/preferences';
import { initSettings, wireSettings } from './app/orchestration/settings';
import { initSnippetSort, wireSnippetSort } from './app/orchestration/snippet-sort';
import { initPersistentStorage, registerServiceWorker } from './app/orchestration/pwa';
@@ -15,10 +20,13 @@ import '../styles/base.css';
initTheme();
wireTheme();
// Hydrate + persist the small UI preferences (preview fit mode, pane widths) the
// same way. Pane widths hydrate before render so the layout opens as left.
// Hydrate + persist the small UI preferences (preview fit mode, chart theme,
// pane widths) the same way. Pane widths hydrate before render so the layout
// opens as left.
initPreviewFitMode();
wirePreviewFitMode();
initChartTheme();
wireChartTheme();
initPanes();
wirePanes();