From 4cea97a61725119cf6a5d5bcb883a24be71f2676 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 29 Apr 2026 09:55:53 -0400 Subject: [PATCH] Rebrand to Trailhead - Tray tooltip: "Trailhead Path Bookmarker" - Popup header: "Trailhead" - electron-builder productName: "Trailhead" - New tray icon: orange mountain peak with pennant flag (replaces folder pictogram). Tuned to 2px-min strokes so it survives downscaling to the 16-24px Windows tray - Hide scrollbars across all scroll surfaces (popup, columns row, tab strip) while keeping scroll behavior intact --- assets/tray-icon.png | Bin 122 -> 188 bytes electron/main.js | 2 +- package.json | 2 +- scripts/generate-icon.js | 51 ++++++++++++++++++++++++++------------- src/components/Popup.jsx | 2 +- src/styles/index.css | 13 ++++++++++ 6 files changed, 50 insertions(+), 20 deletions(-) diff --git a/assets/tray-icon.png b/assets/tray-icon.png index d791b3c978c2578b8477374bf245e4643852d3a6..a90bd80afb8e8f2de249dc46a688b5a7f7bd3cca 100644 GIT binary patch delta 159 zcmV;Q0AT-myaA9Te}hRxK~#90?b5LgfG`Y1(Tv3$G>k&SEOZRT7Hkldf(9ibiG4l< zKFRfeiV}iPux%V-Iy&H3m+U#wE(lH&TXHkn2z!aSDc2R0`75BL@92DpaP!a zP(*DUhM)pkxEg{Akj6y_t#~(r3eb)>AyDxu1UfGI8I- 27) return -1; + // Linear from 1 at y=8 (peak ~2px) to 14 at y=27 (~28px base). + return Math.floor(((y - 8) * 13) / 19) + 1; +} + function colorAt(x, y) { - // Folder tab (top): smaller rectangle on the left - const tabLeft = 4, tabRight = 13, tabTop = 7, tabBottom = 11; - // Folder body: larger rectangle below - const bodyLeft = 3, bodyRight = 28, bodyTop = 11, bodyBottom = 25; + // Flag pole — vertical 2px column from y=2 down to where it meets the peak. + if ((x === 15 || x === 16) && y >= 2 && y <= 8) return ORANGE_DARK; - const inTab = x >= tabLeft && x <= tabRight && y >= tabTop && y <= tabBottom; - const inBody = x >= bodyLeft && x <= bodyRight && y >= bodyTop && y <= bodyBottom; + // Flag pennant — rectangle to the right of the pole. + if (y >= 3 && y <= 6 && x >= 17 && x <= 22) return ORANGE_LIGHT; - if (!inTab && !inBody) return TRANSPARENT; + // Mountain body. + const hw = mountainHalfWidth(y); + if (hw > 0) { + const cx = 15; + const left = cx - hw + 1; + const right = cx + hw; + if (x >= left && x <= right) { + // Right slope shadow — last 2 columns on the right edge of each row. + if (x >= right - 1 && hw > 1) return ORANGE_DARK; + // Soft peak highlight — top 2 rows, painted lighter. + if (y <= 9) return ORANGE_LIGHT; + return ORANGE; + } + } - // Soft top edge on body where the tab steps down — paints a single-row - // shadow line to give the folder some dimension at small sizes. - if (inBody && y === bodyTop && x > tabRight + 1) return ORANGE_DARK; - - return ORANGE; + return TRANSPARENT; } function buildRawImage() { diff --git a/src/components/Popup.jsx b/src/components/Popup.jsx index f8987fb..a3d4b99 100644 --- a/src/components/Popup.jsx +++ b/src/components/Popup.jsx @@ -152,7 +152,7 @@ export default function Popup({
-

Folder Bookmarks

+

Trailhead

{!creatingColumn ? (