Skip to content

Rework the costume and sound list and take the tidy paint editor - #218

Merged
Mistium merged 12 commits into
developfrom
paint-tidy-layout
Nov 15, 2026
Merged

Mistium merged 12 commits into
developfrom
paint-tidy-layout

Conversation

@Mistium

@Mistium Mistium commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Reworks the costume and sound list beside the editors, and takes the tidy paint editor layout from MistWarp/scratch-paint#12, which is merged.

What changed

  • Costumes are thumbnail cards. A wide thumbnail on a white tile, with the number in the corner and the name and size underneath. The whole card is tinted when selected, and its delete button sits inside the thumbnail instead of hanging off the corner.
  • Sounds are compact rows. Number, waveform, name and length on one line, so more sounds fit and long names have room.
  • Sounds in a narrow column. In windows 901px to 1249px wide the sound column stays 80px, the same as on develop, so the sound editor keeps its width. Each sound there is a small tile with the waveform above its name and length.
  • Names are always visible, including on phones, where costume tiles used to hide them.
  • Phones and tablets. The list is a strip of named tiles under the editor.
  • The add button floats over the end of the list, at the bottom of the column on desktop and at the end of the strip on phones and tablets. Items fade out behind it instead of being cut off, and there is room at the end so the last item scrolls clear of it. Lists without an add button (the Sounds tab in a browser that can't edit sounds) get no fade.
  • Dragging. Dropping in the space between two items keeps a valid position.
  • Folders. A selected item inside a coloured folder shows a ring, since the folder colour replaces the selection tint.
  • Paint editor. Pins scratch-paint 0.3.0 (the tidy layout, now on scratch-paint develop) and removes old tablet rules that clipped its tool rail between 601px and 900px.
  • Short windows. The tab area can now shrink to the window, so the costume and sound editors stay above the backpack instead of growing underneath it. A window too short for the paint editor scrolls it. This replaces the rule Rework the Sounds tab into a DAW-style editor with recording, markers and a phone layout #215 added for the sound editor alone with one that covers every tab.

The sprite pane and the stage selector use the same item component and are unchanged.

Preview: https://paint-tidy-layout.scratch-gui.pages.dev/editor (open the Costumes or Sounds tab).

Version

3.4.0 to 3.5.0 (new feature, backwards compatible). Re-bumped after #214 and #215 merged.

After the merge with develop

develop was merged into this branch once #214 and #215 had landed. That merge left an unclosed block in selector.css, which is what failed the Cloudflare build, and brought back the old phone sound rows. The two commits after the merge fix that and fit the list around the new Sounds tab:

  • selector.css is back to this branch's version, and the waveform thumbnails from Rework the Sounds tab into a DAW-style editor with recording, markers and a phone layout #215 are sized by the row styles.
  • scratch-paint is pinned to the merged commit aa3d334, which has the same tree as the branch commit pinned before.
  • An independent review of the merged branch found that the sound column was 72px wider than on develop between 901px and 1249px. That put the new sound editor into its phone layout early and hid the waveforms there. The column is now 80px in that band, as on develop, and the editor width matches production at every size measured (901, 1000, 1024, 1100, 1150 and 1249px).

One difference remains. At 1250px and wider the sound column is 176px against 150px on develop, to give names room beside the waveform. The sound editor is 26px narrower there, so its transport stays on two rows up to a 1326px window instead of 1300px (default stage size). It is the same two-row layout develop shows from 1250px to 1300px.

Checks

Every step of node.js.yml run locally on the final commit, since Actions is not running on pull requests: lint, typecheck, conventions, both i18n checks, community CSS, fork pins, unit tests (4027 passed, 1 skipped), build:deploy and validate-deploy.

The fade was checked in Chromium and Firefox at 1440, 1100, 768 and 390px wide and in right-to-left: the last item scrolls clear of the button, items beside the button stay clickable, and the add menu still opens and adds a costume. An independent review of the fade found no must-fix issues. Its one should-fix, the fade showing on lists with no add button, is fixed.

Checked on the production build in Chromium and Firefox, from 390px to 1440px wide and down to 390px tall: select, delete, drag to reorder, right-click menu, sound folders, long names, the empty Sounds tab, dark theme and right-to-left. After the merge the costume list and the paint editor were re-checked for layout at the same sizes. The paint editor's menus and keyboard handling were checked before the merge, on the same scratch-paint code.

Screenshots

Costume list, before and after:

Before After
The old costume list with small bordered tiles The new costume list with thumbnail cards

Sound list, before and after:

Before After
The sound list on develop with bordered tiles The new sound list with compact rows

Sound list in a 1024px window, before and after. The sound editor is the same width in both:

Before After
The narrow sound column on develop The narrow sound column with borderless tiles and readable names

Phone, costumes, before and after:

Before After
The old phone costume strip without names The new phone costume strip with names

Phone, sounds, before and after:

Before After
The phone sound strip on develop The new phone sound strip

Dark theme and tablet width:

Dark Tablet
The costume list in the dark theme The costume strip at tablet width

A selected costume inside a coloured folder:

A folder with two costumes, the selected one ringed

Scrolling the costume list, with costumes fading out behind the add button:

Recording of the costume list scrolling down and back up, the costumes fading out behind the add button

Selecting, dragging to reorder and deleting:

Recording of selecting costumes, dragging one to a new position and deleting one

Costumes are thumbnail cards and sounds are compact rows, each with its
name always visible. On phones and tablets the list is a strip of named
tiles with the add button beside it instead of over it. The paint editor
moves to scratch-paint 0.3.0, and the old tablet overrides that clipped
its tool rail are gone.
Dragging over the space between items keeps a valid drop position, a
selected item inside a coloured folder shows a ring, the delete button
works in right-to-left phone layouts and keeps its touch size, and the
costume panel can no longer grow past its container.
On tablets the asset panel cancelled the paint editor's minimum row
height, so tools spilled out of the rail. The override now applies to
the phone layout only. The tab area can also shrink to the window, so
a short window scrolls the paint editor instead of pushing it under the
backpack. Pins scratch-paint to the keyboard-usable Arrange menu and
sets the version to 3.6.0.
Between 901px and 1249px the sound list is narrow enough that the
delete button on the selected row cut its name down to one letter. Rows
drop the speaker tile at those widths, so the name has the room.
Sound folders are rows too, and the narrow-column rule hid their folder
icon. It now only drops the speaker tile from sounds. Pins scratch-paint
to the commit that stops dropdown menus keeping focus after pointer use.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Deploying scratch-gui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 71dd42d
Status: ✅  Deploy successful!
Preview URL: https://c22f0cb2.scratch-gui.pages.dev
Branch Preview URL: https://paint-tidy-layout.scratch-gui.pages.dev

View logs

@Mistium

Mistium commented Nov 14, 2026

Copy link
Copy Markdown
Member Author

Closing while I fix the build: the merge with develop left an unclosed block in selector.css, and the list styles need reconciling with the new Sounds tab from #215. Reopening once it builds and is re-checked.

@Mistium Mistium closed this Nov 14, 2026
The merge left an unclosed block in selector.css and brought back the old
phone sound rows. Restore the reworked list styles, size the new waveform
thumbnails inside the row tile, drop the sound-editor-only min-height rule
now that every tab panel can shrink, pin scratch-paint to the merged
commit and set the version to 3.5.0 on top of 3.4.0.
…lumn

Between 901px and 1249px the sound list column was 72px wider than on
develop, which pushed the new sound editor into its phone layout early,
and the rows hid their thumbnail there. Sounds in that band are now
compact stacked tiles in a column as wide as develop's, with the waveform
above the name and length. Wider windows keep rows, with a larger
waveform tile.
@Mistium Mistium reopened this Nov 15, 2026
@Mistium

Mistium commented Nov 15, 2026

Copy link
Copy Markdown
Member Author

Closing while I restore the fade at the end of the costume and sound lists behind the add button. I'll reopen it once that's done.

@Mistium Mistium closed this Nov 15, 2026
@Mistium Mistium reopened this Nov 15, 2026
@Mistium
Mistium merged commit d0ffbad into develop Nov 15, 2026
1 check 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