mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
Refactor icon mask size to use CSS variable for activity bar
This commit is contained in:
@@ -403,9 +403,9 @@ export class PaneCompositeBar extends Disposable {
|
||||
classNames = [iconId, 'uri-icon'];
|
||||
createCSSRule(iconClass, `
|
||||
mask: ${cssUrl} no-repeat 50% 50%;
|
||||
mask-size: ${this.options.iconSize}px;
|
||||
mask-size: var(--activity-bar-icon-size, ${this.options.iconSize}px);
|
||||
-webkit-mask: ${cssUrl} no-repeat 50% 50%;
|
||||
-webkit-mask-size: ${this.options.iconSize}px;
|
||||
-webkit-mask-size: var(--activity-bar-icon-size, ${this.options.iconSize}px);
|
||||
mask-origin: padding;
|
||||
-webkit-mask-origin: padding;
|
||||
`);
|
||||
|
||||
Reference in New Issue
Block a user