Skip to content

Colota - Android GPS Location tracker

Add transparent logo variant for in-app use

Max Dietrich0ace7c23352d
diff --git a/apps/mobile/src/assets/icons/icon.png b/apps/mobile/src/assets/icons/icon.png
index dc4a5f7e..62439abc 100644
Binary files a/apps/mobile/src/assets/icons/icon.png and b/apps/mobile/src/assets/icons/icon.png differ
diff --git a/packages/shared/logo/generate-icons.mjs b/packages/shared/logo/generate-icons.mjs
index d0d7bde4..c12995f6 100644
--- a/packages/shared/logo/generate-icons.mjs
+++ b/packages/shared/logo/generate-icons.mjs
@@ -4,17 +4,20 @@ import { join, dirname } from "path";
import { fileURLToPath } from "url";
const __dirname = dirname(fileURLToPath(import.meta.url));
-const svgBuffer = readFileSync(join(__dirname, "logo.svg"));
+const logoBuffer = readFileSync(join(__dirname, "logo.svg"));
+const logoTransparentBuffer = readFileSync(join(__dirname, "logo-transparent.svg"));
const targets = [
- { size: 192, out: "../../../apps/docs/static/img/app-icon.png" },
- { size: 32, out: "../../../apps/docs/static/img/favicon.png" },
- { size: 128, out: "../../../apps/mobile/src/assets/icons/icon.png" },
+ // Docs (full logo with background)
+ { size: 192, out: "../../../apps/docs/static/img/app-icon.png", src: logoBuffer },
+ { size: 32, out: "../../../apps/docs/static/img/favicon.png", src: logoBuffer },
+ // In-app (transparent, themed by the app)
+ { size: 128, out: "../../../apps/mobile/src/assets/icons/icon.png", src: logoTransparentBuffer },
];
-for (const { size, out } of targets) {
+for (const { size, out, src } of targets) {
const outPath = join(__dirname, out);
mkdirSync(dirname(outPath), { recursive: true });
- await sharp(svgBuffer).resize(size, size).png().toFile(outPath);
+ await sharp(src).resize(size, size).png().toFile(outPath);
console.log(`${size}x${size} → ${out}`);
}
diff --git a/packages/shared/logo/logo-transparent.svg b/packages/shared/logo/logo-transparent.svg
new file mode 100644
index 00000000..999c381d
--- /dev/null
+++ b/packages/shared/logo/logo-transparent.svg
@@ -0,0 +1,33 @@
+<svg width="512" height="512" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg">
+ <defs>
+ <linearGradient id="pin-gradient" x1="0" y1="0" x2="0" y2="1">
+ <stop offset="0%" stop-color="#14b8a6"/>
+ <stop offset="100%" stop-color="#0d9488"/>
+ </linearGradient>
+ </defs>
+
+ <path d="M256 120
+ C196 120 152 164 152 224
+ C152 300 256 392 256 392
+ C256 392 360 300 360 224
+ C360 164 316 120 256 120 Z"
+ fill="url(#pin-gradient)"/>
+
+ <circle cx="256" cy="224" r="36" fill="#FFFFFF"/>
+
+ <path d="M256 88
+ a168 168 0 0 1 168 168"
+ fill="none"
+ stroke="url(#pin-gradient)"
+ stroke-width="16"
+ stroke-linecap="round"
+ opacity="0.6"/>
+
+ <path d="M256 56
+ a200 200 0 0 1 200 200"
+ fill="none"
+ stroke="url(#pin-gradient)"
+ stroke-width="12"
+ stroke-linecap="round"
+ opacity="0.4"/>
+</svg>