Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
fb01d75c
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,发现更多精彩内容 >>
提交
fb01d75c
编写于
4月 27, 2018
作者:
R
Rob Lourens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
#3355 - Change "Show overrides" to a checkbox for now
上级
4090c6f7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
18 addition
and
14 deletion
+18
-14
src/vs/workbench/parts/preferences/browser/media/settingsEditor2.css
...bench/parts/preferences/browser/media/settingsEditor2.css
+9
-7
src/vs/workbench/parts/preferences/browser/settingsEditor2.ts
...vs/workbench/parts/preferences/browser/settingsEditor2.ts
+9
-7
未找到文件。
src/vs/workbench/parts/preferences/browser/media/settingsEditor2.css
浏览文件 @
fb01d75c
...
...
@@ -39,10 +39,6 @@
display
:
flex
;
}
.settings-editor
>
.settings-header
.settings-target-container
{
flex
:
1
;
}
.settings-editor
>
.settings-header
.settings-tabs-widget
>
.monaco-action-bar
.action-item
:not
(
:first-child
)
.action-label
{
margin-left
:
33px
;
}
...
...
@@ -53,6 +49,8 @@
}
.settings-editor
>
.settings-header
>
.settings-header-controls
.settings-header-controls-right
{
margin-left
:
auto
;
padding-top
:
3px
;
display
:
flex
;
}
...
...
@@ -61,14 +59,18 @@
.settings-editor
>
.settings-header
>
.settings-header-controls
.settings-header-controls-right
.open-settings-button
:active
{
background
:
none
;
opacity
:
0.7
;
padding
:
0
;
text-decoration
:
underline
;
}
.settings-editor
>
.settings-header
>
.settings-header-controls
.settings-header-controls-right
.configured-only-button
{
.settings-editor
>
.settings-header
>
.settings-header-controls
.settings-header-controls-right
#configured-only-checkbox
{
flex-shrink
:
0
;
}
.settings-editor
>
.settings-header
>
.settings-header-controls
.settings-header-controls-right
.configured-only-label
{
white-space
:
nowrap
;
padding
:
4px
10px
;
margin-right
:
10px
;
height
:
26
px
;
margin-left
:
2
px
;
}
.settings-editor
>
.settings-body
.settings-list-container
.settings-list-offset-helper
{
...
...
src/vs/workbench/parts/preferences/browser/settingsEditor2.ts
浏览文件 @
fb01d75c
...
...
@@ -99,7 +99,7 @@ export class SettingsEditor2 extends BaseEditor {
private
showConfiguredSettingsOnly
=
false
;
private
showAllSettings
=
false
;
private
showConfiguredSettingsOnly
Button
:
Button
;
private
showConfiguredSettingsOnly
Checkbox
:
HTMLInputElement
;
private
settingsListContainer
:
HTMLElement
;
private
settingsList
:
List
<
IListEntry
>
;
...
...
@@ -204,13 +204,15 @@ export class SettingsEditor2 extends BaseEditor {
private
createHeaderControls
(
parent
:
HTMLElement
):
void
{
const
headerControlsContainerRight
=
DOM
.
append
(
parent
,
$
(
'
.settings-header-controls-right
'
));
this
.
showConfiguredSettingsOnlyButton
=
this
.
_register
(
new
Button
(
headerControlsContainerRight
,
{
title
:
true
}));
this
.
showConfiguredSettingsOnlyButton
.
label
=
localize
(
'
showOverrides
'
,
"
Show overrides
"
);
this
.
showConfiguredSettingsOnlyButton
.
element
.
classList
.
add
(
'
configured-only-button
'
);
this
.
showConfiguredSettingsOnlyCheckbox
=
DOM
.
append
(
headerControlsContainerRight
,
$
(
'
input#configured-only-checkbox
'
));
this
.
showConfiguredSettingsOnlyCheckbox
.
type
=
'
checkbox
'
;
const
showConfiguredSettingsOnlyLabel
=
<
HTMLLabelElement
>
DOM
.
append
(
headerControlsContainerRight
,
$
(
'
label.configured-only-label
'
));
showConfiguredSettingsOnlyLabel
.
textContent
=
localize
(
'
showOverriddenOnly
'
,
"
Show overridden only
"
);
showConfiguredSettingsOnlyLabel
.
htmlFor
=
'
configured-only-checkbox
'
;
this
.
_register
(
this
.
showConfiguredSettingsOnlyButton
.
onDidClick
(()
=>
this
.
onShowConfiguredOnlyClicked
()));
this
.
_register
(
DOM
.
addDisposableListener
(
this
.
showConfiguredSettingsOnlyCheckbox
,
'
change
'
,
e
=>
this
.
onShowConfiguredOnlyClicked
()));
const
openSettingsButton
=
this
.
_register
(
new
Button
(
headerControlsContainerRight
,
{
title
:
true
,
buttonBackground
:
null
}));
const
openSettingsButton
=
this
.
_register
(
new
Button
(
headerControlsContainerRight
,
{
title
:
true
,
buttonBackground
:
null
,
buttonHoverBackground
:
null
}));
openSettingsButton
.
label
=
localize
(
'
openSettingsLabel
'
,
"
Open config file
"
);
openSettingsButton
.
element
.
classList
.
add
(
'
open-settings-button
'
);
...
...
@@ -268,7 +270,7 @@ export class SettingsEditor2 extends BaseEditor {
}
private
onShowConfiguredOnlyClicked
():
void
{
this
.
showConfiguredSettingsOnly
=
!
this
.
showConfiguredSettingsOnly
;
this
.
showConfiguredSettingsOnly
=
this
.
showConfiguredSettingsOnlyCheckbox
.
checked
;
this
.
render
();
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录