mirror of
https://github.com/olehomelchenko/astrolabe.git
synced 2026-08-08 02:02:33 +00:00
Chart theming: selectable chart theme + spec↔config merge/extract
This commit is contained in:
+11
-3
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user