Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
c74305cf
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,发现更多精彩内容 >>
提交
c74305cf
编写于
4月 19, 2017
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Find widget no longer themed. Fixes #24954
上级
3927c0fb
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
10 addition
and
8 deletion
+10
-8
extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json
...eme-solarized-dark/themes/solarized-dark-color-theme.json
+1
-1
src/vs/editor/contrib/find/browser/findWidget.ts
src/vs/editor/contrib/find/browser/findWidget.ts
+9
-7
未找到文件。
extensions/theme-solarized-dark/themes/solarized-dark-color-theme.json
浏览文件 @
c74305cf
...
...
@@ -303,7 +303,7 @@
"activityBarBackground"
:
"#003847"
,
"activityBarDragAndDropBackground"
:
"#00212B"
,
"activityBadgeBackground"
:
"#047aa6"
,
"editor
Find
WidgetBackground"
:
"#00212B"
,
"editorWidgetBackground"
:
"#00212B"
,
"inputBoxBackground"
:
"#003847"
,
"inputBoxForeground"
:
"#93A1A1"
,
"inputBoxActiveOptionBorder"
:
"#2AA19899"
,
...
...
src/vs/editor/contrib/find/browser/findWidget.ts
浏览文件 @
c74305cf
...
...
@@ -13,7 +13,7 @@ import * as strings from 'vs/base/common/strings';
import
*
as
dom
from
'
vs/base/browser/dom
'
;
import
{
IKeyboardEvent
}
from
'
vs/base/browser/keyboardEvent
'
;
import
{
IContextViewProvider
}
from
'
vs/base/browser/ui/contextview/contextview
'
;
import
{
FindInput
}
from
'
vs/base/browser/ui/findinput/findInput
'
;
import
{
FindInput
,
IFindInputStyles
}
from
'
vs/base/browser/ui/findinput/findInput
'
;
import
{
IMessage
as
InputBoxMessage
,
InputBox
}
from
'
vs/base/browser/ui/inputbox/inputBox
'
;
import
{
Widget
}
from
'
vs/base/browser/ui/widget
'
;
import
{
IKeybindingService
}
from
'
vs/platform/keybinding/common/keybinding
'
;
...
...
@@ -25,8 +25,8 @@ import { IContextKeyService, IContextKey } from 'vs/platform/contextkey/common/c
import
{
CONTEXT_FIND_INPUT_FOCUSSED
}
from
'
vs/editor/contrib/find/common/findController
'
;
import
{
ITheme
,
registerThemingParticipant
,
IThemeService
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
Color
}
from
'
vs/base/common/color
'
;
import
{
editorFindRangeHighlight
,
editorFindMatch
,
editorFindMatchHighlight
,
highContrastOutline
,
highContrastBorder
,
inputBackground
as
findInputBackground
,
editorWidgetBackground
,
inputActiveOptionBorder
,
editorWidgetShadow
}
from
"
vs/platform/theme/common/colorRegistry
"
;
import
{
IConfigurationChangedEvent
}
from
"
vs/editor/common/config/editorOptions
"
;
import
{
editorFindRangeHighlight
,
editorFindMatch
,
editorFindMatchHighlight
,
highContrastOutline
,
highContrastBorder
,
inputBackground
,
editorWidgetBackground
,
inputActiveOptionBorder
,
editorWidgetShadow
,
inputForeground
,
inputBorder
}
from
"
vs/platform/theme/common/colorRegistry
"
;
export
interface
IFindController
{
replace
():
void
;
...
...
@@ -348,8 +348,14 @@ export class FindWidget extends Widget implements IOverlayWidget {
}
private
_applyTheme
(
theme
:
ITheme
)
{
let
inputStyles
=
{
inputActiveOptionBorder
:
theme
.
getColor
(
inputActiveOptionBorder
)
};
let
inputStyles
:
IFindInputStyles
=
{
inputActiveOptionBorder
:
theme
.
getColor
(
inputActiveOptionBorder
),
inputBackground
:
theme
.
getColor
(
inputBackground
),
inputForeground
:
theme
.
getColor
(
inputForeground
),
inputBorder
:
theme
.
getColor
(
inputBorder
)
};
this
.
_findInput
.
style
(
inputStyles
);
this
.
_replaceInputBox
.
style
(
inputStyles
);
}
// ----- Public
...
...
@@ -799,10 +805,6 @@ registerThemingParticipant((theme, collector) => {
addBackgroundColorRule
(
'
.currentFindMatch
'
,
theme
.
getColor
(
editorFindMatch
));
addBackgroundColorRule
(
'
.findScope
'
,
theme
.
getColor
(
editorFindRangeHighlight
));
let
inputBackground
=
theme
.
getColor
(
findInputBackground
);
addBackgroundColorRule
(
'
.find-widget .monaco-findInput
'
,
inputBackground
);
addBackgroundColorRule
(
'
.find-widget .replace-input
'
,
inputBackground
);
let
widgetBackground
=
theme
.
getColor
(
editorWidgetBackground
);
addBackgroundColorRule
(
'
.find-widget
'
,
widgetBackground
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录