Skip to content

Rewrite modrix-gui with Rune - #1

Merged
ParkerrDev merged 5 commits into
masterfrom
rune-gui
Nov 26, 2026
Merged

ParkerrDev merged 5 commits into
masterfrom
rune-gui

Conversation

@ParkerrDev

Copy link
Copy Markdown
Owner

Replaces the Iced GUI with a native GPU UI on Rune and rune-kit. Same engine, same embedded hand-off service, no web view.

What changed

  • New screens in crates/modrix-gui/src/ui: dashboard, mods, load order, conflicts, downloads, games, settings, the FOMOD wizard and confirm dialogs.
  • Glass panels over the selected game's artwork, accent colour taken from that art, light/dark/system appearance.
  • Engine I/O on its own thread (src/bus.rs).
  • Headless snapshot scenes (src/demo.rs): modrix-gui --snap out.png --scene <name>.
  • Toolchain 1.96.0 to 1.99.1 (Rune needs it); the new clippy lints are fixed across the workspace.
  • deny.toml: Iced-only exceptions removed, Rune git source allowed, build-time ar_archive_writer license exception added.

Checks

  • fmt, clippy -D warnings, and all tests pass locally on Linux.
  • cargo deny check licenses bans sources passes. advisories still fails, but it already fails on master (zip, libsqlite3-sys, crypto-bigint, rustls-webpki, zbus/zvariant); this branch has fewer findings than master.
  • Windows and macOS are verified by the CI matrix only.

Replace the Iced GUI with a native GPU UI built on Rune and rune-kit,
over the same engine and embedded service. No web view anywhere.

- Screens in src/ui: dashboard, mods, load order, conflicts, downloads,
  games, settings, plus the FOMOD wizard and confirm dialogs.
- Glass panels over the selected game's art, with the accent colour
  drawn from that art; light, dark and system appearance.
- Engine I/O runs on its own thread (src/bus.rs).
- Demo scenes (src/demo.rs) render headless snapshots with
  --snap out.png --scene <name>.
- Toolchain bumped to 1.99.1 for Rune; new clippy lints fixed across
  the workspace.
- deny.toml: drop the Iced-only exceptions, allow the Rune git source,
  add the build-time ar_archive_writer license exception.
Brings over the engine work that only lived in the SanDisk backup:
Sons of the Forest IL2CPP interop (modrix-il2cpp, modrix-ecma335,
modrix-interop-gen, the loaders/ tree and its game definition), game.toml
api_version 3 ([launch], [mod_loader], [store], park_root_binaries),
Engine::launch, loader_status and tail_log, the mod store client in
modrix-service, and the matching CLI commands and MCP tools.

Dependency licenses are no longer gated: cargo-deny checks advisories,
bans and sources, and the license exceptions document is gone. The Rune
GUI, its docs and its CI stay as they were.
TLS now uses rustls' ring provider. The alpha rustls-rustcrypto held back
rustls-webpki (distrusted intermediates) and crypto-bigint (timing).
zip goes to 9 and rusqlite to 0.43 for the zip extraction and SQLite
advisories. The only ignores left are zbus "unmaintained" notices that
come from Rune's accessibility bridge.

The Linux test job installs libxkbcommon-dev, which Rune links.
Measured headless at 2560x1600 with Rune's frame profiler, sweeping the
pointer over the Mods screen and scrolling: 33 fps before, 80 after, and
CPU per frame down from 0.75 ms to 0.35 ms.

- The backdrop's five full-window layers (soft wash, accent glow, hero,
  fade, tint) are flattened once on the art worker into one image
  (bake.rs). The renderer repainted each layer every frame, about 18 ms
  of a frame between them; El::cache did not help.
- No live blur on the panels, sidebar or toasts. The glass is denser to
  stay readable without it.
- The Mods table's filtered row list is cached by search text and a
  library generation instead of being rebuilt and lowercased twice per
  drawn row on every frame.
- The idle tick reports a change only when progress, downloads or notes
  actually moved, so an idle window stops redrawing every two seconds.
- Right-click menus on mod rows (enable or disable, reinstall, installer
  options, copy staged path, delete) and on game cards (set active, manage
  mods, copy install path), built from the app's own menu.
- A summary line under the Mods table: mods, enabled, plugins, asset-only
  and external counts.
- The active game's cover across the full sidebar width with the wordmark
  over it; it is a drag region and gives way first on short windows.
- Launch on the overview for games that declare how to start, plus the mod
  loader's state and the tail of the game's log.
- A Mod store screen for games that declare a store: searchable catalog,
  one-click install that queues the mod and its dependencies through the
  download pipeline.
- Fluid layout: the minimum window is 860x560, the Mods table drops Source
  then Installed when narrow, stat cards wrap, and form fields and the rule
  picker shrink instead of overflowing.
@ParkerrDev
ParkerrDev merged commit d6e46dc into master Nov 26, 2026
8 checks passed
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