Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
37d0a6f5
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,发现更多精彩内容 >>
提交
37d0a6f5
编写于
3月 25, 2017
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
theming - debug toolbar background
上级
d220b5a1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
30 addition
and
6 deletion
+30
-6
extensions/theme-abyss/themes/abyss-color-theme.json
extensions/theme-abyss/themes/abyss-color-theme.json
+2
-0
src/vs/workbench/parts/debug/browser/debugActionsWidget.ts
src/vs/workbench/parts/debug/browser/debugActionsWidget.ts
+28
-2
src/vs/workbench/parts/debug/browser/media/debugActionsWidget.css
...orkbench/parts/debug/browser/media/debugActionsWidget.css
+0
-4
未找到文件。
extensions/theme-abyss/themes/abyss-color-theme.json
浏览文件 @
37d0a6f5
...
...
@@ -292,6 +292,8 @@
"panelBorderTopColor"
:
"#2b2b4a"
,
"statusBarBackground"
:
"#10192c"
,
"statusBarNoFolderBackground"
:
"#10192c"
,
"statusBarDebuggingBackground"
:
"#10192c"
,
"debugToolBarBackground"
:
"#051336"
,
"activityBarBackground"
:
"#051336"
,
"sideBarBackground"
:
"#060621"
,
"titleBarActiveBackground"
:
"#10192c"
,
...
...
src/vs/workbench/parts/debug/browser/debugActionsWidget.ts
浏览文件 @
37d0a6f5
...
...
@@ -26,11 +26,21 @@ import { IConfigurationService } from 'vs/platform/configuration/common/configur
import
{
IStorageService
,
StorageScope
}
from
'
vs/platform/storage/common/storage
'
;
import
{
IMessageService
}
from
'
vs/platform/message/common/message
'
;
import
{
ITelemetryService
}
from
'
vs/platform/telemetry/common/telemetry
'
;
import
{
Themable
}
from
"
vs/workbench/common/theme
"
;
import
{
IThemeService
}
from
"
vs/platform/theme/common/themeService
"
;
import
{
registerColor
,
highContrastBorder
}
from
"
vs/platform/theme/common/colorRegistry
"
;
import
{
localize
}
from
"
vs/nls
"
;
const
$
=
builder
.
$
;
const
DEBUG_ACTIONS_WIDGET_POSITION_KEY
=
'
debug.actionswidgetposition
'
;
export
class
DebugActionsWidget
implements
IWorkbenchContribution
{
export
const
debugToolBarBackground
=
registerColor
(
'
debugToolBarBackground
'
,
{
dark
:
'
#333333
'
,
light
:
'
#F3F3F3
'
,
hc
:
'
#000000
'
},
localize
(
'
debugToolBarBackground
'
,
"
Debug toolbar background color.
"
));
export
class
DebugActionsWidget
extends
Themable
implements
IWorkbenchContribution
{
private
static
ID
=
'
debug.actionsWidget
'
;
private
$el
:
builder
.
Builder
;
...
...
@@ -51,8 +61,11 @@ export class DebugActionsWidget implements IWorkbenchContribution {
@
IInstantiationService
private
instantiationService
:
IInstantiationService
,
@
IPartService
private
partService
:
IPartService
,
@
IStorageService
private
storageService
:
IStorageService
,
@
IConfigurationService
private
configurationService
:
IConfigurationService
@
IConfigurationService
private
configurationService
:
IConfigurationService
,
@
IThemeService
themeService
:
IThemeService
)
{
super
(
themeService
);
this
.
$el
=
$
().
div
().
addClass
(
'
debug-actions-widget
'
).
style
(
'
top
'
,
`
${
partService
.
getTitleBarOffset
()}
px`
);
this
.
dragArea
=
$
().
div
().
addClass
(
'
drag-area
'
);
this
.
$el
.
append
(
this
.
dragArea
);
...
...
@@ -78,6 +91,8 @@ export class DebugActionsWidget implements IWorkbenchContribution {
}
});
this
.
updateStyles
();
this
.
toDispose
.
push
(
this
.
actionBar
);
this
.
registerListeners
();
...
...
@@ -131,6 +146,17 @@ export class DebugActionsWidget implements IWorkbenchContribution {
this
.
toDispose
.
push
(
browser
.
onDidChangeZoomLevel
(()
=>
this
.
positionDebugWidget
()));
}
protected
updateStyles
():
void
{
super
.
updateStyles
();
if
(
this
.
$el
)
{
this
.
$el
.
style
(
'
background-color
'
,
this
.
getColor
(
debugToolBarBackground
));
this
.
$el
.
style
(
'
border-style
'
,
this
.
isHighContrastTheme
?
'
solid
'
:
null
);
this
.
$el
.
style
(
'
border-width
'
,
this
.
isHighContrastTheme
?
'
1px
'
:
null
);
this
.
$el
.
style
(
'
border-color
'
,
this
.
isHighContrastTheme
?
this
.
getColor
(
highContrastBorder
)
:
null
);
}
}
private
positionDebugWidget
():
void
{
const
titlebarOffset
=
this
.
partService
.
getTitleBarOffset
();
...
...
src/vs/workbench/parts/debug/browser/media/debugActionsWidget.css
浏览文件 @
37d0a6f5
...
...
@@ -6,7 +6,6 @@
/* Debug actions widget */
.monaco-workbench
.debug-actions-widget
{
background-color
:
#F3F3F3
;
box-shadow
:
0
5px
8px
#A8A8A8
;
position
:
absolute
;
z-index
:
200
;
...
...
@@ -44,14 +43,11 @@
}
.vs-dark
.monaco-workbench
.debug-actions-widget
{
background-color
:
#333
;
box-shadow
:
0
5px
8px
#000
;
}
.hc-black
.monaco-workbench
.debug-actions-widget
{
background-color
:
#000
;
box-shadow
:
unset
;
border
:
1px
solid
#6FC3DF
;
}
/* Debug actionbar actions */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录