Commit Graph
13 Commits
Author SHA1 Message Date
zarzet dfa5e0d994 perf(library): reuse the prepared page data across rebuilds
Each Library rebuild combined every loaded page, filtered playlist tracks
and regrouped the in-memory History snapshot up to three times, so the
section cache never hit and every row's month was formatted again. The
results are now memoized per input identity, with identical output.
2026-10-23 22:31:44 +07:00
zarzet e31df404ea feat(library): sort songs and albums by file size 2026-10-23 03:59:29 +07:00
zarzet 9b67069656 fix(material): return Library section headers to the start edge
The Library's letter and month sections showed their label in a chip
centered between two rails, which sat away from the rows it names.
Material headers are the start-aligned primary title again, as in
Mornye, and the sections no longer carry the month data that only the
chip used.
2026-10-21 23:26:40 +07:00
zarzet 2e77f63fe6 fix(desktop): keep Space for playback next to button groups
M3EButtonGroup autofocuses its first segment. On desktop that took focus
from the shortcuts' idle node, so Space pressed the segment instead of
toggling playback on the Library songs and albums pages, in Settings rows
with a segmented choice and in the equalizer.

MaterialExpressiveScope can now keep its child from taking focus as it
mounts. The group's segments stay unfocusable until the mounting frame's
autofocus pass has run, then Tab and clicks reach them as before.

Also drops two unneeded imports from the songs table test.
2026-10-21 22:24:11 +07:00
zarzet 68631cf067 feat(material): connect the Library tools and chip the month headers
DESIGN.md asks Material library toolbars for a connected button group
instead of loose buttons, date-grouped lists for a centered date chip
between short rails, and related controls to share one silhouette.

- Sort, Filters and the list/grid switch on the Songs, Singles and
  Albums pages form one connected M3EButtonGroup with nothing selected.
  Sort keeps the current order as its label, Filters keeps its label,
  badge and long-press reset, and the view switch keeps its tooltip.
  The group is 44dp on phones and 40dp on desktop, and a padded hit
  area keeps the 48dp target. The desktop sort menu still opens below
  the sort button. Mornye and reduced motion keep separate buttons.
- Section headers become a centered chip on secondaryContainer between
  two outlineVariant rails, with primaryContainer for the current month.
  Sections remember their month, so the header does not parse labels.
  The header stays opaque for pinning and keeps its header semantics.
- Material empty Library pages drop the Home button, which repeats the
  navigation destination; the empty Playlists page offers Create
  playlist instead.
2026-10-21 22:17:22 +07:00
zarzet a428b37879 feat(i18n): mirror layouts for right-to-left languages
Use directional insets, alignments, positions and borders so Arabic and
other RTL locales lay out from the right. Mornye chevrons use the
CupertinoIcons glyphs that match text direction, synced lyric voices
align to start and end, and transport controls, seek bars and progress
stay left to right as media timelines do.
2026-10-21 14:59:26 +07:00
zarzet 87c92c8d78 feat(desktop): add Library context menus, song table and hover play
The Library Songs page shows the desktop table, sorted through the Library sort modes, and song rows and cards select on click, play on double click and open the selection's menu on right-click. Playlists, folders, albums, artists and queued downloads get menus, album tiles show a play button on hover, and the sort and filter choices open as menus on desktop.
2026-10-20 17:38:54 +07:00
zarzet 7600c169c7 perf(ui): improve Material and Mornye player and library smoothness
Reduce repeated artwork readbacks, lyric layout and subscriptions, and animation rebuilds. Virtualize Library sections and Settings search, bound artwork decoding, batch queue restoration, and honor reduced motion.

Add shared player benchmarks with 60/90/120 Hz budgets and regression coverage for lifecycle, scrolling, and accessibility. Verified with 337 host tests, six Android profile suites, scoped analysis, formatting, and diff checks.
2026-10-20 03:37:21 +07:00
zarzet acbc614f42 perf(library): build DateFormat and RegExp once instead of per row
The month-year DateFormat was rebuilt for every loaded row and every
fast-scroller drag label; it is now cached per locale tag. Constant-pattern
RegExp objects built per call (or per word) are now static or top-level.
2026-10-18 21:56:46 +07:00
zarzet befcd2adec feat(a11y): label controls and improve settings contrast and targets 2026-10-17 16:18:25 +07:00
zarzet 1cc233bdc1 fix(settings): unify adaptive sheet layout and drag behavior 2026-10-15 01:14:54 +07:00
zarzet 3fd1588154 fix(library): align filter and sort sheet sizing and dismissal 2026-10-15 00:28:16 +07:00
zarzet 83a55fb80b feat(library): add sectioned browsing and adaptive fast scrolling 2026-10-14 23:04:46 +07:00