提交 157255fa 编写于 作者: M Martin Aeschlimann

browser IWindowConfiguration.colorScheme: cleanup

上级 b9947f2a
......@@ -71,12 +71,7 @@ class BrowserWorkbenchConfiguration implements IWindowConfiguration {
return undefined;
}
// TODO@martin TODO@ben this currently does not support high-contrast theme preference (no browser support yet)
get colorScheme() {
if (window.matchMedia(`(prefers-color-scheme: dark)`).matches) {
return ColorScheme.DARK;
}
return ColorScheme.LIGHT;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册