(theme: Theme, settings: EditorSettings = {})
| 8 | export const themeSelection = new Compartment(); |
| 9 | |
| 10 | export function getTheme(theme: Theme, settings: EditorSettings = {}): Extension { |
| 11 | return [ |
| 12 | getEditorTheme(settings), |
| 13 | theme === 'dark' ? themeSelection.of([getDarkTheme()]) : themeSelection.of([getLightTheme()]), |
| 14 | ]; |
| 15 | } |
| 16 | |
| 17 | export function reconfigureTheme(theme: Theme) { |
| 18 | return themeSelection.reconfigure(theme === 'dark' ? getDarkTheme() : getLightTheme()); |
no test coverage detected