feat: add 'auto' color option for system-adaptive widget tint#9
Open
giuseppebisemi wants to merge 2 commits into
Open
feat: add 'auto' color option for system-adaptive widget tint#9giuseppebisemi wants to merge 2 commits into
giuseppebisemi wants to merge 2 commits into
Conversation
added 2 commits
April 7, 2026 17:09
The explicit CGContext flip (translateBy + scaleBy y:-1) was causing asymmetric SF Symbols like 'display' to render upside-down. Symmetric symbols (cpu, memorychip) were unaffected visually, masking the bug. Removing the manual transform and passing rect directly to clip(to:mask:) lets the existing CTM handle orientation correctly.
Adds a new color value 'auto' that maps to NSColor.labelColor, which automatically adapts to the system appearance (white on dark menu bar, black on light menu bar) — matching icon and text colors. Usage in config.yaml: cpu_color: auto memory_color: auto gpu_color: auto
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 and why
The available widget colors are all fixed values (
green,orange,blue, etc.). This works well for colorful setups, but leaves no option for users who want the widgets to blend naturally with the menu bar — matching the same color used by icons and text.This PR adds an
autooption that maps toNSColor.labelColor: white on a dark menu bar, black on a light one, always in sync with the system appearance.Change
One line in
AppConfig.swift:And the config comment updated accordingly:
Usage
Tested