Skip to content

OpenCode (Rune): sidebar project icons look like candy, with a glossy top light - #7

Merged
kitlangton merged 1 commit into
mainfrom
candy-project-icons
Nov 8, 2026
Merged

kitlangton merged 1 commit into
mainfrom
candy-project-icons

Conversation

@kitlangton

Copy link
Copy Markdown
Collaborator

Sidebar project icons now look like candy: a glossy band of light across the top third, a body that deepens toward the bottom, and a soft drop shadow, the way the OpenCode iOS drawer's tiles look lit.

Before: flat tiles with a half-point ring. At sidebar size they read as plain stickers.
After: each tile reads as a lit, glossy sweet at actual size. Images keep their own pixels, with the same light laid over them, and coloured tiles keep their saturation: the bottom is darkened, never greyed.

Actual size, dark (before left, after right):

Actual size, light:

Close-up, 4×: before and after, dark then light

project_icon::Icons::set_finish(Finish)       // default Flat, so other apps are unchanged
  Candy  gloss band + top-lit body + bottom shade + drop shadow   ← the app's default
  Glass  iOS drawer recipe: soft highlight, fading white edge, light shadow
  Flat   the tile as before
light = one bitmap per tile size, cached and drawn over the image or letter
  • The ⌘⇧K knob Project icons › Icon finish switches between them. The story Sidebar/Project icons shows each finish on the real sidebar tabs (F steps through them).
  • Glass and Flat are only there to compare. Whichever look isn't picked gets deleted in a follow-up.
  • Every 16 pt project badge uses the finish (sidebar, header crumb, pickers), so they all match.

Read: crates/project-icon/src/finish.rs holds the whole look; lib.rs only places the light and shadow. Tests: project-icon passes. In opencode-desktop I ran the story tests; registered_lists_keep_their_order was already failing on main because its scene list is out of date. Its knob-group list was too, and this PR fixes that list.

… top light, a deeper body and a drop shadow (t1456)
@kitlangton
kitlangton merged commit 1e8f58d into main Nov 8, 2026
2 checks passed
@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into main. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode-rune/desktop/dev/macos-arm64-dmg.

Hona added a commit that referenced this pull request Nov 11, 2026
… start edge, as Desktop's aside's do. The side region's slot clipped the card's elevation (outside its box) at its start, so the 0.5 pt ring and its shadow were missing down the card's left side; a clip 4 pt wider on that side lets them show while the region is open or sliding, and none once it rests shut. At 1x the card's start edge now reads #f9 #f8 #e6 | #ff in light and #8 #7 #15 | #16 in dark, Desktop's #f9 #f8 #e6 | #ff and #8 #7 #16 | #16, where it read #fa #fa #fa | #ff.
Hona added a commit that referenced this pull request Nov 20, 2026
…n proxy init, close tabs on proxy drop/failure, and block remote loopback external handoff (#292)

* fix(browser): require loopback proxy on RemoteServer, gate Navigate on proxy init, close tabs on proxy drop/failure, and block remote loopback external handoff

Addresses `notes/review-rd-engine.md` Finding 1 (and §7 proxy/drop/untrimmed-key, §3.5
password `Debug` redaction, §6 `oc-preview://` menu URL filter, §8 remote loopback
external-open block, and Reader-9 empirical item #7):

- **Refuse unproxied `RemoteServer` tabs fail-closed (`apps/browser-engine/src/context.rs`,
  `crates/browser-pane/src/{protocol,client,find}.rs`, `apps/desktop/src/surfaces/browser/mod.rs`):**
  Removes the `mode: "direct"` fallback for `RemoteServer` contexts. Both `BrowserHost`
  and `ContextPool` require a live authenticated loopback proxy (`browser.proxy.required`
  if absent; `RemoteServer` always requires `partitions && remote_proxy`). Caches
  `remote_proxies` on `BrowserHost` (supplied automatically by `default_browser_context()`
  and re-sent across engine reconnects) for BROWSER-TOOLS' `TunnelProxy` integration.
- **Gate `HostMsg::Navigate` / history nav on `initialized && prefs_ok` (`context.rs`,
  `engine.rs`):** Closes the `about:blank` + immediate `HostMsg::Navigate` race window
  before `on_request_context_initialized` finishes applying `fixed_servers` +
  `<-loopback>` and required lockdown preferences (`webrtc.ip_handling_policy`,
  `net.quic_allowed`, `net.network_prediction_options`), failing closed if any required
  preference write returns `0`. Brackets IPv6 `::1` proxy hosts as `http://[::1]:<port>`
  and trims all pooled `ContextKey` strings canonically.
- **Close live tabs on proxy failure, proxy clear, or `DropContext` (`engine.rs`):**
  Closes and refuses every live tab in a `RemoteServer` context if proxy initialization or
  `SetPartitionProxy` fails or clears (`proxy: None`), and closes all live tabs in a
  context before `DropContext` tears down the pool entry.
- **Block remote loopback external handoff & redact proxy credentials (`surfaces/browser/
  {mod,context_menu}.rs`, `menu.rs`, `wire.rs`, `protocol.rs`):** `external_url_allowed_for_tab`
  refuses loopback HTTP(S) URLs from remote-server tabs in both the page context menu and
  `open_browser_tab_externally`; removes arbitrary `oc-preview://` allow from `menu.rs`;
  redacts `RemoteProxyConfig::{username, password}` in `Debug`.

* fix(browser): close READER-9 #292 delta blockers (pre-init gate, context inheritance, pref readback, suspend/resume, loopback)

* chore(browser-policy): split loopback/proxy helpers into network.rs and fix i18n keys

* fix(browser): close READER-9 #292 round-2 findings (closed opener, OpenTab proxy sync, resume order, downloads gate, suspended UI)

* fix(browser): key Downloads.files by (tab_id, item_id) and always cancel context menu callback
Hona added a commit that referenced this pull request Nov 21, 2026
Hona added a commit that referenced this pull request Nov 21, 2026
…ffset hit test and focused-frame walk (#444)

* feat(browser): add serialized per-tab InputGuard with scroll-offset hit test and focused-frame walk

* fix(browser): address all 5 READER-12 #444 blockers, 3 should-fix items, scoped revisions, and paired mouseReleased

* fix(browser): close READER-10 Critical #3/#7 in InputGuard, PointResolver, DropFiles, and start_drag

This branch was previously deployed

1 inactive deployment
release — ac16093a Deployed Nov 8, 2026 by kitlangton via sign-macos #14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant