Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
83758cbc
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,发现更多精彩内容 >>
提交
83758cbc
编写于
4月 20, 2020
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update codicons
上级
05b9e50f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
27 addition
and
16 deletion
+27
-16
src/vs/base/common/codicons.ts
src/vs/base/common/codicons.ts
+11
-3
src/vs/workbench/browser/actions/layoutActions.ts
src/vs/workbench/browser/actions/layoutActions.ts
+2
-1
src/vs/workbench/browser/parts/activitybar/activitybarPart.ts
...vs/workbench/browser/parts/activitybar/activitybarPart.ts
+4
-3
src/vs/workbench/browser/parts/compositeBarActions.ts
src/vs/workbench/browser/parts/compositeBarActions.ts
+2
-1
src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.ts
...bench/contrib/codeEditor/browser/find/simpleFindWidget.ts
+0
-1
src/vs/workbench/electron-browser/parts/titlebar/titlebarPart.ts
...workbench/electron-browser/parts/titlebar/titlebarPart.ts
+8
-7
未找到文件。
src/vs/base/common/codicons.ts
浏览文件 @
83758cbc
...
...
@@ -456,9 +456,17 @@ export namespace Codicon {
export
const
feedback
=
new
Codicon
(
'
feedback
'
,
{
character
:
'
\\
eb96
'
});
export
const
groupByRefType
=
new
Codicon
(
'
group-by-ref-type
'
,
{
character
:
'
\\
eb97
'
});
export
const
ungroupByRefType
=
new
Codicon
(
'
ungroup-by-ref-type
'
,
{
character
:
'
\\
eb98
'
});
export
const
bellDot
=
new
Codicon
(
'
bell-dot
'
,
{
character
:
'
\\
f101
'
});
export
const
debugAlt2
=
new
Codicon
(
'
debug-alt-2
'
,
{
character
:
'
\\
f102
'
});
export
const
debugAlt
=
new
Codicon
(
'
debug-alt
'
,
{
character
:
'
\\
f103
'
});
export
const
account
=
new
Codicon
(
'
account
'
,
{
character
:
'
\\
eb99
'
});
export
const
bellDot
=
new
Codicon
(
'
bell-dot
'
,
{
character
:
'
\\
eb9a
'
});
export
const
debugConsole
=
new
Codicon
(
'
debug-console
'
,
{
character
:
'
\\
eb9b
'
});
export
const
library
=
new
Codicon
(
'
library
'
,
{
character
:
'
\\
eb9c
'
});
export
const
output
=
new
Codicon
(
'
output
'
,
{
character
:
'
\\
eb9d
'
});
export
const
runAll
=
new
Codicon
(
'
run-all
'
,
{
character
:
'
\\
eb9e
'
});
export
const
syncIgnored
=
new
Codicon
(
'
sync-ignored
'
,
{
character
:
'
\\
eb9f
'
});
export
const
pinned
=
new
Codicon
(
'
pinned
'
,
{
character
:
'
\\
eba0
'
});
export
const
githubInverted
=
new
Codicon
(
'
github-inverted
'
,
{
character
:
'
\\
eba1
'
});
export
const
debugAlt2
=
new
Codicon
(
'
debug-alt-2
'
,
{
character
:
'
\\
f101
'
});
export
const
debugAlt
=
new
Codicon
(
'
debug-alt
'
,
{
character
:
'
\\
f102
'
});
}
...
...
src/vs/workbench/browser/actions/layoutActions.ts
浏览文件 @
83758cbc
...
...
@@ -27,6 +27,7 @@ import { IQuickInputService, IQuickPickItem, IQuickPickSeparator } from 'vs/plat
import
{
INotificationService
}
from
'
vs/platform/notification/common/notification
'
;
import
{
IActivityBarService
}
from
'
vs/workbench/services/activityBar/browser/activityBarService
'
;
import
{
IPanelService
}
from
'
vs/workbench/services/panel/common/panelService
'
;
import
{
Codicon
}
from
'
vs/base/common/codicons
'
;
const
registry
=
Registry
.
as
<
IWorkbenchActionRegistry
>
(
WorkbenchExtensions
.
WorkbenchActions
);
const
viewCategory
=
nls
.
localize
(
'
view
'
,
"
View
"
);
...
...
@@ -144,7 +145,7 @@ export class ToggleEditorLayoutAction extends Action {
)
{
super
(
id
,
label
);
this
.
class
=
'
codicon-editor-layout
'
;
this
.
class
=
Codicon
.
editorLayout
.
classNames
;
this
.
updateEnablement
();
this
.
registerListeners
();
...
...
src/vs/workbench/browser/parts/activitybar/activitybarPart.ts
浏览文件 @
83758cbc
...
...
@@ -43,6 +43,7 @@ import { IStorageKeysSyncRegistryService } from 'vs/platform/userDataSync/common
import
{
getUserDataSyncStore
}
from
'
vs/platform/userDataSync/common/userDataSync
'
;
import
{
IProductService
}
from
'
vs/platform/product/common/productService
'
;
import
{
Before2D
}
from
'
vs/workbench/browser/dnd
'
;
import
{
Codicon
}
from
'
vs/base/common/codicons
'
;
interface
IPlaceholderViewlet
{
id
:
string
;
...
...
@@ -397,14 +398,14 @@ export class ActivitybarPart extends Part implements IActivityBarService {
this
.
globalActivityAction
=
new
ActivityAction
({
id
:
'
workbench.actions.manage
'
,
name
:
nls
.
localize
(
'
manage
'
,
"
Manage
"
),
cssClass
:
'
codicon-settings-gear
'
cssClass
:
Codicon
.
gear
.
classNames
});
if
(
getUserDataSyncStore
(
this
.
productService
,
this
.
configurationService
))
{
const
profileAction
=
new
ActivityAction
({
id
:
'
workbench.actions.accounts
'
,
name
:
nls
.
localize
(
'
accounts
'
,
"
Accounts
"
),
cssClass
:
'
codicon-account
'
cssClass
:
Codicon
.
account
.
classNames
});
this
.
globalActivityActionBar
.
push
(
profileAction
);
...
...
@@ -484,7 +485,7 @@ export class ActivitybarPart extends Part implements IActivityBarService {
const
activity
:
IActivity
=
{
id
:
viewlet
.
id
,
name
:
shouldUseViewletIcon
?
viewlet
.
name
:
viewDescriptor
.
name
,
cssClass
:
shouldUseViewletIcon
?
viewlet
.
cssClass
:
(
isString
(
viewDescriptor
.
containerIcon
)
?
viewDescriptor
.
containerIcon
:
(
viewDescriptor
.
containerIcon
===
undefined
?
'
codicon-window
'
:
undefined
)),
cssClass
:
shouldUseViewletIcon
?
viewlet
.
cssClass
:
(
isString
(
viewDescriptor
.
containerIcon
)
?
viewDescriptor
.
containerIcon
:
(
viewDescriptor
.
containerIcon
===
undefined
?
Codicon
.
window
:
undefined
)),
iconUrl
:
shouldUseViewletIcon
?
viewlet
.
iconUrl
:
(
viewDescriptor
.
containerIcon
instanceof
URI
?
viewDescriptor
.
containerIcon
:
undefined
),
keybindingId
:
viewlet
.
keybindingId
};
...
...
src/vs/workbench/browser/parts/compositeBarActions.ts
浏览文件 @
83758cbc
...
...
@@ -20,6 +20,7 @@ import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
import
{
Emitter
}
from
'
vs/base/common/event
'
;
import
{
CompositeDragAndDropObserver
,
ICompositeDragAndDrop
,
Before2D
}
from
'
vs/workbench/browser/dnd
'
;
import
{
Color
}
from
'
vs/base/common/color
'
;
import
{
Codicon
}
from
'
vs/base/common/codicons
'
;
export
interface
ICompositeActivity
{
badge
:
IBadge
;
...
...
@@ -362,7 +363,7 @@ export class CompositeOverflowActivityAction extends ActivityAction {
super
({
id
:
'
additionalComposites.action
'
,
name
:
nls
.
localize
(
'
additionalViews
'
,
"
Additional Views
"
),
cssClass
:
'
codicon-more
'
cssClass
:
Codicon
.
more
.
classNames
});
}
...
...
src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.ts
浏览文件 @
83758cbc
...
...
@@ -18,7 +18,6 @@ import { IContextViewService } from 'vs/platform/contextview/browser/contextView
import
{
editorWidgetBackground
,
inputActiveOptionBorder
,
inputActiveOptionBackground
,
inputBackground
,
inputBorder
,
inputForeground
,
inputValidationErrorBackground
,
inputValidationErrorBorder
,
inputValidationErrorForeground
,
inputValidationInfoBackground
,
inputValidationInfoBorder
,
inputValidationInfoForeground
,
inputValidationWarningBackground
,
inputValidationWarningBorder
,
inputValidationWarningForeground
,
widgetShadow
,
editorWidgetForeground
}
from
'
vs/platform/theme/common/colorRegistry
'
;
import
{
IColorTheme
,
registerThemingParticipant
}
from
'
vs/platform/theme/common/themeService
'
;
import
{
ContextScopedFindInput
}
from
'
vs/platform/browser/contextScopedHistoryWidget
'
;
import
{
Codicon
}
from
'
vs/base/common/codicons
'
;
const
NLS_FIND_INPUT_LABEL
=
nls
.
localize
(
'
label.find
'
,
"
Find
"
);
const
NLS_FIND_INPUT_PLACEHOLDER
=
nls
.
localize
(
'
placeholder.find
'
,
"
Find
"
);
...
...
src/vs/workbench/electron-browser/parts/titlebar/titlebarPart.ts
浏览文件 @
83758cbc
...
...
@@ -23,6 +23,7 @@ import { IProductService } from 'vs/platform/product/common/productService';
import
{
IElectronService
}
from
'
vs/platform/electron/node/electron
'
;
import
{
getTitleBarStyle
}
from
'
vs/platform/windows/common/windows
'
;
import
{
IInstantiationService
}
from
'
vs/platform/instantiation/common/instantiation
'
;
import
{
Codicon
}
from
'
vs/base/common/codicons
'
;
export
class
TitlebarPart
extends
BrowserTitleBarPart
{
private
appIcon
:
HTMLElement
|
undefined
;
...
...
@@ -63,11 +64,11 @@ export class TitlebarPart extends BrowserTitleBarPart {
private
onDidChangeMaximized
(
maximized
:
boolean
)
{
if
(
this
.
maxRestoreControl
)
{
if
(
maximized
)
{
DOM
.
removeClass
(
this
.
maxRestoreControl
,
'
codicon-chrome-maximize
'
);
DOM
.
addClass
(
this
.
maxRestoreControl
,
'
codicon-chrome-restore
'
);
DOM
.
removeClass
es
(
this
.
maxRestoreControl
,
Codicon
.
chromeMaximize
.
classNames
);
DOM
.
addClass
es
(
this
.
maxRestoreControl
,
Codicon
.
chromeRestore
.
classNames
);
}
else
{
DOM
.
removeClass
(
this
.
maxRestoreControl
,
'
codicon-chrome-restore
'
);
DOM
.
addClass
(
this
.
maxRestoreControl
,
'
codicon-chrome-maximize
'
);
DOM
.
removeClass
es
(
this
.
maxRestoreControl
,
Codicon
.
chromeRestore
.
classNames
);
DOM
.
addClass
es
(
this
.
maxRestoreControl
,
Codicon
.
chromeMaximize
.
classNames
);
}
}
...
...
@@ -170,13 +171,13 @@ export class TitlebarPart extends BrowserTitleBarPart {
this
.
windowControls
=
DOM
.
append
(
this
.
element
,
DOM
.
$
(
'
div.window-controls-container
'
));
// Minimize
const
minimizeIcon
=
DOM
.
append
(
this
.
windowControls
,
DOM
.
$
(
'
div.window-icon.window-minimize
.codicon.codicon-chrome-minimize
'
));
const
minimizeIcon
=
DOM
.
append
(
this
.
windowControls
,
DOM
.
$
(
'
div.window-icon.window-minimize
'
+
Codicon
.
chromeMinimize
.
cssSelector
));
this
.
_register
(
DOM
.
addDisposableListener
(
minimizeIcon
,
DOM
.
EventType
.
CLICK
,
e
=>
{
this
.
electronService
.
minimizeWindow
();
}));
// Restore
this
.
maxRestoreControl
=
DOM
.
append
(
this
.
windowControls
,
DOM
.
$
(
'
div.window-icon.window-max-restore
.codicon
'
));
this
.
maxRestoreControl
=
DOM
.
append
(
this
.
windowControls
,
DOM
.
$
(
'
div.window-icon.window-max-restore
'
));
this
.
_register
(
DOM
.
addDisposableListener
(
this
.
maxRestoreControl
,
DOM
.
EventType
.
CLICK
,
async
e
=>
{
const
maximized
=
await
this
.
electronService
.
isMaximized
();
if
(
maximized
)
{
...
...
@@ -187,7 +188,7 @@ export class TitlebarPart extends BrowserTitleBarPart {
}));
// Close
const
closeIcon
=
DOM
.
append
(
this
.
windowControls
,
DOM
.
$
(
'
div.window-icon.window-close
.codicon.codicon-chrome-close
'
));
const
closeIcon
=
DOM
.
append
(
this
.
windowControls
,
DOM
.
$
(
'
div.window-icon.window-close
'
+
Codicon
.
chromeClose
.
cssSelector
));
this
.
_register
(
DOM
.
addDisposableListener
(
closeIcon
,
DOM
.
EventType
.
CLICK
,
e
=>
{
this
.
electronService
.
closeWindow
();
}));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录