✅Recently updated
Description
# Old Chrome Bookmarks Button
Attempt to perfectly replicate the "Add to Bookmarks" popup last found in Chrome 63. The original was a native macOS Cocoa UI, not web-rendered.
---
## Source files used
### `chrome/app/nibs/BookmarkBubble.xib`
Interface Builder layout for the main popup (clicking the star icon).
- Window: 374 × 145 px
- Font (title "Bookmark"): 13pt — `metaFont="system"`
- Font (all other controls): 11pt — `metaFont="smallSystem"`
- Name input: height 19px, `borderStyle="bezel"`, `controlSize="small"`
- Folder picker: height 22px, `NSPopUpButton`, `bezelStyle="rounded"`, `controlSize="small"`
- Buttons (Remove, Edit..., Done): height 28px, `bezelStyle="rounded"`, `controlSize="small"`
- Done button: `keyEquivalent="\r"` — this is what makes macOS color it blue
### `chrome/app/nibs/BookmarkEditor.xib`
Interface Builder layout for the Edit Bookmark sheet.
- Window: 480 × 270 px
- Font (all controls): 13pt — `metaFont="system"`
- Name / URL inputs: height 22px, `borderStyle="bezel"`
- Folder tree: `NSOutlineView` in `NSScrollView`, height 139px, indent 16px per level
- Buttons (New folder, Cancel, Save): height 32px, `bezelStyle="rounded"`
- Save button: `keyEquivalent="\r"` — colored blue by macOS
### `chrome/browser/ui/cocoa/info_bubble_view.h`
Drawing constants for the popup bubble container.
- Corner radius: 2px — `kBubbleCornerRadius = 2.0`
- Arrow height: 8px — `kBubbleArrowHeight = 8.0`
- Arrow width: 15px — `kBubbleArrowWidth = 15.0`
- Background: pure white — `[NSColor whiteColor]`
### `chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm`
Confirmed: folder selector is `NSPopUpButton`, "Choose Another Folder…" at the bottom opens the editor sheet.
### `chrome/browser/ui/cocoa/bookmarks/bookmark_editor_base_controller.mm`
Confirmed: folder tree uses `NSTreeController` + `NSOutlineView`.
---
## Key finding
There are no image assets (PNG, shader, etc.) for any of these controls. Everything — button gradients, glow, the blue NSPopUpButton indicator — is rendered at runtime by macOS AppKit. The CSS in this extension is a manual simulation.
---
## Color matching on macOS (Display P3)
Macs with Retina displays use the **Display P3** color space. This causes a mismatch when trying to match CSS colors to a reference screenshot:
1. You write a hex color (e.g. `#2165f6`) in CSS → Chrome treats it as **sRGB**
2. macOS converts sRGB → P3 for display on screen
3. You take a screenshot → macOS saves it tagged with the **Display P3 ICC profile**
4. You open in Photoshop → it reads P3-encoded pixel values → shows a different hex (e.g. `#3d74ed`)
### Solution: use `color(display-p3 ...)` in CSS
Reference screenshots are already in P3. Pixel-sample them directly (e.g. with Python PIL), then feed those values back into CSS as P3 — bypassing the double-conversion:
```css
background: linear-gradient(
to bottom,
color(display-p3 0.467 0.647 0.961) 0%,
color(display-p3 0.129 0.396 0.965) 100%
);
```
This way the chain is consistent end-to-end: reference screenshot (P3) → CSS P3 values → Chrome renders P3 → screenshot matches reference pixel-for-pixel.
### Converting hex to P3 decimal
`color(display-p3 ...)` does not accept hex — only decimal values from 0 to 1. To convert a hex color sampled from a macOS screenshot:
```
#77a5f5 → r=119, g=165, b=245 → divide each by 255 → 0.467, 0.647, 0.961
```
```css
color(display-p3 0.467 0.647 0.961)
```
Reviews
Loading reviews...
Permissions (3)
Permissions
bookmarksℹ Can read and modify your bookmarks storageℹ Can store data locally in your browser tabsℹ Can see your open tabs and their URLs
Details
| Version | 1.1 |
| Updated | Mar 16, 2026 |
| Size | 48.24KiB |
| First Seen | Mar 27, 2026 |
More by vitcunha
Popular in functionality
Hola VPN - Your Website Unblocker
by Hola VPN LTD.
5M
★ 4.84
functionality
5M
★ 4.84
functionality
Video Speed Controller
by igrigorik
3M
★ 4.54
functionality
3M
★ 4.54
functionality
SponsorBlock for YouTube - Skip Sponsorships
by Ajay
2M
★ 4.65
functionality
2M
★ 4.65
functionality
OneTab
by OneTab
2M
★ 4.45
functionality
2M
★ 4.45
functionality
VPN Chrome extension - Best VPN by uVPN
by uVPN
900K
★ 4.52
functionality
900K
★ 4.52
functionality
Popular Extensions
Adobe Acrobat: PDF edit, convert, sign tools
by Adobe Inc.
331M
★ 4.40
workflow
331M
★ 4.40
workflow
AdBlock — block ads across the web
by AdBlock
62M
★ 4.48
workflow
62M
★ 4.48
workflow
迅雷下载支持
by Shenzhen Xunlei Network Technology Co., Ltd.
59M
★ 2.77
workflow
59M
★ 2.77
workflow
Grammarly: AI Writing Assistant and Grammar Checker App
by Grammarly
42M
★ 4.50
communication
42M
★ 4.50
communication
Adblock Plus - free ad blocker
by eyeo GmbH
41M
★ 4.39
workflow
41M
★ 4.39
workflow