Skip to content

Modernize Settings selection controls to Material 3#100

Merged
danielchalmers merged 4 commits into
mainfrom
claude/md3-settings-controls
Jul 17, 2026
Merged

Modernize Settings selection controls to Material 3#100
danielchalmers merged 4 commits into
mainfrom
claude/md3-settings-controls

Conversation

@danielchalmers

@danielchalmers danielchalmers commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Settings page plus the shared switch styling:

  • Theme picker: the Light/Dark/System radio group becomes an M3 segmented button with a checkmark on the selection, matching the toggle groups on the home screen.
  • Hide Today's notes: the checkbox becomes an M3 switch, laid out as a settings list row with the label leading and the control on the trailing edge.
  • M3 switch shape everywhere: switches (Settings + category manager) get the M3 treatment: 52x32 outlined pill track, solid track colors instead of the M2 translucent overlay, thumb grows 16px to 24px when checked, no thumb shadow.

The Light/Dark/System theme picker becomes a segmented button matching
the home screen's toggle groups, and Hide Today's notes becomes an M3
switch in a list row with the label leading and the control trailing.

Switches across the app (Settings and the category manager) restyle to
the M3 shape: a 52x32 outlined pill track with solid colors instead of
translucent overlays, and a thumb that grows from 16 to 24px when
checked. The row layout rule is scoped to the label element because
MudSwitch reuses its class on the inner text span.
Both pages adopt the grouped-list pattern the home timeline already
uses: every setting or category becomes its own tonal row with small
gaps, and the first and last rows carry the large group radius. The
theme picker gets a titled row, and the About section splits into
individual rows per item. The flat single-card sections are gone.
The span size and track rules were single-class selectors, so
MudBlazor's .mud-switch-span-medium.mud-switch-span and
.mud-switch-span .mud-switch-track rules outranked them, leaving the
M2 58x38 padded span and skinny translucent action-default track in
place; only the color and thumb rules were winning, which made
unchecked switches render as dark blobs hanging off a gray sliver.
The overrides now match those compound selectors exactly.
The thumb carrier resizes with the thumb, so a fixed top offset sat
the off thumb 2px high and the on thumb 2px low; it now centers with
a transform in both states. The slide distance lands the thumb at the
spec insets: 8px from the left edge when off, 4px from the right when
on. Verified numerically against the live layout.
@danielchalmers
danielchalmers merged commit c677c62 into main Jul 17, 2026
1 check passed
@danielchalmers
danielchalmers deleted the claude/md3-settings-controls branch July 17, 2026 12:51
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