Skip to content

Settings window, wider widget, three-column layout, corner radius and Ko-fi toggle - #12

Open
ThomasEnssner wants to merge 6 commits into
TadelUnso:mainfrom
ThomasEnssner:feat/width-setting-kofi-toggle
Open

ThomasEnssner wants to merge 6 commits into
TadelUnso:mainfrom
ThomasEnssner:feat/width-setting-kofi-toggle

Conversation

@ThomasEnssner

@ThomasEnssner ThomasEnssner commented Nov 20, 2026 •

Copy link
Copy Markdown

Summary

Moves all preferences out of the nested menu bar submenu into a native Settings window and adds a few layout options.

  • Wider widget: max width raised from 880 to 1200 pt; width can be set with a slider or one-click presets (520–1200 pt). Drag-resizing the right edge still works.
  • Three columns: new Columns setting – Auto (three columns from 760 pt), 2 or 3. Forcing three columns widens the widget to at least 760 pt so rows don't wrap.
  • Corner radius: adjustable 0–32 pt (default stays 12) with continuous ("squircle") corners, so the widget can match native macOS desktop widgets (preset: 24 pt).
  • Ko-fi button toggle: the title-bar badge can be hidden. It stays on by default, so nothing changes for existing users.
  • Settings window (Settings… / ⌘, in the menu bar menu) with tabs General, Appearance, Sections, Menu Bar. The menu bar menu keeps the quick toggles (lock, show on desktop, launch at login, usage history).
  • Gear button in the widget title bar replaces the S/M/L section presets and opens Settings; lock and hide stay. Because the widget's NSWindow is outside the SwiftUI scene graph, the gear posts a notification that the always-alive menu bar label turns into openSettings().

All new settings default to the current behaviour (520 pt, auto columns → still two at default width, 12 pt radius, Ko-fi visible).

The branch is split into six self-contained commits (one per feature); each one builds and passes the test suite on its own.

Test plan

  • swift build and make test – 121 tests pass (6 new in WidgetSettingsTests: width presets, column count/effective width, column mode parsing, corner radius clamp, Ko-fi default)
  • Manually checked on macOS 26: settings window layout, corner radius next to a native widget
  • Manually check: width slider/presets, auto/2/3 columns, Ko-fi toggle, gear button opening Settings
  • Opacity picker on macOS < 26 (only shown there; not tested on an older system)

🤖 Generated with Claude Code

ThomasEnssner and others added 6 commits November 20, 2026 08:52
Raise the maximum widget width from 880 to 1200 pt and define a set of
one-click width presets (520–1200 pt) for the settings UI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018SxtaV8T8JFdPtpDBqmihU
New column mode setting: auto (three columns from 760 pt), two or three.
Forcing three columns widens the widget to at least 760 pt so rows don't
wrap; the window frame follows the same effective width.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018SxtaV8T8JFdPtpDBqmihU
The Ko-fi badge in the widget title bar can now be switched off. It stays
visible by default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018SxtaV8T8JFdPtpDBqmihU
The widget background radius is configurable (0–32 pt, default 12) and
uses continuous (squircle) corners like native macOS desktop widgets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018SxtaV8T8JFdPtpDBqmihU
All preferences move into a native Settings window with General,
Appearance, Sections and Menu Bar tabs: width slider and presets, column
mode, corner radius, fonts, opacity, sections, menu bar metrics, refresh
rate and the Ko-fi toggle. The menu bar menu keeps quick toggles and gains
a Settings… item (⌘,).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018SxtaV8T8JFdPtpDBqmihU
The widget's title bar now offers settings, lock and hide. The gear posts
a notification that the always-alive menu bar label turns into
openSettings(), since the widget's NSWindow sits outside the SwiftUI scene
graph. Section visibility is managed in the Settings window instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018SxtaV8T8JFdPtpDBqmihU
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