Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
fc877755
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fc877755
编写于
12月 10, 2019
作者:
M
Marvin Heilemann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rolled back changes to better see my changes (thanks to wrong configured prettier)
上级
256f2e09
变更
2
展开全部
隐藏空白更改
内联
并排
Showing
2 changed file
with
94 addition
and
346 deletion
+94
-346
src/vs/workbench/services/themes/browser/workbenchThemeService.ts
...orkbench/services/themes/browser/workbenchThemeService.ts
+88
-314
src/vs/workbench/services/themes/common/workbenchThemeService.ts
...workbench/services/themes/common/workbenchThemeService.ts
+6
-32
未找到文件。
src/vs/workbench/services/themes/browser/workbenchThemeService.ts
浏览文件 @
fc877755
此差异已折叠。
点击以展开。
src/vs/workbench/services/themes/common/workbenchThemeService.ts
浏览文件 @
fc877755
...
...
@@ -18,22 +18,12 @@ export const VS_HC_THEME = 'hc-black';
export
const
HC_THEME_ID
=
'
Default High Contrast
'
;
export
const
COLOR_THEME_SETTING
=
'
workbench.colorTheme
'
;
export
const
COLOR_THEME_DARK_SETTING
=
'
workbench.colorThemeDark
'
;
export
const
COLOR_THEME_LIGHT_SETTING
=
'
workbench.colorThemeLight
'
;
export
const
DETECT_AS_SETTING
=
'
workbench.colorThemeAutoSwitch
'
;
export
const
WINDOW_MATCH_PREFERS_COLOR_SCHEME
=
'
(prefers-color-scheme: dark)
'
;
export
const
DETECT_HC_SETTING
=
'
window.autoDetectHighContrast
'
;
export
const
ICON_THEME_SETTING
=
'
workbench.iconTheme
'
;
export
const
CUSTOM_WORKBENCH_COLORS_SETTING
=
'
workbench.colorCustomizations
'
;
export
const
CUSTOM_EDITOR_COLORS_SETTING
=
'
editor.tokenColorCustomizations
'
;
export
const
CUSTOM_EDITOR_TOKENSTYLES_SETTING
=
'
editor.tokenColorCustomizationsExperimental
'
;
export
enum
ColorScheme
{
LIGHT
=
'
light
'
,
DARK
=
'
dark
'
,
NO_PREFERENCE
=
'
no-preference
'
}
export
interface
IColorTheme
extends
ITheme
{
readonly
id
:
string
;
readonly
label
:
string
;
...
...
@@ -63,20 +53,13 @@ export interface IFileIconTheme extends IIconTheme {
export
interface
IWorkbenchThemeService
extends
IThemeService
{
_serviceBrand
:
undefined
;
setColorTheme
(
themeId
:
string
|
undefined
,
settingsTarget
:
ConfigurationTarget
|
undefined
):
Promise
<
IColorTheme
|
null
>
;
setColorTheme
(
themeId
:
string
|
undefined
,
settingsTarget
:
ConfigurationTarget
|
undefined
):
Promise
<
IColorTheme
|
null
>
;
getColorTheme
():
IColorTheme
;
getColorThemes
():
Promise
<
IColorTheme
[]
>
;
getColorThemeData
(
colorThemeSetting
:
string
):
Promise
<
IColorTheme
|
null
>
;
onDidColorThemeChange
:
Event
<
IColorTheme
>
;
restoreColorTheme
():
void
;
setFileIconTheme
(
iconThemeId
:
string
|
undefined
,
settingsTarget
:
ConfigurationTarget
|
undefined
):
Promise
<
IFileIconTheme
>
;
setFileIconTheme
(
iconThemeId
:
string
|
undefined
,
settingsTarget
:
ConfigurationTarget
|
undefined
):
Promise
<
IFileIconTheme
>
;
getFileIconTheme
():
IFileIconTheme
;
getFileIconThemes
():
Promise
<
IFileIconTheme
[]
>
;
onDidFileIconThemeChange
:
Event
<
IFileIconTheme
>
;
...
...
@@ -87,12 +70,7 @@ export interface IColorCustomizations {
}
export
interface
ITokenColorCustomizations
{
[
groupIdOrThemeSettingsId
:
string
]:
|
string
|
ITokenColorizationSetting
|
ITokenColorCustomizations
|
undefined
|
ITextMateThemingRule
[];
[
groupIdOrThemeSettingsId
:
string
]:
string
|
ITokenColorizationSetting
|
ITokenColorCustomizations
|
undefined
|
ITextMateThemingRule
[];
comments
?:
string
|
ITokenColorizationSetting
;
strings
?:
string
|
ITokenColorizationSetting
;
numbers
?:
string
|
ITokenColorizationSetting
;
...
...
@@ -104,11 +82,7 @@ export interface ITokenColorCustomizations {
}
export
interface
IExperimentalTokenStyleCustomizations
{
[
styleRuleOrThemeSettingsId
:
string
]:
|
string
|
ITokenColorizationSetting
|
IExperimentalTokenStyleCustomizations
|
undefined
;
[
styleRuleOrThemeSettingsId
:
string
]:
string
|
ITokenColorizationSetting
|
IExperimentalTokenStyleCustomizations
|
undefined
;
}
export
interface
ITextMateThemingRule
{
...
...
@@ -120,7 +94,7 @@ export interface ITextMateThemingRule {
export
interface
ITokenColorizationSetting
{
foreground
?:
string
;
background
?:
string
;
fontStyle
?:
string
/* [italic|underline|bold] */
;
fontStyle
?:
string
;
/* [italic|underline|bold] */
}
export
interface
ExtensionData
{
...
...
@@ -137,4 +111,4 @@ export interface IThemeExtensionPoint {
path
:
string
;
uiTheme
?:
typeof
VS_LIGHT_THEME
|
typeof
VS_DARK_THEME
|
typeof
VS_HC_THEME
;
_watch
:
boolean
;
// unsupported options to watch location
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录