Skip to content

Commit

Permalink
Change tray icons
Browse files Browse the repository at this point in the history
  • Loading branch information
robertobandini committed Jun 19, 2024
1 parent 369ea6f commit 8ba3cb1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/generate-tray-icons/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const getBaseIconImage = async (system: TargetSystems) => {
const dom = new JSDOM(`<body>${svgData}</body>`);
const root = dom.window.document.body.getElementsByTagName("svg")[0];

root.innerHTML += getSvgStyling(system === "macos" ? "light" : "dark");
//root.innerHTML += getSvgStyling(system === "macos" ? "light" : "dark");

return Buffer.from(root.outerHTML);
}
Expand Down Expand Up @@ -141,7 +141,8 @@ async function getIconImage(system: TargetSystems, filePath: string) {
const svgData = await readFile(filePath, { encoding: "utf-8" });
const root = new JSDOM(svgData).window.document.getElementsByTagName("svg")[0];

root.innerHTML += getSvgStyling(system === "macos" ? "light" : "dark");
//root.innerHTML += getSvgStyling(system === "macos" ? "light" : "dark");
root.innerHTML += getSvgStyling("dark");

return Buffer.from(root.outerHTML);
}
Expand Down
4 changes: 2 additions & 2 deletions packages/ui-components/icon/assets/logo-lens.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8ba3cb1

Please sign in to comment.