b11107

fix: peach brand icon stays peach across all accents (v1.7.2)

time
2026-04-24 00:54 UTC · 6 months ago
machine
koh2
parent
a1c947
5 files manifest.firefox.json+1 −1manifest.json+1 −1package.json+1 −1src/content/inject.ts+4 −1src/popup/styles/popup.css+3 −3
manifest.firefox.json+1 −1
@@ -1,7 +1,7 @@11 {22   "manifest_version": 3,33   "name": "Peach",4-  "version": "1.7.1",4+  "version": "1.7.2",55   "description": "Zero-knowledge password manager",66   "browser_specific_settings": {77     "gecko": {

view file

manifest.json+1 −1
@@ -1,7 +1,7 @@11 {22   "manifest_version": 3,33   "name": "Peach",4-  "version": "1.7.1",4+  "version": "1.7.2",55   "description": "Zero-knowledge password manager",66   "action": {77     "default_popup": "src/popup/index.html",

view file

package.json+1 −1
@@ -1,6 +1,6 @@11 {22   "name": "peach",3-  "version": "1.7.1",3+  "version": "1.7.2",44   "description": "Zero-knowledge password manager",55   "type": "module",66   "scripts": {

view file

src/content/inject.ts+4 −1
@@ -68,7 +68,10 @@6868 }6969 7070 function peachIconSvg(): string {71-  return `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 64 64" fill="none" aria-hidden="true"><path d="M32 54C16 54 8 44 8 31C8 18 17 10 27 10C28 7 30 5.5 32 5.5C34 5.5 36 7 37 10C47 10 56 18 56 31C56 44 48 54 32 54Z" fill="${accentHex}"/><path d="M37 8.5C40.5 3.5 48 5 46 10.5C42 11 37 8.5 37 8.5Z" fill="#7B9060"/></svg>`;71+  // Peach body is always brand-peach (#D96830), not `accentHex` — a sage72+  // or sky accent must not turn the autofill icon green or blue. Accent73+  // color still tints surrounding glow/hover halos below.74+  return `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 64 64" fill="none" aria-hidden="true"><path d="M32 54C16 54 8 44 8 31C8 18 17 10 27 10C28 7 30 5.5 32 5.5C34 5.5 36 7 37 10C47 10 56 18 56 31C56 44 48 54 32 54Z" fill="#D96830"/><path d="M37 8.5C40.5 3.5 48 5 46 10.5C42 11 37 8.5 37 8.5Z" fill="#7B9060"/></svg>`;7275 }7376 7477 function genSvgStr(): string {

view file

src/popup/styles/popup.css+3 −3
@@ -2898,9 +2898,9 @@28982898   width: 100%;28992899   height: 100%;29002900 }2901-.peach-lock-hero-mark path:first-child {2902-  fill: color-mix(in srgb, var(--peach-accent) 92%, transparent);2903-}2901+/* Peach body stays brand-peach across every accent — we don't want a2902+   green or blue peach when sage/sky is selected. Leaf + stem keep the2903+   sage tint because a real peach has a sage leaf. */29042904 .peach-lock-hero-mark path:nth-child(2),29052905 .peach-lock-hero-mark path:nth-child(3) {29062906   stroke: rgba(123, 144, 96, 0.88);

view file