feat(icon): update application icon and references

- Changed application icon from `icon_gold.png` to `logo.png` across package.json, main.js, and relevant components.
- Updated image source paths in Sidebar and WelcomeView components to reflect the new logo file.

This update standardizes the icon used throughout the application, enhancing visual consistency.
This commit is contained in:
Cody Seibert
2025-12-09 22:48:58 -05:00
parent 39043b8958
commit 229df2ee29
5 changed files with 14 additions and 16 deletions

View File

@@ -12,11 +12,11 @@ let mainWindow = null;
// Get icon path - works in both dev and production
function getIconPath() {
// In dev: __dirname is electron/, so ../public/icon_gold.png
// In dev: __dirname is electron/, so ../public/logo.png
// In production: public folder is included in the app bundle
return app.isPackaged
? path.join(process.resourcesPath, "app", "public", "icon_gold.png")
: path.join(__dirname, "../public/icon_gold.png");
? path.join(process.resourcesPath, "app", "public", "logo.png")
: path.join(__dirname, "../public/logo.png");
}
function createWindow() {
@@ -193,7 +193,9 @@ ipcMain.handle(
await fs.mkdir(imagesDir, { recursive: true });
// Generate unique filename with unique ID
const uniqueId = `${Date.now()}-${Math.random().toString(36).substring(2, 11)}`;
const uniqueId = `${Date.now()}-${Math.random()
.toString(36)
.substring(2, 11)}`;
const safeName = filename.replace(/[^a-zA-Z0-9.-]/g, "_");
const imageFilePath = path.join(imagesDir, `${uniqueId}_${safeName}`);

View File

@@ -87,7 +87,7 @@
"arch": ["x64", "arm64"]
}
],
"icon": "public/icon_gold.png"
"icon": "public/logo.png"
},
"win": {
"target": [
@@ -96,7 +96,7 @@
"arch": ["x64"]
}
],
"icon": "public/icon_gold.png"
"icon": "public/logo.png"
},
"linux": {
"target": [
@@ -110,7 +110,7 @@
}
],
"category": "Development",
"icon": "public/icon_gold.png"
"icon": "public/logo.png"
},
"nsis": {
"oneClick": false,

BIN
app/public/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

View File

@@ -428,16 +428,16 @@ export function Sidebar() {
onClick={() => setCurrentView("welcome")}
data-testid="logo-button"
>
<div className="relative flex items-center justify-center w-8 h-8 rounded-lg group">
<div className="relative flex items-center justify-center rounded-lg group">
<img
src="/icon_gold.png"
src="/logo.png"
alt="Automaker Logo"
className="w-8 h-8 group-hover:rotate-12 transition-transform"
className="size-8 group-hover:rotate-12 transition-transform"
/>
</div>
<span
className={cn(
"ml-3 font-bold text-sidebar-foreground text-base tracking-tight",
"ml-1 font-bold text-sidebar-foreground text-base tracking-tight",
sidebarOpen ? "hidden lg:block" : "hidden"
)}
>

View File

@@ -284,11 +284,7 @@ export function WelcomeView() {
<div className="px-8 py-6">
<div className="flex items-center gap-3 mb-2">
<div className="w-10 h-10 rounded-xl flex items-center justify-center">
<img
src="/icon_gold.png"
alt="Automaker Logo"
className="w-10 h-10"
/>
<img src="/logo.png" alt="Automaker Logo" className="w-10 h-10" />
</div>
<div>
<h1 className="text-2xl font-bold text-foreground">