提交 33108e1b 编写于 作者: S Sandeep Somavarapu

set icon mask size to 22px

上级 ddbd627a
......@@ -96,7 +96,7 @@ activityGroupExtensionPoint.setHandler((extensions) => {
// Generate CSS to show the icon in the activity bar
const iconClass = `.monaco-workbench > .activitybar .monaco-action-bar .action-label.${cssClass}`;
const iconPath = join(extension.description.extensionFolderPath, descriptor.icon);
createCSSRule(iconClass, `-webkit-mask: url('${iconPath}') no-repeat 50% 50%; -webkit-mask-size: contain;`);
createCSSRule(iconClass, `-webkit-mask: url('${iconPath}') no-repeat 50% 50%; -webkit-mask-size: 22px;`);
// Register as viewlet
class CustomViewlet extends PersistentViewsViewlet {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册