Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

fix(windows): enlarge taskbar icon artwork and lettering (#703)

l0ng-ai0b68cb3e7632
diff --git a/package.json b/package.json
index b3aae1344..76100246e 100644
--- a/package.json
+++ b/package.json
@@ -18,6 +18,7 @@
"knip": "knip",
"typecheck": "tsrs --noEmit && tsrs -p tsconfig.node.json --noEmit && tsrs -p perf --noEmit && tsrs -p scripts --noEmit",
"gen:bindings": "cargo test -p openidea --test export_bindings",
+ "gen:windows-icons": "node scripts/gen-windows-icons.ts",
"gen:angular-grammar": "lezer-generator src/editor/core/cm/angular/angular.grammar --typeScript -o src/editor/core/cm/angular/parser.ts",
"gen:jsp-grammar": "lezer-generator src/editor/core/cm/jsp/jsp.grammar --typeScript -o src/editor/core/cm/jsp/parser.ts",
"gen:theme-docs": "node scripts/theme/gen-docs.ts",
diff --git a/scripts/gen-windows-icons.ts b/scripts/gen-windows-icons.ts
new file mode 100644
index 000000000..5632bf91a
--- /dev/null
+++ b/scripts/gen-windows-icons.ts
@@ -0,0 +1,35 @@
+import { spawnSync } from "node:child_process";
+import { copyFileSync, mkdtempSync, realpathSync, rmSync } from "node:fs";
+import { createRequire } from "node:module";
+import { tmpdir } from "node:os";
+import { dirname, join } from "node:path";
+import { fileURLToPath } from "node:url";
+
+const root = fileURLToPath(new URL("..", import.meta.url));
+const icons = join(root, "src-tauri", "icons");
+const tempRoot = realpathSync(tmpdir());
+const output = mkdtempSync(join(tempRoot, "openidea-windows-icons-"));
+function removeOutput() {
+ // Only remove the unique directory this invocation created inside the system temp directory.
+ if (dirname(realpathSync(output)) !== tempRoot) throw new Error("Unexpected icon output directory");
+ rmSync(output, { recursive: true, force: true });
+}
+try {
+ const cli = createRequire(import.meta.url).resolve("@tauri-apps/cli/tauri.js");
+ const result = spawnSync(
+ process.execPath,
+ [cli, "icon", join(icons, "source", "openidea-windows.svg"), "--output", output],
+ { cwd: root, stdio: "inherit" },
+ );
+ if (result.error) throw result.error;
+ if (result.status !== 0) throw new Error(`Icon generation failed (${result.status})`);
+ for (const name of [
+ "icon.ico",
+ "StoreLogo.png",
+ ...[30, 44, 71, 89, 107, 142, 150, 284, 310].map((size) => `Square${size}x${size}Logo.png`),
+ ]) {
+ copyFileSync(join(output, name), join(icons, name));
+ }
+} finally {
+ removeOutput();
+}
diff --git a/src-tauri/icons/Square107x107Logo.png b/src-tauri/icons/Square107x107Logo.png
index bf3e0021d..f682ed3a0 100644
Binary files a/src-tauri/icons/Square107x107Logo.png and b/src-tauri/icons/Square107x107Logo.png differ
diff --git a/src-tauri/icons/Square142x142Logo.png b/src-tauri/icons/Square142x142Logo.png
index 94e544632..11389ea34 100644
Binary files a/src-tauri/icons/Square142x142Logo.png and b/src-tauri/icons/Square142x142Logo.png differ
diff --git a/src-tauri/icons/Square150x150Logo.png b/src-tauri/icons/Square150x150Logo.png
index cf09c22c3..2cdff4926 100644
Binary files a/src-tauri/icons/Square150x150Logo.png and b/src-tauri/icons/Square150x150Logo.png differ
diff --git a/src-tauri/icons/Square284x284Logo.png b/src-tauri/icons/Square284x284Logo.png
index 99ca0f55f..29764c1fe 100644
Binary files a/src-tauri/icons/Square284x284Logo.png and b/src-tauri/icons/Square284x284Logo.png differ
diff --git a/src-tauri/icons/Square30x30Logo.png b/src-tauri/icons/Square30x30Logo.png
index 1a4981ff7..b2e440114 100644
Binary files a/src-tauri/icons/Square30x30Logo.png and b/src-tauri/icons/Square30x30Logo.png differ
diff --git a/src-tauri/icons/Square310x310Logo.png b/src-tauri/icons/Square310x310Logo.png
index 020ccca5b..e135f1726 100644
Binary files a/src-tauri/icons/Square310x310Logo.png and b/src-tauri/icons/Square310x310Logo.png differ
diff --git a/src-tauri/icons/Square44x44Logo.png b/src-tauri/icons/Square44x44Logo.png
index 3a6f27820..18862ba51 100644
Binary files a/src-tauri/icons/Square44x44Logo.png and b/src-tauri/icons/Square44x44Logo.png differ
diff --git a/src-tauri/icons/Square71x71Logo.png b/src-tauri/icons/Square71x71Logo.png
index 18c65d3c9..73157ae90 100644
Binary files a/src-tauri/icons/Square71x71Logo.png and b/src-tauri/icons/Square71x71Logo.png differ
diff --git a/src-tauri/icons/Square89x89Logo.png b/src-tauri/icons/Square89x89Logo.png
index adfdb1880..b88675b33 100644
Binary files a/src-tauri/icons/Square89x89Logo.png and b/src-tauri/icons/Square89x89Logo.png differ
diff --git a/src-tauri/icons/StoreLogo.png b/src-tauri/icons/StoreLogo.png
index 3883abaf5..d27885600 100644
Binary files a/src-tauri/icons/StoreLogo.png and b/src-tauri/icons/StoreLogo.png differ
diff --git a/src-tauri/icons/icon.ico b/src-tauri/icons/icon.ico
index 853d994f3..825477cdd 100644
Binary files a/src-tauri/icons/icon.ico and b/src-tauri/icons/icon.ico differ
diff --git a/src-tauri/icons/source/openidea-windows.svg b/src-tauri/icons/source/openidea-windows.svg
new file mode 100644
index 000000000..b1ce46286
--- /dev/null
+++ b/src-tauri/icons/source/openidea-windows.svg
@@ -0,0 +1,14 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 100 100" role="img" aria-label="OpenIDEA">
+ <rect x="2" y="2" width="96" height="96" rx="22" fill="#EAE7E0"/>
+ <g transform="translate(50 50) scale(1.5) translate(-50 -52)">
+ <rect x="22" y="26" width="56" height="52" rx="12" fill="#D9582C"/>
+ <rect x="27" y="26" width="46" height="42" rx="9" fill="#1B1A1A"/>
+ <g transform="translate(50 46) scale(1.35) translate(-50 -46)">
+ <circle cx="44" cy="47.4" r="4.1" fill="none" stroke="#EAE7E0" stroke-width="2.7"/>
+ <rect x="54.3" y="42" width="2.8" height="10.5" fill="#EAE7E0"/>
+ <rect x="51.2" y="42" width="5.9" height="2.5" fill="#EAE7E0"/>
+ <rect x="51.2" y="50" width="9.4" height="2.5" fill="#EAE7E0"/>
+ <circle cx="55.7" cy="38.4" r="1.8" fill="#EAE7E0"/>
+ </g>
+ </g>
+</svg>