diff --git a/examples/api-samples/src/browser/style/branding.css b/examples/api-samples/src/browser/style/branding.css index e414960b0466a..a969d1e2b9d42 100644 --- a/examples/api-samples/src/browser/style/branding.css +++ b/examples/api-samples/src/browser/style/branding.css @@ -27,3 +27,8 @@ background-repeat: no-repeat; background-size: 15%; } + +.unclosable-window-icon { + -webkit-mask: url('window-icon.svg'); + mask: url('window-icon.svg'); +} diff --git a/examples/api-samples/src/browser/style/window-icon.svg b/examples/api-samples/src/browser/style/window-icon.svg new file mode 100644 index 0000000000000..b7cd62ad53907 --- /dev/null +++ b/examples/api-samples/src/browser/style/window-icon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/examples/api-samples/src/browser/view/sample-unclosable-view.tsx b/examples/api-samples/src/browser/view/sample-unclosable-view.tsx index 297508559e564..71050d10d61ac 100644 --- a/examples/api-samples/src/browser/view/sample-unclosable-view.tsx +++ b/examples/api-samples/src/browser/view/sample-unclosable-view.tsx @@ -14,7 +14,7 @@ * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 ********************************************************************************/ -import { codicon, ReactWidget } from '@theia/core/lib/browser'; +import { ReactWidget } from '@theia/core/lib/browser'; import { injectable, postConstruct } from '@theia/core/shared/inversify'; import * as React from '@theia/core/shared/react'; @@ -30,7 +30,7 @@ export class SampleViewUnclosableView extends ReactWidget { this.id = SampleViewUnclosableView.ID; this.title.caption = 'Sample Unclosable View'; this.title.label = 'Sample Unclosable View'; - this.title.iconClass = codicon('window'); + this.title.iconClass = 'unclosable-window-icon'; this.title.closable = false; this.update(); }