()
| 24 | * updates the cache on live changes. |
| 25 | */ |
| 26 | export function getSystemThemeName(): SystemTheme { |
| 27 | if (cachedSystemTheme === undefined) { |
| 28 | cachedSystemTheme = detectFromColorFgBg() ?? 'dark' |
| 29 | } |
| 30 | return cachedSystemTheme |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * Update the cached terminal theme. Called by the watcher when the OSC 11 |
no test coverage detected