Skip to content

GUI improvements with egui 0.37 - #36

Merged
iharhl merged 14 commits into
masterfrom
feature/gui-improvements
Nov 16, 2026
Merged

iharhl merged 14 commits into
masterfrom
feature/gui-improvements

Conversation

@iharhl

@iharhl iharhl commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Updates egui to 0.37 and reworks several parts of the GUI, plus fixes for the issues found by UI/UX testing of this branch.

Dependencies

  • eframe / egui 0.34 -> 0.37, rfd 0.18, regex 1.13, criterion 0.8.2, rand 0.10 (benchmarks), winresource 0.1.34
  • egui 0.37 no longer bundles emoji fonts. monochrome_emoji_fonts is enabled, so the error icon and the copy icon render on Windows and look the same on every platform
  • The Windows build enables egui's clipboard and links features

Scrolling

  • The view moves in whole rows, proportionally to the input: a wheel notch moves 2 rows, a trackpad follows the fingers
  • Slow scrolling (precision touchpad, high-resolution wheel) adds up to rows instead of being dropped
  • The last row is fully visible at any window height. At the end of the data the rows are aligned to the bottom
  • Clicking above the view at the end of the data no longer selects a byte in the hidden row

Tabs

  • Reworked tabs: name and close button, fitted to the available width by shrinking the widest first. Cut names show the full name on hover
  • Tabs are exposed to accessibility (tab role with the file name, "Close " buttons)

Side panel

  • Hide / show it by double-clicking or dragging its edge, or with View -> Show Sidebar. The collapsed panel leaves a thin strip that reopens it
  • The minimum window width follows the panel: 480 px collapsed, 730 px open, so the hex bytes of a 16-byte row always fit
  • Dragging the panel edge or the scrollbar over the hex view no longer selects bytes

Enter handling

  • Enter is handled by the field it is typed into, instead of a global Enter-release flag
  • Enter in another field (gap fill, converter, search) no longer confirms an open Relocate / Merge / Insert Range / Remove Range pop-up. Before, it applied the edit
  • The search field keeps focus after Enter, so Enter again moves to the next hit

Search and pop-ups

  • The current search hit is highlighted brighter than the other hits
  • Error pop-up restyled with a warning icon and title
  • Address fields accept pasted 0x08000000, 0X1f00 and 0x0800_0000

Gap fill

  • File -> Gap Fill submenu with a typed hex value. Accepts A5 and 0xA5, clamps values above 0xFF

Converter

  • Pasting 0xFF into the Hex field no longer keeps the 0 of the prefix (signed 0xFF is -1, not 255)
  • Tab order is field -> copy -> convert -> next field
  • New copy icon

Clipboard

  • Copy shortcuts simplified for egui 0.37: Cmd/Ctrl+C copies hex, Cmd/Ctrl+Shift+C ASCII, Alt+C the address

Code

  • New hex_input.rs with the hex input parsing shared by Jump To, Search, Gap Fill, pop-ups and the converter

Tests

  • Unit tests for hex_input.rs

Known limitations

  • Not yet run on real Windows / Linux. Opening the side panel in a window narrower than the new minimum relies on the OS / winit to widen it

@iharhl
iharhl merged commit b91c502 into master Nov 16, 2026
5 checks passed
@iharhl
iharhl deleted the feature/gui-improvements branch November 17, 2026 18:53
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