set custom icon for my custom widget (newb) #14680
-
I have put boxes.svg into the src/browser/style directory with index.css. It has the entry: in my playground-widget.ts I have: When I run Theia, the widget is displayed correctly except for the icon. I don't even think the build is picking up the svg. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hey @daleasberry-n, Does the build pick up your css at all? Do you have an import in your TypeScript code like this: import "../../src/browser/style/index.css"; |
Beta Was this translation helpful? Give feedback.
-
Is there an example project somewhere? Can't find in the documentation how to do it and CoPilot is just going in circles. |
Beta Was this translation helpful? Give feedback.
Found the answer in the css:
.unclosable-window-icon {
-webkit-mask: url("window-icon.svg");
mask: url("window-icon.svg");
}
I was using
background-image: url("window-icon.svg");