Skip to content

feat: the control window is drawn with Material 3 widgets from the egui-material3 fork, in Strobe's own theme colours and density (D710) - #159

Open
lnorton89 wants to merge 1 commit into
masterfrom
worktree-material-ui-spike
Open

lnorton89 wants to merge 1 commit into
masterfrom
worktree-material-ui-spike

Conversation

@lnorton89

Copy link
Copy Markdown
Owner

Every standard control in the control window now comes from the owner's freeknet fork of egui-material3. The fork is pinned to ce84fab in the workspace Cargo.toml, and deny.toml allows it as a git source. The decision is D710.

What changes

  • Widgets: buttons, icon, tool and transport buttons, segmented buttons, switches, text fields, selects (in place of combo boxes), number fields (in place of drag values), checkboxes, tabs, menu items and dialogs. ui::widgets and ui::form keep their signatures and wrap the library, so panes call the same helpers.
  • Colour: ui::m3::scheme maps each M3 colour role from the theme's palette, so every theme keeps its look.
  • Size: Comfortable is M3 density -3 and Compact is -4, with a type scale that puts M3 labels at Strobe's body size. No pane passes sizes to a widget.
  • Type and icons: Roboto and the outlined Material Symbols replace Segoe UI and the stroked icon set. The old painted widgets are deleted.
  • Unchanged: the value bars, XY pads, meters, scene cards and preview stay Strobe's own.
  • Layout fixes found along the way:
    • The editor toolbar gives its name and chips only the room its actions leave, so nothing overlaps at small sizes.
    • The library's sort select fits "Favourites first".
    • The output-monitor select says "Not chosen".
    • Destructive confirms are error-coloured.
  • Credits: xtask credits now finds licence files two folders down, so the release notices carry Roboto's OFL and Material Symbols' licence texts. It skips images named copyright.

Fork work this needed (all merged into freeknet)

Checked

  • cargo xtask ci fmt check test deny generated conventions passes on LIGHTNING (Windows). The one exception is the changelog check, and only on this machine: local git abbreviates hashes to 8 characters where the committed file and CI use 7. The committed CHANGELOG.md is master's.
  • 702 strobe-app tests pass, including no text over text and nothing over BLACKOUT at every size.
  • Screenshots of Perform, Library and Settings at 1600x1000 on LIGHTNING. The binary grows by about 2.1 MB for the embedded fonts.
  • Not yet seen on the T480.

…ui-material3 fork, in Strobe's own theme colours and density (D710)

Every standard control comes from the owner's freeknet fork of
egui-material3, pinned to a commit and allowed as a git source in
deny.toml: buttons, icon, tool and transport buttons, segmented buttons,
switches, text fields, selects in place of combo boxes, number fields in
place of drag values, checkboxes, tabs, menu items and dialogs. The
shared helpers (widgets, form) keep their signatures and wrap the
library.

- ui::m3 maps each M3 colour role from the theme's palette, gives the
  library Strobe's density (Comfortable -3, Compact -4) and a type scale
  at Strobe's body size, and names a Material Symbol for every Icon.
- Roboto and the outlined Material Symbols replace Segoe UI and the
  stroked icon set; the old painted widgets are gone.
- The value bars, XY pads, meters, scene cards and preview stay Strobe's.
- The editor toolbar gives its name and chips the room its actions
  leave; the sort select fits its longest option; the monitor select
  says "Not chosen"; destructive confirms are error-coloured.
- xtask credits finds licence files two folders down (the fork's fonts)
  and skips images named "copyright".
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @lnorton89's task in 21s —— View job


Review of PR #159

I read the adapter (m3.rs), the xtask credits change, deny.toml, the workspace Cargo.toml and the theme install path. I did not build or run anything, and I did not read every pane diff in full.

  • Correctness: I found no bugs. m3::install runs only from theme::apply, which is called at start-up and when the theme or density changes, not every frame. symbol_family is cached in a OnceLock.
  • House rules: I saw no unsafe, unwrap, expect, #[allow] or GL changes in what I read. The D710 decision file and the ROADMAP and UI_DESIGN updates are in place. CHANGELOG.md is untouched.
  • One nit, inline: the comment above the egui-material3 line in Cargo.toml still says "Spike… not for merging; cargo-deny would refuse the git source". That is now false, so it should point at D710 instead.
  • Not covered: the PR says it has not been seen on the T480, so the density and font-size change at 150% scaling is unverified there.

Comment thread Cargo.toml
egui = { version = "0.37", default-features = false, features = ["default_fonts"] }
egui_glow = { version = "0.37", features = ["winit"] }
egui-winit = { version = "0.37", default-features = false, features = ["links", "clipboard", "wayland", "x11"] }
# Spike: the freeknet Material 3 fork, by path (not for merging; cargo-deny would refuse the git source).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is stale. It says "Spike… by path (not for merging; cargo-deny would refuse the git source)", but the dependency is a pinned git rev, deny.toml now allows it, and D710 records the decision. Replace it with a pointer to D710 before merging. Also consider the full 40-char rev here; Cargo.lock pins it either way, so this is only for readability.

This branch has not been deployed

No deployments
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