Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
e1acce13
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,发现更多精彩内容 >>
提交
e1acce13
编写于
3月 20, 2017
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
theming - workbench drop overlay
上级
1b90e9db
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
19 addition
and
23 deletion
+19
-23
src/vs/workbench/electron-browser/media/shell.css
src/vs/workbench/electron-browser/media/shell.css
+1
-1
src/vs/workbench/electron-browser/media/workbench.css
src/vs/workbench/electron-browser/media/workbench.css
+1
-19
src/vs/workbench/electron-browser/window.ts
src/vs/workbench/electron-browser/window.ts
+17
-3
未找到文件。
src/vs/workbench/electron-browser/media/shell.css
浏览文件 @
e1acce13
...
...
@@ -204,7 +204,7 @@
/* END Keyboard Focus Indication Styles */
/* TODO@theme */
/* TODO@theme
(widgets)
*/
.monaco-shell.vs
input
{
background-color
:
white
;
...
...
src/vs/workbench/electron-browser/media/workbench.css
浏览文件 @
e1acce13
...
...
@@ -37,25 +37,7 @@
z-index
:
10000
;
}
.hc-black
#monaco-workbench-drop-overlay
{
background
:
none
!important
;
outline
:
2px
dashed
;
outline-offset
:
-2px
;
}
/* TODO@theme */
.vs
#monaco-workbench-drop-overlay
{
background-color
:
rgba
(
51
,
153
,
255
,
0.18
);
}
.vs-dark
#monaco-workbench-drop-overlay
{
background-color
:
rgba
(
83
,
89
,
93
,
0.5
);
}
.hc-black
#monaco-workbench-drop-overlay
{
outline-color
:
#f38518
;
}
/* TODO@theme (widgets) */
.vs-dark
.monaco-workbench
.monaco-scrollable-element
.shadow.top
{
box-shadow
:
#000
0
6px
6px
-6px
inset
;
...
...
src/vs/workbench/electron-browser/window.ts
浏览文件 @
e1acce13
...
...
@@ -46,8 +46,10 @@ import { ICommandService } from 'vs/platform/commands/common/commands';
import
{
IViewletService
}
from
'
vs/workbench/services/viewlet/browser/viewlet
'
;
import
{
Position
,
IResourceInput
}
from
'
vs/platform/editor/common/editor
'
;
import
{
IExtensionService
}
from
'
vs/platform/extensions/common/extensions
'
;
import
{
Themable
,
EDITOR_DRAG_AND_DROP_BACKGROUND
}
from
'
vs/workbench/common/theme
'
;
import
{
remote
,
ipcRenderer
as
ipc
,
webFrame
}
from
'
electron
'
;
import
{
highContrastOutline
}
from
"
vs/platform/theme/common/colorRegistry
"
;
const
dialog
=
remote
.
dialog
;
...
...
@@ -62,7 +64,7 @@ const TextInputActions: IAction[] = [
new
Action
(
'
editor.action.selectAll
'
,
nls
.
localize
(
'
selectAll
'
,
"
Select All
"
),
null
,
true
,
()
=>
document
.
execCommand
(
'
selectAll
'
)
&&
TPromise
.
as
(
true
))
];
export
class
ElectronWindow
{
export
class
ElectronWindow
extends
Themable
{
private
static
AUTO_SAVE_SETTING
=
'
files.autoSave
'
;
...
...
@@ -80,7 +82,7 @@ export class ElectronWindow {
@
IWindowService
private
windowService
:
IWindowService
,
@
IWorkspaceConfigurationService
private
configurationService
:
IWorkspaceConfigurationService
,
@
ITitleService
private
titleService
:
ITitleService
,
@
IWorkbenchThemeService
pr
ivate
themeService
:
IWorkbenchThemeService
,
@
IWorkbenchThemeService
pr
otected
themeService
:
IWorkbenchThemeService
,
@
IMessageService
private
messageService
:
IMessageService
,
@
IConfigurationEditingService
private
configurationEditingService
:
IConfigurationEditingService
,
@
ICommandService
private
commandService
:
ICommandService
,
...
...
@@ -91,6 +93,8 @@ export class ElectronWindow {
@
IEnvironmentService
private
environmentService
:
IEnvironmentService
,
@
IUntitledEditorService
private
untitledEditorService
:
IUntitledEditorService
,
)
{
super
(
themeService
);
this
.
win
=
win
;
this
.
windowId
=
win
.
id
;
...
...
@@ -131,8 +135,18 @@ export class ElectronWindow {
// Find out if folders are dragged and show the appropiate feedback then
this
.
includesFolder
(
draggedExternalResources
).
done
(
includesFolder
=>
{
if
(
includesFolder
)
{
const
useOutline
=
this
.
isHighContrastTheme
;
dropOverlay
=
$
(
window
.
document
.
getElementById
(
this
.
partService
.
getWorkbenchElementId
()))
.
div
({
id
:
'
monaco-workbench-drop-overlay
'
})
.
div
({
id
:
'
monaco-workbench-drop-overlay
'
})
.
style
({
backgroundColor
:
this
.
getColor
(
EDITOR_DRAG_AND_DROP_BACKGROUND
),
outlineColor
:
useOutline
?
this
.
getColor
(
highContrastOutline
)
:
null
,
outlineOffset
:
useOutline
?
'
-2px
'
:
null
,
outlineStyle
:
useOutline
?
'
dashed
'
:
null
,
outlineWidth
:
useOutline
?
'
2px
'
:
null
})
.
on
(
DOM
.
EventType
.
DROP
,
(
e
:
DragEvent
)
=>
{
DOM
.
EventHelper
.
stop
(
e
,
true
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录