Skip to content

Pinned tiles stand off the column as panes of Liquid Glass - #1120

Open
naman0r wants to merge 2 commits into
yetanotherbrowser:mainfrom
naman0r:feat/glass-pins
Open

naman0r wants to merge 2 commits into
yetanotherbrowser:mainfrom
naman0r:feat/glass-pins

Conversation

@naman0r

@naman0r naman0r commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What changes

On macOS 26 and later, the pinned tiles in the sidebar are panes of Liquid Glass, the material macOS's own controls are made of (.glassEffect). Each tile is the system's clear glass tinted with the tile's fill, with light along its top edge fading down the sides, a sheen over the top half, and a close shadow. The open pin keeps the selection's fill and sheen, as the flat selection has, with a heavier, brighter edge, so it is still the one that stands out.

A switch in Settings › Appearance, Glass pins, turns it off for anyone who prefers the flat tiles. It is on by default and only shows on macOS 26 and later. With it off, before macOS 26, and with Reduce Transparency or Increase Contrast on, the tiles are exactly as they are now. The address field is unchanged.

Part of #176. It changes how pins look, so it needs your yes on the look and on the switch before it merges; the questions are below.

What it looks like

All pictures: Yab Dev on macOS 27.0, a test world, the same window (640 by 700 points, sidebar 236 points), the same ten pins with X open. "Before" is main at 31df560; "After" is this branch.

Moving between pins

Dark Light
Selecting each pin in turn, dark Selecting each pin in turn, light

A pin may flash its site's letter for a moment while it loads. That is #735, fixed in #1114 and not on this branch.

Every look, one after another

Dark navy, dark gray, light lilac, Glass dark, Glass light

Before and after, look by look

Look Before After
Dark, navy
Dark, gray
Light, lilac
Glass, dark
Glass, light

In the "before" pictures the address field shows its two buttons because the pointer was over the window when they were taken; this branch doesn't touch the field.

Close up, dark navy (before left, after right)

The tiles close up

The switch

Settings › Appearance › Sidebar, under Tab icons. Here it was found through Settings search, which highlights the row:

Glass pins in Settings

Glass pins on Glass pins off (same as today)
Dark
Light

It is stored as pins.glass, syncs between Macs the way Tab icons does (SyncShapes.settingKeys, and Preferences.adopt so a change from another Mac reaches open windows at once), and the yab command and agents read and change it like the other switches (glass-pins in NativeActions.swift).

I know new settings usually get a no here. This changes every pinned tab for everyone on macOS 26, so I added a way back to the flat tiles. If you'd rather it be simply on, taking the switch out is a few lines.

How it's built

  • Sources/Fast/PinGlass.swift (new): PinGround, a pin's ground. Where panes are on and the switch is on, .glassEffect(.clear.tint(fill)) in the tile's shape, then the sheen, the edge and the shadow; for the open pin also Palette.selectionSheen. Otherwise today's flat square, or SelectionPlate for the open pin. EnvironmentValues.panes says whether the system allows panes: WindowGlassPolicy.supported, no Reduce Transparency, no Increase Contrast.
  • Side.swift: PinSquare's background is PinGround instead of the inline SelectionPlate or flat fill. It takes the switch from the preferences the way it takes Tab icons, as a value the column hands over.
  • The switch: Preferences.glassPins (pins.glass, on by default) in Prefs.swift; its row in SettingsCorePages.swift and SettingsIndex.swift, shown only where WindowGlassPolicy.supported; glass-pins in NativeActions.swift; pins.glass in SyncShapes.swift and glassPins in Preferences.adopt (SyncCenter.swift).
  • Turned on or off while the window is up, the pins change at once: the column's cells draw a row again only when its TabCell.Look changes, so the switch is in it beside Tab icons (ColumnCells.swift), and in the key of a space's page made ahead for a swipe (SpacePager.swift), as Tab icons is. The bench's ui takes glassPins to turn it in a running test world.
  • Design.swift: Shadow.pane and Shadow.paneDark, next to the selection's shadows.
  • Tints: the open pin uses Palette.selection, as today. A pin at rest is tinted a little lighter than Palette.pin (white at 0.07 in the dark, ink at 0.045 in the light, a step up under the pointer), because the glass lightens what it is tinted with.

Cost

The material samples what is behind each tile, so it is one backdrop per pin, where the flat tiles had none. I didn't see a hitch with ten pins, but I didn't measure frame times, and a space with many pins would have that many. If that's a concern, the same look can be drawn (fill, edge, sheen, shadow) without the material. I tried that too, and it loses the glass's own lensing and the edge light it picks up from what is behind.

Questions

  1. Keep the Glass pins switch, or drop it and have glass always on?
  2. Every look, as here, or only when a space wears Glass?
  3. Pins only, as here, or the address field too?
  4. Anything about the edge or the open pin you'd want lighter or heavier?

Checked on

  • Yab Dev built from this branch on macOS 27.0, WebKit tabs, in five looks (dark navy, dark gray, light lilac, Glass dark, Glass light), and with Glass pins off in dark and light.
  • Glass pins turned on, off, on and off in a running window ({"do":"ui","glassPins":...}): the pins changed each time without opening Yab again.
  • Engine: not about a page.

Checklist

  • Suites near the change, with the new GlassPinsSettingTests (on by default, stored under pins.glass, read and written by the yab command, synced, and a change from another Mac reaching open windows, which fails without the adopt line): swift test --filter 'GlassPinsSettingTests|DarkPagesSyncTests|SettingsAnchorTests|GlassLookTests|ShowYabGeneralTests|AgentKnowsTests|ProductHelpTests|NativeControlTests|SettingsSidebarLayoutTests|ArcSidebarTests|ColumnPinWorkTests|PinColumnsTests|PinPairTests|PinPreviewReadyTests|PinnedCloseSelectionTests|SidebarTypographyTests|SidebarResizeTests', 136 tests in 18 suites passed
  • The column's suites, run too: SpacePagingTests, ColumnHitTabTests, ColumnPointedTests, ColumnLiftTests, ColumnFolderBehaviorTests, ColumnCloseLifetimeTests, ColumnPinWorkTests, ColumnDragScrollOwnershipTests pass. SidebarSpaceContextMenuTests and ColumnFooterTests fail the same way on main (31df560, same Mac, 17 issues there), so not from this. SharedPinsTests.aCallLeftInItsSpaceFloatsAndComesBack failed once in a run of 20 suites and passed on its own twice (48 of 48), on this branch.
  • ./design-check --head is clean (the new shadows are in Design.swift)
  • Anything that changes how Yab looks was approved in the issue first: not yet, asking here (the questions above)
  • The new Settings row is classified in NativeActions.swift (glass-pins, read and write); no new menu item

Not verified

  • Reduce Transparency and Increase Contrast falling back to the flat tiles: the code checks both, but I didn't turn them on to look.
  • Hover: the tile's tint steps up under the pointer, but I couldn't move the pointer in the test world, so there's no picture of it.
  • Frame times with many pins, as above.
  • macOS 26.0 to 26.x: I only ran macOS 27.0.
  • Pinned pairs and pins in the strip across the top in full screen: same ground, not pictured.

@naman0r naman0r changed the title Pinned tiles and the address field stand off the column as panes of glass Pinned tiles stand off the column as panes of Liquid Glass Nov 24, 2026
@naman0r

naman0r commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

@serafimcloud what do you think about this?

On macOS 26 and later, a pin's square is the system's clear glass
(yetanotherbrowser#176), tinted with its fill, with light along the top edge, a sheen over
the top half and a close shadow. The open pin keeps the selection's fill
and sheen and gets a heavier, brighter edge.

Settings > Appearance > Glass pins turns it off, on by default and shown
only where there is glass. With it off, before macOS 26, and with Reduce
Transparency or Increase Contrast, the flat squares are unchanged.
@naman0r
naman0r marked this pull request as ready for review November 25, 2026 00:29
@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed update appears safe to merge, with the previous stale-setting issue addressed and no new actionable defects found.

Summary

Adds Liquid Glass backgrounds for pinned tiles on supported Macs, with a saved and synced Glass pins switch.

  • Pinned tiles use tinted glass and keep a distinct selection.
  • A Glass pins switch controls the look across settings and Macs.

No new actionable issues were found in the changes since the previous review. Tests and visual checks were not run in this Linux environment; the author's reported results were not independently reproduced.

Reviews (2) · Last reviewed commit: "Glass pins turned on or off on another M..." · Reviewed by Greptile

Comment thread Sources/Fast/SyncShapes.swift Resolved
Sync wrote pins.glass to the store, but Preferences.adopt never copied it into the live preferences, so open windows kept the old tiles and the old Settings switch until Yab was opened again.
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