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