Skip to content

feat(disk): themed runtime disk-insert MRU picker + dialog button fixes#76

Merged
relmer merged 2 commits into
masterfrom
013-disk-insert-mru
May 31, 2026
Merged

feat(disk): themed runtime disk-insert MRU picker + dialog button fixes#76
relmer merged 2 commits into
masterfrom
013-disk-insert-mru

Conversation

@relmer
Copy link
Copy Markdown
Owner

@relmer relmer commented May 31, 2026

Drive-door click now opens the same themed MRU picker as the menu's Insert Disk command, including a Browse fallback to the file open dialog. Picker rows include DOS 3.3 / ProDOS so it's never empty.

Also fixes two chronic dialog issues:

  • DialogPrimitive buttons (non-default) now paint a visible filled rect and border. Previously the override path used navStripArgb (often matching the dialog body) AND skipped the auto-border.
  • Button labels honor Win32 ampersand accelerator convention: &Browse... displays as Browse... and Alt+B triggers it.

relmer and others added 2 commits May 30, 2026 17:59
Runtime disk insert (drive-widget click / Disk menu) now opens the themed MRU picker instead of jumping straight to IFileOpenDialog. Lists the same existing-on-disk recents as the boot picker plus DOS 3.3 / ProDOS download rows. A Browse... button preserves the native picker for off-MRU images.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
DialogPrimitive buttons were calling Button::SetColors with navStrip
colors that often matched the dialog body, then taking the
m_useOverrides branch that skipped the auto-border. Result: non-default
buttons looked like floating text. Drop the override and let buttons
use theme.buttonIdleArgb/buttonBorderArgb so the rect and 1dip border
always paint.

Button::SetLabel now strips a single ampersand from the label (Win32
accelerator convention) and remembers the following character as the
lowercase accelerator key. && becomes a literal &. DialogPrimitive
handles WM_SYSCHAR and dispatches Alt+letter to the matching enabled
button.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@relmer relmer merged commit 8208154 into master May 31, 2026
4 checks passed
@relmer relmer deleted the 013-disk-insert-mru branch May 31, 2026 23:24
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