Repository navigation
Deck Mode: an optional retro-modern look (draft, asking first) - #117
Draft
iconscious wants to merge 11 commits into
Draft
iconscious wants to merge 11 commits into
iconscious wants to merge 11 commits into
Conversation
… track modes Clicking the device name, or the new "About this Walkman" menu item, opens a panel describing the connected recorder: model, manufacturer and USB vendor and product IDs, the disc's size, free space and protection, and how many tracks are recorded in each mode (SP, MONO, LP2, LP4). The device name is a button inside the heading, so it can also be reached and opened from the keyboard. The panel works in the standard look and in Retro Mode. The manufacturer and USB ID rows appear for NetMD devices connected over USB; other services show the model, disc and tracks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds an optional "Deck Mode" look, switched from the main menu. It is off by default and is exclusive with Retro Mode: turning one on turns the other off. This commit adds the theme (amber on charcoal, always dark) and its fonts, bundled locally: Space Grotesk (variable) and JetBrains Mono 500/700, both under the SIL Open Font License (licence texts beside the font files). The shared MUI defaults move from app.tsx to src/themes/commons.ts unchanged, so the standard themes and the Deck theme use the same base. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds the pieces the Deck screens are built from (src/components/deck/common.tsx: panel, key, LCD window, labels, notice, the shared type scale and the compact-window breakpoint), Lucide glyphs for the menus, and a MiniDisc loader that stands in for MUI's spinner. Stock files change only an import line: their Material icons and spinner now come from deck/icons.tsx and deck/loader.tsx, which draw the Lucide glyph or the MiniDisc loader under Deck Mode and the original Material icon or MUI spinner otherwise, so the standard look is unchanged. New dependency: lucide-react. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Deck main screen: a device card (model and the About this Walkman rows, the heading opens the panel), a disc card with a capacity meter and free time per recording mode, the track table, and a transport bar with a two-line LCD ticker and a seek strip. The Homebrew view is framed in a Deck panel. Keyboard: the track list is one Tab stop with a roving focus; Up/Down/Home/End move, Space selects (Shift+arrows extends), Enter plays a selected track, Shift+F10 or the Menu key opens the row menu, and Alt+Up/Down moves a track through the same path as dragging. Focus rings are visible on every control. Small windows (under 1024px wide or 760px tall) fold the device card into one line and tighten the layout; the screen then scrolls. The meter's "used" figure is worked out as total minus free, the same units as the remaining time on every service. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Deck Welcome screen (service picker, connect key with the MiniDisc loader, browser notices) and a full-width footer that keeps the copyright credits and links to the guide, About, Changelog, GitHub and Donate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under Deck Mode, Settings section headers become mono labels over a hairline and a note explains that colour theme and stretch settings apply to the standard look only (Deck is always dark and fills the window). Song Recognition's status text becomes a one-line mono caption. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Not every MiniDisc recorder is a Walkman: the panel also appears for decks and other brands. The menu item, the tooltip on the device name and the Retro menu item now say "About this device". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Follows the panel's rename; comments only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and in the model name Adds the USB vendor IDs netmd-js knows for Panasonic (04DA), Kenwood (0B28) and Buffalo (0411). Some players report another maker's vendor ID (Aiwa's use Sony's), so a brand at the start of the model name now wins over the vendor ID. Every device in netmd-js's list now shows the brand its name starts with. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n file The mode-name comment now says how it differs from the track list's badge (mono shows as SP there). The Retro dialog imports DeviceInfoRow from device-info-rows.ts, so the two dialog files no longer import each other. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…spelling - The device card's heading keeps heading semantics, with a real button inside it (instead of role="button" on the h2), so screen readers hear the device name as a heading and a button. The button takes the theme's amber focus ring; the heading no longer clips it. - JetBrains Mono labels asked for weight 600, which isn't bundled (500 and 700 are), so browsers already drew 700; they now say 700. Space Grotesk is variable and keeps its 600s. - Settings note: "color theme", matching the setting's own label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Would you want a new optional theme in Web MiniDisc? This is a draft to ask before you spend review time on it. If it isn't something you want to maintain, a "no" is completely fine.
Builds on #116 (About this device): the Deck device card uses its rows. Until that one is merged, this PR also shows its commits; please look at that one first.
What it is
Deck Mode is an opt-in look, switched from the main menu next to Retro Mode. It is off by default, and the two are exclusive: turning one on turns the other off. With it off, nothing changes. Stock components change only an import line, and those imports draw the original Material icons and MUI spinner unless Deck Mode is on.
It covers every screen: Welcome, the main screen (device card, disc card with a capacity meter and free time per mode, track table, transport bar with an LCD-style ticker), every dialog, Settings, and the Homebrew view (framed, with its colour coding kept).
It also adds:
What it would cost you
lucide-react, for the icons.src/components/deck/andsrc/themes/. Changes to existing files are small branches, like the win95 ones.Commits
Each commit builds on its own. The meter's "used" figure is worked out as total minus free, in the same units as the remaining time, rather than read from
disc.used, which is still reported in raw units (fixed separately in #115). So this PR doesn't depend on that one.No new images: the MiniDisc glyph and loader are drawn in code, and the existing
minidisclogo.svgandmd_lock.svgare recoloured with CSS under Deck Mode. The only new binary files are the three fonts.Tested on a Sony MZ-N1 over USB (connect, About this device, playback with the ticker and seek strip, keyboard in the track list, rename, upload, a half-width window, Deck off and on) and on MockMD (1280×900 and 720×640, 18 tracks, every dialog, the Homebrew view, Exit and reconnect, Retro on and off). The MZ-N1 drops USB when its disc is ejected, so the "no disc" state was checked in code only.
Deck finds parts of the stock track rows by their tss class names (
rowClass,indexCell,formatBadgeand a few others), so renaming those rules would need a matching change insrc/components/deck/.🤖 Generated with Claude Code