Repository navigation
Conversation
naman0r
force-pushed
the
feat/glass-pins
branch
from
November 24, 2026 07:42
f1a3e21 to
6325f4c
Compare
Contributor
Author
|
@serafimcloud what do you think about this? |
naman0r
force-pushed
the
feat/glass-pins
branch
from
November 24, 2026 23:00
6325f4c to
802f4f6
Compare
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
force-pushed
the
feat/glass-pins
branch
from
November 24, 2026 23:34
802f4f6 to
9113eb1
Compare
naman0r
marked this pull request as ready for review
November 25, 2026 00:29
[Medium impact] The reviewed update appears safe to merge, with the previous stale-setting issue addressed and no new actionable defects found. SummaryAdds Liquid Glass backgrounds for pinned tiles on supported Macs, with a saved and synced Glass pins switch.
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 |
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.
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.
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
mainat 31df560; "After" is this branch.Moving between pins
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
Before and after, look by look
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 switch
Settings › Appearance › Sidebar, under Tab icons. Here it was found through Settings search, which highlights the row:
It is stored as
pins.glass, syncs between Macs the way Tab icons does (SyncShapes.settingKeys, andPreferences.adoptso 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-pinsin 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 alsoPalette.selectionSheen. Otherwise today's flat square, orSelectionPlatefor the open pin.EnvironmentValues.panessays whether the system allows panes:WindowGlassPolicy.supported, no Reduce Transparency, no Increase Contrast.Side.swift:PinSquare's background isPinGroundinstead of the inlineSelectionPlateor flat fill. It takes the switch from the preferences the way it takes Tab icons, as a value the column hands over.Preferences.glassPins(pins.glass, on by default) in Prefs.swift; its row in SettingsCorePages.swift and SettingsIndex.swift, shown only whereWindowGlassPolicy.supported;glass-pinsin NativeActions.swift;pins.glassin SyncShapes.swift andglassPinsinPreferences.adopt(SyncCenter.swift).TabCell.Lookchanges, 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'suitakesglassPinsto turn it in a running test world.Design.swift:Shadow.paneandShadow.paneDark, next to the selection's shadows.Palette.selection, as today. A pin at rest is tinted a little lighter thanPalette.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
Checked on
{"do":"ui","glassPins":...}): the pins changed each time without opening Yab again.Checklist
GlassPinsSettingTests(on by default, stored underpins.glass, read and written by the yab command, synced, and a change from another Mac reaching open windows, which fails without theadoptline):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 passedSpacePagingTests,ColumnHitTabTests,ColumnPointedTests,ColumnLiftTests,ColumnFolderBehaviorTests,ColumnCloseLifetimeTests,ColumnPinWorkTests,ColumnDragScrollOwnershipTestspass.SidebarSpaceContextMenuTestsandColumnFooterTestsfail the same way onmain(31df560, same Mac, 17 issues there), so not from this.SharedPinsTests.aCallLeftInItsSpaceFloatsAndComesBackfailed once in a run of 20 suites and passed on its own twice (48 of 48), on this branch../design-check --headis clean (the new shadows are in Design.swift)NativeActions.swift(glass-pins, read and write); no new menu itemNot verified