Repository navigation
feat(sidepanel): Arc-style per-Space ambient tint + emoji picker - #77
Merged
Merged
Conversation
- theme.ts: add COLOR_GRADIENT per SpaceColor (translucent stops so the same gradient reads correctly over both light- and dark-mode --bg). - globalStyles.tsx: paint the active gradient on <body> via the --space-tint CSS variable; #root is now transparent so the body layer shows through (previously the opaque #root background masked it). - App.tsx: write --space-tint from activeSpaceByWindow[windowId] so the tint follows space switching and persists into the live-create/edit sub-views. - SpaceContent.tsx: drop the redundant ColorDot next to the active Space name now that the whole panel reflects the color. - EmojiPicker (new atom) replaces the free-form EmojiInput in SpaceMenu / FolderMenu — 36-emoji preset grid with toggle-to-clear. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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
live-create/live-editサブビュー中も色が残る。EmojiInput)から 36 個のプリセット絵文字グリッド (EmojiPicker) に変更。タップでトグル、Clear リンクで解除。ColorDotは、パネル全体が色付くため冗長になったので削除(タブ strip のピル内ドットは残置 — Space 同士を区別する唯一の色手がかりのため)。Implementation notes
COLOR_GRADIENT: Record<SpaceColor, string>で 9 色分。透過 stop を使い、--bgの上に重ねることで light/dark 両対応。<body>にbackground-image: var(--space-tint)を当て、App.tsxのuseEffectからdocument.body.style.setProperty('--space-tint', ...)で書き込む。#rootにbackground: var(--bg)がかかっており body のグラデーションを完全に隠していた →#rootをtransparentにして解消。Test plan
bun run dev→ unpacked extension をリロード → サイドパネルを開くbun run build/bun run test(225 passed) が通る🤖 Generated with Claude Code