Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
a03b7b42
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a03b7b42
编写于
7月 10, 2016
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove unused
上级
db398da9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
94 deletion
+0
-94
src/vs/base/browser/ui/actionbar/actionbar.css
src/vs/base/browser/ui/actionbar/actionbar.css
+0
-40
src/vs/base/browser/ui/actionbar/actionbar.ts
src/vs/base/browser/ui/actionbar/actionbar.ts
+0
-54
未找到文件。
src/vs/base/browser/ui/actionbar/actionbar.css
浏览文件 @
a03b7b42
...
...
@@ -95,46 +95,6 @@
margin-left
:
6px
;
}
.monaco-action-bar
.action-item
.progress-item
.label
{
padding
:
0.7em
;
background-color
:
#1382CE
;
display
:
inline-block
;
vertical-align
:
top
;
cursor
:
pointer
;
}
.monaco-action-bar
.action-item
.progress-item
.tag
{
display
:
inline-block
;
vertical-align
:
top
;
padding
:
0.7em
0
;
color
:
white
;
font-weight
:
bold
;
text-align
:
center
;
overflow
:
hidden
;
width
:
0
;
transition
:
width
200ms
;
-webkit-transition
:
width
200ms
;
-o-transition
:
width
200ms
;
-moz-transition
:
width
200ms
;
-ms-transition
:
width
200ms
;
}
.monaco-action-bar
.action-item
.progress-item
.tag.active
{
width
:
1.5em
;
}
.monaco-action-bar
.action-item
.progress-item
.tag.progress
{
background-color
:
gray
;
}
.monaco-action-bar
.action-item
.progress-item
.tag.done
{
background-color
:
green
;
}
.monaco-action-bar
.progress-item
.tag.error
{
background-color
:
#C33
;
}
/* Action Items */
.monaco-action-bar
.action-item.select-container
{
overflow
:
hidden
;
/* somehow the dropdown overflows its container, we prevent it here to not push */
...
...
src/vs/base/browser/ui/actionbar/actionbar.ts
浏览文件 @
a03b7b42
...
...
@@ -310,60 +310,6 @@ export class ActionItem extends BaseActionItem {
}
}
export
class
ProgressItem
extends
BaseActionItem
{
public
render
(
parent
:
HTMLElement
):
void
{
let
container
=
document
.
createElement
(
'
div
'
);
$
(
container
).
addClass
(
'
progress-item
'
);
let
label
=
document
.
createElement
(
'
div
'
);
$
(
label
).
addClass
(
'
label
'
);
label
.
textContent
=
this
.
getAction
().
label
;
label
.
title
=
this
.
getAction
().
label
;
super
.
render
(
label
);
let
progress
=
document
.
createElement
(
'
div
'
);
progress
.
textContent
=
'
\
u2026
'
;
$
(
progress
).
addClass
(
'
tag
'
,
'
progress
'
);
let
done
=
document
.
createElement
(
'
div
'
);
done
.
textContent
=
'
\
u2713
'
;
$
(
done
).
addClass
(
'
tag
'
,
'
done
'
);
let
error
=
document
.
createElement
(
'
div
'
);
error
.
textContent
=
'
!
'
;
$
(
error
).
addClass
(
'
tag
'
,
'
error
'
);
this
.
callOnDispose
.
push
(
this
.
addListener2
(
CommonEventType
.
BEFORE_RUN
,
()
=>
{
$
(
progress
).
addClass
(
'
active
'
);
$
(
done
).
removeClass
(
'
active
'
);
$
(
error
).
removeClass
(
'
active
'
);
}));
this
.
callOnDispose
.
push
(
this
.
addListener2
(
CommonEventType
.
RUN
,
(
result
)
=>
{
$
(
progress
).
removeClass
(
'
active
'
);
if
(
result
.
error
)
{
$
(
done
).
removeClass
(
'
active
'
);
$
(
error
).
addClass
(
'
active
'
);
}
else
{
$
(
error
).
removeClass
(
'
active
'
);
$
(
done
).
addClass
(
'
active
'
);
}
}));
container
.
appendChild
(
label
);
container
.
appendChild
(
progress
);
container
.
appendChild
(
done
);
container
.
appendChild
(
error
);
parent
.
appendChild
(
container
);
}
public
dispose
():
void
{
super
.
dispose
();
}
}
export
enum
ActionsOrientation
{
HORIZONTAL
=
1
,
VERTICAL
=
2
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录