提交 73f84d68 编写于 作者: M Martin Aeschlimann

review comments

上级 baef0ae2
......@@ -46,7 +46,7 @@ export class ElectronMainService implements IElectronMainService {
// Color Scheme changes
nativeTheme.on('updated', () => {
let colorScheme;
let colorScheme: ColorScheme;
if (nativeTheme.shouldUseInvertedColorScheme || nativeTheme.shouldUseHighContrastColors) {
colorScheme = ColorScheme.HIGH_CONTRAST;
} else if (nativeTheme.shouldUseDarkColors) {
......
......@@ -4,13 +4,10 @@
*--------------------------------------------------------------------------------------------*/
/**
* Color theme used by the OS and by color themes.
* Color scheme used by the OS and by color themes.
*/
export enum ColorScheme {
DARK = 'dark',
LIGHT = 'light',
HIGH_CONTRAST = 'hc'
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册