Skip to content

Commit 3202abe

Browse files
committed
add icon files
1 parent 2211016 commit 3202abe

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

assets/icons/unicorn.icns

79.2 KB
Binary file not shown.

assets/icons/unicorn.ico

14.7 KB
Binary file not shown.

assets/icons/unicorn.png

16.7 KB
Loading

electron/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const createWindow = (pyPort) => {
4040
mainWindow = new BrowserWindow({
4141
width: 1200,
4242
height: 800,
43+
icon: path.join(__dirname, "../assets/icons/unicorn.png"), // ✅ Use .png for dev
4344
webPreferences: {
4445
preload: path.join(__dirname, "preload.js"),
4546
contextIsolation: true,

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@
4343
],
4444
"mac": {
4545
"category": "public.app-category.utilities",
46+
"icon": "assets/icons/unicorn.icns",
4647
"target": [
4748
"dmg",
4849
"zip"
4950
]
5051
},
5152
"win": {
53+
"icon": "assets/icons/unicorn.ico",
5254
"target": [
5355
"nsis",
5456
"portable"

react/src/PostEditor.tsx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -205,19 +205,20 @@ export default function PostEditor({
205205
}, []);
206206

207207
const handlePickImage = async () => {
208-
try {
209-
const paths = await window.electronAPI.pickImage();
210-
if (paths) {
211-
const newMediaFiles = paths.map((path) => ({
212-
path,
213-
type: "image" as const,
214-
name: path.split("/").pop() || path,
215-
}));
216-
setMediaFiles((prev) => [...prev, ...newMediaFiles]);
217-
}
218-
} catch (error) {
219-
toast.error("Failed to pick images");
220-
}
208+
alert("Under development, coming soon!");
209+
// try {
210+
// const paths = await window.electronAPI.pickImage();
211+
// if (paths) {
212+
// const newMediaFiles = paths.map((path) => ({
213+
// path,
214+
// type: "image" as const,
215+
// name: path.split("/").pop() || path,
216+
// }));
217+
// setMediaFiles((prev) => [...prev, ...newMediaFiles]);
218+
// }
219+
// } catch (error) {
220+
// toast.error("Failed to pick images");
221+
// }
221222
};
222223

223224
const handlePickVideo = async () => {

0 commit comments

Comments
 (0)