Repository navigation
feat: add favicon color setting - #80
Merged
Merged
Conversation
Adds an Appearance setting that tints the browser tab favicon to one of 8 colors (or the theme-aware default), making it easy to tell bb instances apart. The favicon glyph is monochrome, so tinting recolors it on a canvas via source-in compositing — no new image assets needed. The preference persists in localStorage (bb.faviconColor) and re-applies after the index.html bootstrap script resets favicons on system theme changes. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Replaces the plain circle swatches with the favicon glyph itself, rendered in each candidate color by using the favicon image as a CSS mask — so the preview matches the resulting tab icon. Co-Authored-By: Claude Opus 4.8 <[email protected]>
# Conflicts: # apps/app/src/views/AppSettingsView.tsx
hubarDevPersonal
added a commit
to hubarDevPersonal/bb
that referenced
this pull request
Sep 21, 2026
From the independent acceptance review of the theme and surface commits: - --surface-scrim is removed from the codex dark block. In Codex bg.scrim is the modal backdrop; in bb --surface-scrim is the frosted page-header surface (AppPageHeader), so get-bb#80 turned thread and page headers darker than the sidebar and let the timeline show through at 50%. Codex has no header-bar token, so it derives again. - The light block no longer sets --destructive-text, --warning-text, --diff-added or --diff-removed. The tokens are dark-only and those hues measured 2.8-4.0:1 on white; bb's defaults stay readable. - Raised cards (tool, terminal, system and file-diff blocks, task-diff message card, task-ready banner, composer) get border-border-seam and the desktop sidebar seam is restored. It is #ffffff0d in codex (reference border.light, practically invisible) and keeps an edge in themes whose raised and sidebar steps are only 2-3% ink. - Tests that assumed the old default theme id now use defaultAppTheme.themeId, and the curated category map includes the new workbench plugin (three suites were red on the branch). - The --palette-* identity tokens are documented in the bb-cli theming reference. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
hubarDevPersonal
added a commit
to hubarDevPersonal/bb
that referenced
this pull request
Sep 26, 2026
From the independent acceptance review of the theme and surface commits: - --surface-scrim is removed from the codex dark block. In Codex bg.scrim is the modal backdrop; in bb --surface-scrim is the frosted page-header surface (AppPageHeader), so get-bb#80 turned thread and page headers darker than the sidebar and let the timeline show through at 50%. Codex has no header-bar token, so it derives again. - The light block no longer sets --destructive-text, --warning-text, --diff-added or --diff-removed. The tokens are dark-only and those hues measured 2.8-4.0:1 on white; bb's defaults stay readable. - Raised cards (tool, terminal, system and file-diff blocks, task-diff message card, task-ready banner, composer) get border-border-seam and the desktop sidebar seam is restored. It is #ffffff0d in codex (reference border.light, practically invisible) and keeps an edge in themes whose raised and sidebar steps are only 2-3% ink. - Tests that assumed the old default theme id now use defaultAppTheme.themeId, and the curated category map includes the new workbench plugin (three suites were red on the branch). - The --palette-* identity tokens are documented in the bb-cli theming reference. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Favicon color setting under Appearance that tints the browser tab icon to one of 8 colors — Red, Orange, Yellow, Green, Teal, Blue, Purple, Pink — or the theme-aware Default. Handy for telling bb instances/profiles apart by tab.
How it works
apps/app/src/lib/favicon-color-preference.tsfollowing the existing localStorage preference pattern (atomWithStorage+createLocalStorageEnumStorage, keybb.faviconColor, default"default").source-incompositing, then swaps the<link rel="icon">hrefs to data URLs.initializeFaviconColor()(called frommain.tsx) applies the stored color at startup, re-applies on preference changes, and registers aprefers-color-schemelistener after the index.html bootstrap listener so a tinted favicon survives that script resetting hrefs on system theme changes. Selecting Default restores the existing dev/light/dark variant behavior.AppSettingsView, mirroring the Theme control.Validation
pnpm exec turbo run typecheck --filter=@bb/app✅pnpm exec turbo run lint --filter=@bb/app✅🤖 Generated with Claude Code