Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
9d1fc803
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,发现更多精彩内容 >>
提交
9d1fc803
编写于
4月 18, 2017
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Disabled input box in search viewlet is badly colored (fixes #24700)
上级
45f7f619
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
22 deletion
+6
-22
src/vs/workbench/parts/search/browser/media/searchviewlet.css
...vs/workbench/parts/search/browser/media/searchviewlet.css
+0
-19
src/vs/workbench/parts/search/browser/searchViewlet.ts
src/vs/workbench/parts/search/browser/searchViewlet.ts
+6
-3
未找到文件。
src/vs/workbench/parts/search/browser/media/searchviewlet.css
浏览文件 @
9d1fc803
...
...
@@ -293,16 +293,6 @@
display
:
none
;
}
.vs
.search-viewlet
input
.disabled
,
.vs
.search-viewlet
.file-types.disabled
.monaco-inputbox
{
background-color
:
#E1E1E1
;
}
.vs-dark
.search-viewlet
input
.disabled
,
.vs-dark
.search-viewlet
.file-types.disabled
.monaco-inputbox
{
background-color
:
#333
;
}
.search-viewlet
.focused
.monaco-tree-row.selected
:not
(
.highlighted
)
>
.content.actions
.action-remove
,
.vs-dark
.monaco-workbench
.search-viewlet
.focused
.monaco-tree-row.selected
:not
(
.highlighted
)
>
.content.actions
.action-remove
{
background
:
url("action-remove-focus.svg")
center
center
no-repeat
;
...
...
@@ -405,11 +395,6 @@
text-decoration
:
underline
;
}
.search-viewlet
.global-exclude
input
.disabled
,
.search-viewlet
.file-types.disabled.global-exclude
.monaco-inputbox
{
background
:
none
;
}
/* Theming */
.search-viewlet
.highlight
{
...
...
@@ -451,10 +436,6 @@
opacity
:
.5
;
}
.vs-dark
.search-viewlet
.global-exclude
input
.disabled
{
opacity
:
.5
!important
;
}
.vs-dark
.search-viewlet
.filematch
{
padding
:
0
;
}
...
...
src/vs/workbench/parts/search/browser/searchViewlet.ts
浏览文件 @
9d1fc803
...
...
@@ -63,6 +63,7 @@ import { editorFindMatchHighlight } from 'vs/platform/theme/common/colorRegistry
import
FileResultsNavigation
from
'
vs/workbench/browser/fileResultsNavigation
'
;
import
{
attachListStyler
}
from
"
vs/platform/theme/common/styler
"
;
import
{
IOutputService
}
from
'
vs/workbench/parts/output/common/output
'
;
import
{
Color
}
from
"
vs/base/common/color
"
;
export
class
SearchViewlet
extends
Viewlet
{
...
...
@@ -242,17 +243,19 @@ export class SearchViewlet extends Viewlet {
});
// add hint if we have global exclusion
this
.
inputPatternGlobalExclusionsContainer
=
builder
.
div
({
'
class
'
:
'
file-types global-exclude
disabled
'
},
(
builder
)
=>
{
this
.
inputPatternGlobalExclusionsContainer
=
builder
.
div
({
'
class
'
:
'
file-types global-exclude
'
},
(
builder
)
=>
{
let
title
=
nls
.
localize
(
'
global.searchScope.folders
'
,
"
files excluded through settings
"
);
builder
.
element
(
'
h4
'
,
{
text
:
title
});
this
.
inputPatternGlobalExclusions
=
new
InputBox
(
builder
.
getContainer
(),
this
.
contextViewService
,
{
actions
:
[
this
.
instantiationService
.
createInstance
(
ConfigureGlobalExclusionsAction
)],
ariaLabel
:
nls
.
localize
(
'
label.global.excludes
'
,
'
Configured Search Exclude Patterns
'
)
ariaLabel
:
nls
.
localize
(
'
label.global.excludes
'
,
'
Configured Search Exclude Patterns
'
),
// override some styles because this input is disabled
inputBackground
:
Color
.
transparent
,
inputForeground
:
null
});
this
.
inputPatternGlobalExclusions
.
inputElement
.
readOnly
=
true
;
$
(
this
.
inputPatternGlobalExclusions
.
inputElement
).
attr
(
'
aria-readonly
'
,
'
true
'
);
$
(
this
.
inputPatternGlobalExclusions
.
inputElement
).
addClass
(
'
disabled
'
);
}).
hide
();
}).
getHTMLElement
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录