Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
7db643a5
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,发现更多精彩内容 >>
提交
7db643a5
编写于
3月 20, 2017
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
theme - window foreground, sidebar background
上级
4f8e68b8
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
28 addition
and
29 deletion
+28
-29
src/vs/workbench/browser/parts/sidebar/sidebarPart.ts
src/vs/workbench/browser/parts/sidebar/sidebarPart.ts
+3
-1
src/vs/workbench/common/theme.ts
src/vs/workbench/common/theme.ts
+16
-0
src/vs/workbench/electron-browser/media/shell.css
src/vs/workbench/electron-browser/media/shell.css
+0
-14
src/vs/workbench/electron-browser/media/workbench.css
src/vs/workbench/electron-browser/media/workbench.css
+0
-14
src/vs/workbench/electron-browser/shell.ts
src/vs/workbench/electron-browser/shell.ts
+9
-0
未找到文件。
src/vs/workbench/browser/parts/sidebar/sidebarPart.ts
浏览文件 @
7db643a5
...
...
@@ -26,7 +26,7 @@ import { IInstantiationService } from 'vs/platform/instantiation/common/instanti
import
Event
from
'
vs/base/common/event
'
;
import
{
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
highContrastBorder
}
from
'
vs/platform/theme/common/colorRegistry
'
;
import
{
SIDE_BAR_TITLE_FOREGROUND
}
from
'
vs/workbench/common/theme
'
;
import
{
SIDE_BAR_TITLE_FOREGROUND
,
SIDE_BAR_BACKGROUND
}
from
'
vs/workbench/common/theme
'
;
export
class
SidebarPart
extends
CompositePart
<
Viewlet
>
{
...
...
@@ -81,6 +81,8 @@ export class SidebarPart extends CompositePart<Viewlet> {
// Part container
const
container
=
this
.
getContainer
();
container
.
style
(
'
background-color
'
,
this
.
getColor
(
SIDE_BAR_BACKGROUND
));
const
useBorder
=
this
.
isHighContrastTheme
;
const
isPositionLeft
=
this
.
partService
.
getSideBarPosition
()
===
SideBarPosition
.
LEFT
;
container
.
style
(
'
border-right-width
'
,
useBorder
&&
isPositionLeft
?
'
1px
'
:
null
);
...
...
src/vs/workbench/common/theme.ts
浏览文件 @
7db643a5
...
...
@@ -9,6 +9,16 @@ import { IDisposable, Disposable, dispose } from 'vs/base/common/lifecycle';
import
{
IThemeService
,
ITheme
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
Color
,
RGBA
}
from
'
vs/base/common/color
'
;
// < --- Workbench --- >
export
const
WINDOW_FOREGROUND
=
registerColor
(
'
windowForeground
'
,
{
dark
:
'
#CCCCCC
'
,
light
:
'
#6C6C6C
'
,
hc
:
'
#FFFFFF
'
},
nls
.
localize
(
'
windowForeground
'
,
"
Overall window foreground color. This color is only used if not overridden by a component.
"
));
// < --- Tabs --- >
export
const
TABS_CONTAINER_BACKGROUND
=
registerColor
(
'
tabsContainerBackground
'
,
{
...
...
@@ -162,6 +172,12 @@ export const ACTIVITY_BAR_BACKGROUND = registerColor('activityBarBackground', {
// < --- Side Bar --- >
export
const
SIDE_BAR_BACKGROUND
=
registerColor
(
'
sideBarBackground
'
,
{
dark
:
'
#252526
'
,
light
:
'
#F3F3F3
'
,
hc
:
'
#000000
'
},
nls
.
localize
(
'
sideBarBackground
'
,
"
Side bar background color. The side bar is the container for views like explorer and search.
"
));
export
const
SIDE_BAR_TITLE_FOREGROUND
=
registerColor
(
'
sideBarTitleForeground
'
,
{
dark
:
'
#BBBBBB
'
,
light
:
'
#6f6f6f
'
,
...
...
src/vs/workbench/electron-browser/media/shell.css
浏览文件 @
7db643a5
...
...
@@ -206,20 +206,6 @@
/* TODO@theme */
.monaco-shell.vs
{
color
:
#6C6C6C
;
}
.monaco-shell.vs-dark
{
color
:
#BBB
;
background-color
:
#1E1E1E
;
}
.monaco-shell.hc-black
{
color
:
#fff
;
background-color
:
#000
;
}
.monaco-shell.vs
input
{
background-color
:
white
;
}
...
...
src/vs/workbench/electron-browser/media/workbench.css
浏览文件 @
7db643a5
...
...
@@ -45,20 +45,6 @@
/* TODO@theme */
.vs
.monaco-workbench
{
background-color
:
#F3F3F3
;
}
.vs-dark
.monaco-workbench
{
background-color
:
#252526
;
color
:
#CCC
;
}
.hc-black
.monaco-workbench
{
color
:
#FFF
;
background-color
:
#000
;
}
.vs
#monaco-workbench-drop-overlay
{
background-color
:
rgba
(
51
,
153
,
255
,
0.18
);
}
...
...
src/vs/workbench/electron-browser/shell.ts
浏览文件 @
7db643a5
...
...
@@ -103,6 +103,8 @@ import { join } from 'path';
import
'
vs/platform/opener/browser/opener.contribution
'
;
import
{
IWorkbenchThemeService
}
from
'
vs/workbench/services/themes/common/themeService
'
;
import
{
WorkbenchThemeService
}
from
'
vs/workbench/services/themes/electron-browser/themeService
'
;
import
{
registerThemingParticipant
,
ITheme
,
ICssStyleCollector
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
WINDOW_FOREGROUND
}
from
'
vs/workbench/common/theme
'
;
/**
* Services that we require for the Shell
...
...
@@ -509,3 +511,10 @@ export class WorkbenchShell {
$
(
this
.
container
).
empty
();
}
}
registerThemingParticipant
((
theme
:
ITheme
,
collector
:
ICssStyleCollector
)
=>
{
const
windowForeground
=
theme
.
getColor
(
WINDOW_FOREGROUND
);
if
(
windowForeground
)
{
collector
.
addRule
(
`.monaco-shell { color:
${
windowForeground
}
; }`
);
}
});
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录