Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
72e7b8ea
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,发现更多精彩内容 >>
提交
72e7b8ea
编写于
5月 09, 2017
作者:
B
Benjamin Pasero
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
theming - initial "send a smile" work
上级
bf53bb08
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
27 addition
and
42 deletion
+27
-42
src/vs/workbench/parts/feedback/electron-browser/feedback.ts
src/vs/workbench/parts/feedback/electron-browser/feedback.ts
+25
-1
src/vs/workbench/parts/feedback/electron-browser/media/feedback.css
...kbench/parts/feedback/electron-browser/media/feedback.css
+2
-41
未找到文件。
src/vs/workbench/parts/feedback/electron-browser/feedback.ts
浏览文件 @
72e7b8ea
...
...
@@ -17,6 +17,9 @@ import * as dom from 'vs/base/browser/dom';
import
{
ICommandService
}
from
'
vs/platform/commands/common/commands
'
;
import
*
as
errors
from
'
vs/base/common/errors
'
;
import
{
IIntegrityService
}
from
'
vs/platform/integrity/common/integrity
'
;
import
{
IThemeService
,
registerThemingParticipant
,
ITheme
,
ICssStyleCollector
}
from
"
vs/platform/theme/common/themeService
"
;
import
{
attachStylerCallback
}
from
"
vs/platform/theme/common/styler
"
;
import
{
editorWidgetBackground
,
widgetShadow
,
inputBorder
,
inputForeground
,
inputBackground
,
inputActiveOptionBorder
,
editorBackground
}
from
"
vs/platform/theme/common/colorRegistry
"
;
export
interface
IFeedback
{
feedback
:
string
;
...
...
@@ -67,7 +70,8 @@ export class FeedbackDropdown extends Dropdown {
options
:
IFeedbackDropdownOptions
,
@
ITelemetryService
protected
telemetryService
:
ITelemetryService
,
@
ICommandService
private
commandService
:
ICommandService
,
@
IIntegrityService
protected
integrityService
:
IIntegrityService
@
IIntegrityService
protected
integrityService
:
IIntegrityService
,
@
IThemeService
private
themeService
:
IThemeService
)
{
super
(
container
,
{
contextViewProvider
:
options
.
contextViewProvider
,
...
...
@@ -200,6 +204,17 @@ export class FeedbackDropdown extends Dropdown {
this
.
onSubmit
();
});
this
.
toDispose
.
push
(
attachStylerCallback
(
this
.
themeService
,
{
widgetShadow
,
editorWidgetBackground
,
inputBackground
,
inputForeground
,
inputBorder
,
editorBackground
},
colors
=>
{
$form
.
style
(
'
background-color
'
,
colors
.
editorWidgetBackground
);
$form
.
style
(
'
box-shadow
'
,
colors
.
widgetShadow
?
`0 2px 8px
${
colors
.
widgetShadow
}
`
:
null
);
this
.
feedbackDescriptionInput
.
style
.
backgroundColor
=
colors
.
inputBackground
;
this
.
feedbackDescriptionInput
.
style
.
color
=
colors
.
inputForeground
;
this
.
feedbackDescriptionInput
.
style
.
border
=
`1px solid
${
colors
.
inputBorder
||
'
transparent
'
}
`
;
$contactUs
.
style
(
'
background-color
'
,
colors
.
editorBackground
);
}));
return
{
dispose
:
()
=>
{
this
.
feedbackForm
=
null
;
...
...
@@ -329,3 +344,12 @@ export class FeedbackDropdown extends Dropdown {
this
.
aliasEnabled
=
false
;
}
}
registerThemingParticipant
((
theme
:
ITheme
,
collector
:
ICssStyleCollector
)
=>
{
// Sentiment Buttons
const
inputActiveOptionBorderColor
=
theme
.
getColor
(
inputActiveOptionBorder
);
if
(
inputActiveOptionBorderColor
)
{
collector
.
addRule
(
`.monaco-shell .feedback-form .sentiment.checked { border: 1px solid
${
inputActiveOptionBorderColor
}
; }`
);
}
});
\ No newline at end of file
src/vs/workbench/parts/feedback/electron-browser/media/feedback.css
浏览文件 @
72e7b8ea
...
...
@@ -36,17 +36,9 @@
.monaco-shell
.feedback-form
.content
.contactus
{
padding
:
10px
;
border
:
solid
1px
#B4BABF
;
background-color
:
#EBF2F9
;
float
:
right
;
}
.monaco-shell.vs-dark
.feedback-form
.content
.contactus
{
border
:
solid
1px
#44444C
;
background-color
:
#333337
;
}
.monaco-shell
.feedback-form
.content
.channels
{
margin-top
:
5px
;
font-size
:
0.9em
;
...
...
@@ -148,10 +140,6 @@
background-color
:
#eaeaea
;
}
.monaco-shell
.feedback-form
.sentiment.checked
{
border
:
1px
solid
#39F
;
}
/* Statusbar */
.monaco-shell
.statusbar-item
>
.dropdown.send-feedback
{
display
:
inline-block
;
...
...
@@ -163,11 +151,6 @@
}
/* Theming */
.monaco-shell.vs
.feedback-form
{
color
:
black
;
background
:
#F6F6F6
;
}
.monaco-shell
.feedback-form
h2
{
color
:
#007ACC
;
}
...
...
@@ -224,11 +207,6 @@
background-color
:
#E51400
;
}
.monaco-shell.vs-dark
.feedback-form
{
background
:
#252526
;
box-shadow
:
0
2px
8px
#000
;
}
.monaco-shell.vs-dark
.feedback-form
h2
{
color
:
#75BEFF
;
}
...
...
@@ -239,18 +217,11 @@
}
.monaco-shell.vs-dark
.feedback-form
.sentiment
:hover
{
background-color
:
#1e1e1e
;
}
.monaco-shell.vs-dark
.feedback-form
.sentiment.checked
{
border-color
:
#75BEFF
;
background-color
:
rgba
(
30
,
30
,
30
,
0.8
);
}
.monaco-shell.vs-dark
.feedback-form
.feedback-alias
,
.monaco-shell.vs-dark
.feedback-form
.feedback-description
{
font-family
:
inherit
;
border
:
1px
solid
transparent
;
background-color
:
#333337
;
color
:
#D4D4D4
;
}
.monaco-shell.vs-dark
.feedback-form
.cancel
,
...
...
@@ -259,7 +230,7 @@
}
.monaco-shell.vs-dark
.feedback-form
.cancel
:hover
{
background-color
:
#1e1e1e
;
background-color
:
rgba
(
30
,
30
,
30
,
0.8
)
;
}
.monaco-shell
.feedback-form
.sentiment.smile
{
...
...
@@ -312,9 +283,6 @@
.monaco-shell.hc-black
.feedback-form
.feedback-alias
,
.monaco-shell.hc-black
.feedback-form
.feedback-description
{
font-family
:
inherit
;
border
:
1px
solid
#6FC3DF
;
background-color
:
#000
;
color
:
#D4D4D4
;
}
.monaco-shell.hc-black
.feedback-form
.content
.contactus
{
...
...
@@ -343,13 +311,6 @@
background-color
:
#0C141F
;
}
.monaco-shell.hc-black
.feedback-form
.sentiment
{
border
:
1px
solid
transparent
;
}
.monaco-shell.hc-black
.feedback-form
.sentiment.checked
{
border
:
1px
solid
#f38518
;
}
.monaco-shell
.feedback-form
.infotip
{
background
:
none
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录