Repository navigation
feat: draw widgets, popups and the bar with Liquid Glass - #98
Merged
Merged
Conversation
Seb-GRAF
force-pushed
the
feat/67-liquid-glass
branch
from
October 19, 2026 07:14
9c253d8 to
7f2310f
Compare
This was referenced Oct 19, 2026
|
🎉 This PR is included in version 0.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Problem
StableBar could only paint solid or translucent colors, so it couldn't match macOS 26's Liquid Glass. Fixes #67.
Changes
bar.glasssetting.enabled(off by default),transparency(0 to 1, default 0.3), andwidgets,popupsandbarswitches (on by default). Unknown keys are rejected,transparencymust be between 0 and 1, and the schema has a matchingglassdefinition, registered in the schema parity test. Because it lives underbar, themes, includes and profiles can set it like any bar setting.GlassBackgroundmodifier. Draws the background of widget tiles, popups, the bar and Customize's theme cards. When glass covers a surface whose background is visible in the current appearance, it draws Apple's clear glass behind the content and the background color over it at1 − transparency. Otherwise it draws the color as before. Drawing the state's color as that layer keeps hover, open and data-state colors.BarPanelandPopupPanelreturntruefrom AppKit's undocumentedhasKeyAppearance. SwiftUI renders glass in a window without key appearance with refraction opacity 0 and no outer refraction or edge shadow, and the bar panel can never become key. With the override, SwiftUI uses its active parameters. Keyboard focus is unchanged: the bar still can't become key. If a macOS update drops the method, glass falls back to the flat look.StyleFieldsgainstoggleandpercentagerows with the usual origin and reset links.Testing
swift test: 296 tests passed.glassBackgroundfilter inputs with and without the override.inputRefractionOpacitygoes from 0 to 0.3, and outer refraction, edge shadow and blur change.isKeyWindowalone changes nothing.--batchedits left the configuration file untouched:Screenshots: before and after captures of the bar are local. They'll be added in a comment, since images can't be uploaded from this session.
Merging
One commit; a merge commit keeps it in the changelog as a
feat.Claude Opus 5.5 via Claude Code