Skip to content

Commit e4558e2

Browse files
fix: fix windsurf icon on light theme (cherry-pick #17679) (#17686)
Co-authored-by: Bruno Quaresma <bruno@coder.com> fix: fix windsurf icon on light theme (#17679)
1 parent 816a4ed commit e4558e2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

site/src/modules/resources/AppLink/BaseIcon.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import ComputerIcon from "@mui/icons-material/Computer";
22
import type { WorkspaceApp } from "api/typesGenerated";
3+
import { ExternalImage } from "components/ExternalImage/ExternalImage";
34
import type { FC } from "react";
45

56
interface BaseIconProps {
@@ -9,7 +10,7 @@ interface BaseIconProps {
910

1011
export const BaseIcon: FC<BaseIconProps> = ({ app, onIconPathError }) => {
1112
return app.icon ? (
12-
<img
13+
<ExternalImage
1314
alt={`${app.display_name} Icon`}
1415
src={app.icon}
1516
style={{ pointerEvents: "none" }}

site/src/theme/externalImages.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,5 @@ export const defaultParametersForBuiltinIcons = new Map<string, string>([
160160
["/icon/rust.svg", "monochrome"],
161161
["/icon/terminal.svg", "monochrome"],
162162
["/icon/widgets.svg", "monochrome"],
163+
["/icon/windsurf.svg", "monochrome"],
163164
]);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy