Commit Graph
3456 Commits
Author SHA1 Message Date
zarzet c3cb950ffb fix: keep synced lyrics running while the window is unfocused
The synced lyrics view only followed playback while the app was resumed.
On desktop, focusing another app's window makes the app inactive while
its window stays on screen, so the lyrics froze on the last line until
the window was focused again.

An inactive app now counts as on screen, the same as a phone under a
system overlay; hidden and paused still stop the view. A lifecycle
change that keeps the view on screen no longer re-syncs it, so moving
focus between windows leaves the lyrics running as they are.
2026-10-22 00:47:04 +07:00
zarzet 44a5cd7153 fix: keep the album page on top when Go to Album names it
Go to Album always pushed a new album page, so choosing it from a track
on the album already shown stacked a second copy of the same page.

Album pages now record which album their route shows. The shared push
helper skips the push when the page on top already shows that album; it
still dismisses a modal such as Now Playing first. An album without a
provider matches the same id from any provider, since a track's source
can name the provider the page resolved on its own.
2026-10-22 00:44:56 +07:00
zarzet 3271bc2729 fix(desktop): open the lyrics panel already on the playing line
The lyrics view was created each time the panel opened and stayed hidden
until it had scrolled to the playing line. In a debug build that took
longer than the open animation, so the panel slid in empty and the
lyrics popped in at the end.

Now Playing keeps the lyrics view laid out and following playback while
the panel is closed or shows Up Next; it is not painted then. Opening the
panel only fades and slides a list that is already on the playing line,
also after the song moved on while the panel was closed. Up Next still
cross-fades with the lyrics when one replaces the other.
2026-10-22 00:25:00 +07:00
zarzet 3a9547aa63 Merge branch 'material/lyrics-panel-flicker' 2026-10-22 00:13:50 +07:00
zarzet 266207b84c fix(desktop): keep full screen lyrics steady while the panel toggles
Turning lyrics on in the desktop Now Playing mounts a fresh lyrics view
each time. Its list first laid out at offset 0, so the opening frame
painted the start of the lyrics, the next frame an estimated offset, and
only the third frame the playing line. The view now lays the list out
without painting it until the first jump to the playing line lands. This
only applies before the list's first layout, so a list that is already
on screen keeps its lines while it moves.

The panel also slid by fractional pixel offsets while it faded, so the
lyric text was drawn between device pixels on every frame. The slide now
snaps to whole device pixels.

The cover beside the lyrics passed its animated width as the decode
width, so every frame of the resize decoded the cover again at a new
size. It now decodes once at its largest size.

DesktopNowPlaying takes an optional metadata controller factory, as
NowPlayingScreen does, so the new test can supply timed lyrics.
2026-10-22 00:13:19 +07:00
zarzet 69961c245a Merge branch 'material/now-playing-lists' 2026-10-21 23:45:40 +07:00
zarzet 6e137fcc24 feat(material): mark the current track in catalog and search lists
Online album, playlist and Library folder rows (phone tiles and the
desktop table) and Library search song rows now show the current track
the way Library and album rows do: a primaryContainer fill, the
equalizer glyph, and on phones the pill shape. Search and folder play
buttons pause and resume the current track instead of restarting it.
Mornye rows are unchanged.

Rows now match the player by the file they play rather than by media id
alone. Every queued item carries its file as its source, while its id
depends on where the queue started (a download row, a Library row, or
the path itself from a playlist). Library rows, downloaded and local
album rows and both tables compare files when both sides know one, so
a local track queued from a playlist marks the local album table too,
and an id another source happens to share never marks a row.

Catalog rows have no file of their own. The current item's download or
Library record is resolved once per track change, and a catalog row
matches on that record's id, on equal ISRCs, or on its catalog id
together with the same title and artist. A catalog id alone, or a title
and artist alone, never marks a row, and rows stay unmarked while the
record resolves.

The desktop songs table takes each row's playback provider instead of
a media id.
2026-10-21 23:45:09 +07:00
zarzet ead239623c Merge branch 'material/desktop-header-color' 2026-10-21 23:41:01 +07:00
zarzet 483aa5f50f feat(material): give desktop album and artist headers the artwork scheme
The phone album header already colors itself from its cover, but the
Material desktop header kept the app scheme, so album, playlist, folder
and artist pages on desktop lost the artwork accent the design rules ask
for.

The desktop detail header now scopes the cover scheme (the artist image
on artist pages) to the artwork and details beside it through
PlayerArtworkTheme, the helper the player surfaces already use, and
publishes it as the HeaderPalette. A cached cover shows its scheme from
the first frame, a new one moves the whole scheme at once on the effects
spring (or in one step under reduced motion), and black and white covers
get the neutral scheme. The toolbar, track rows and the rest of the page
keep the app scheme. The subtitle and artist actions are now built under
that scope so they read the header colors. Mornye is unchanged.
2026-10-21 23:40:38 +07:00
zarzet ccba2b1077 Merge branch 'material/rounded-font' 2026-10-21 23:38:31 +07:00
zarzet 007745f1c1 feat(material): round Material headings with a fuller Google Sans Flex
Replace the bundled Google Sans Flex (v4.004, weight axis only, 277,596
bytes) with a trimmed build of the official variable font v5.000 from
the Google Fonts repository (google/fonts, ofl/googlesansflex, commit
bd8f81dd). The weight (wght 1-1000), width (wdth 25-151) and rounded
(ROND 0-100) axes stay variable; optical size and slant are pinned to
their defaults (opsz 18, slnt 0) with the fontTools instancer. The new
file is 571,544 bytes. Its defaults are wght 400, wdth 100 and ROND 0,
and it covers every codepoint of the old file with the same features
(including tnum), vertical metrics and advance widths for text.

The font is licensed under the SIL Open Font License 1.1. Ship the
license as assets/fonts/GoogleSansFlex-LICENSE.txt and register it with
the license registry next to Inter's.

The Material text theme now gives the display, headline and title roles
ROND 100 when the bundled family is in use. Body and label roles keep
ROND 0 for crisp reading text and small labels. Only ROND is set, so
the engine still derives wght from each style's fontWeight. System and
imported fonts get no axes, and the Mornye style is unchanged.
2026-10-21 23:37:49 +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 d16efddf2d fix(player): keep the transport inside its row while it resizes
Each slot sprang to its width on its own, so when the desktop Now
Playing panel narrowed the slots kept their old widths for the length
of the spring and pushed repeat out of the row, and an overshoot while
it widened did the same by a few pixels. One spring now moves all three
slots, and they scale down together whenever they would run wider than
the room. Widening and the press squish still spring.
2026-10-21 23:22:07 +07:00
zarzet 2d2aeea4de fix(desktop): put delete beside Remove RG in the selection toolbar
The desktop selection toolbar left Remove RG and the delete button each
alone on a row. Delete is now a compact toolbar pill, filled with the
error role, that shares a row with Remove RG, delete first. Phones keep
the full-width delete button.
2026-10-21 23:22:07 +07:00
zarzet 8b062dc353 fix(desktop): keep a right-click selection to its menu
Right-clicking a song outside the selection made it the selection and
opened the selection toolbar under the menu, and choosing Play or Show
details left that toolbar open.

That selection now belongs to the menu: the toolbar stays closed while
the menu is open, closing the menu without a choice ends the selection,
and Play and Show details end it like the queue and playlist actions.
Bulk actions (re-enrich, convert, delete) keep it and bring the toolbar
back. showContextMenu reports whether a row was chosen, and
SelectionModeMixin.showSelectionMenu applies this on the album, folder
and artist pages; the Library and its search results do the same.
2026-10-21 23:22:07 +07:00
zarzet 0669196775 feat(material): mark the current track on local album rows
Local album phone rows already knew the current track for their play
button but did not pass it to the tile, so they lacked the current row
fill and equalizer glyph that Library and downloaded album rows show.

The playback controls test settles with bounded pumps, since the glyph
loops while a row plays.
2026-10-21 22:39:07 +07:00
zarzet 386343a9fa Merge branch 'material/now-playing-rows' 2026-10-21 22:38:05 +07:00
zarzet 6417d80428 feat(material): mark the current track in song lists
Material 3 Expressive puts expression in state changes: the playing row
should read at a glance, and selection should use its own solid role
instead of a faded primary container.

- Add NowPlayingIndicator, a 16dp three-bar equalizer that moves while
  playing, freezes while paused, stays still under reduced motion and
  stops its ticker under a disabled TickerMode.
- Desktop songs table (Material): rows with a media id follow
  mediaItemPlaybackUiProvider one row at a time. The current row fades
  to primaryContainer on the effects spring, takes onPrimaryContainer
  text with a bold title, and shows the glyph in place of the track
  number, or over the artwork when the table has no number column. Row
  height and columns stay put. A selected current row keeps the
  secondaryContainer fill. Hover is the 8% state layer of the content
  color.
- TrackCard (Material): the current row fills with primaryContainer,
  rounds its ends into a pill on the spatial spring through a clip
  inside its margin, shows the glyph before the trailing control and can
  round its artwork toward a circle. Other rows keep their connected
  corners. Selected rows use solid secondaryContainer.
- Library list and table rows and downloaded album rows pass their
  media id; downloaded album rows now show the real play and pause
  state and toggle the current track instead of restarting it. Local
  album table rows pass their media id too.
- Album and Library row play buttons use a tonal secondaryContainer
  container on Material.

Mornye keeps its rows as before.
2026-10-21 22:37:34 +07:00
zarzet 7d936c0f99 docs(theme): list the player artwork theme 2026-10-21 22:24:33 +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 a2391f66c5 Merge branch 'material/player-artwork-color' 2026-10-21 22:20:50 +07:00
zarzet daa7da5bc2 Merge branch 'material/library-toolbar' 2026-10-21 22:20:49 +07:00
zarzet b3c48d63e6 Merge branch 'material/desktop-dialogs' 2026-10-21 22:20:49 +07:00
zarzet 1c87e945e1 Merge branch 'material/theme-roles' 2026-10-21 22:20:49 +07:00
zarzet 3fd2ca955a feat(material): color the player surfaces from the track's artwork
The Material full player, mini player, desktop player bar and desktop Now
Playing now take their ColorScheme from the current cover through a local
PlayerArtworkTheme, as DESIGN.md principle 3 asks. The app chrome around
them, and the downloads popover hosted in the bar, keep the app scheme.
The bar keeps its surfaceContainer tier, so resting chrome stays calm; the
play buttons use the cover's primary and onPrimary.

The scope shows a cached scheme on the first frame, keeps the previous
cover's scheme while the next one resolves, falls back to the app scheme
without readable art, and moves the whole scheme with one controller and
ColorScheme.lerp on the effects spring (a static swap under reduced
motion). Each cover change starts one palette job, shared through the
CoverPalette cache. With AMOLED on, the page background stays pure black.

CoverPalette gains an opt-in neutral scheme: a cover whose source color
has an HCT chroma of 12 or less gets a monochrome scheme instead of
Score's fallback blue or a muddy tint. The Material player and Material
headers (CoverPaletteBuilder) opt in; Mornye keeps the tonal scheme, so
its surfaces render as before.
2026-10-21 22:19:55 +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 3d0d198ebd feat(material): size desktop dialogs and show slider values in pills
Desktop sheet dialogs had one 560dp width for every task, so a crash
report or the metadata editor wrapped tightly while short prompts
floated in empty space. AppSheetDialog now takes a size class (compact
440dp, medium 560dp by default, wide 720dp), threaded through the sheet
helpers. The metadata editor, crash report and re-enrich review open
wide. On Material the dialog corner comes from the sheet radius token,
the body's scrollbar stays visible, and a titled header ends with a
close button. Material alert dialogs stay within the M3 280 to 560dp
range, starting at the compact width on desktop.

Settings sliders showed their value inline or not at all. A shared
SliderValueHeader puts the value with its unit in a secondaryContainer
pill at the end of the title row, used by music haptics, normalization
pre-amp, AutoMix, lyrics size and the equalizer tone sliders. These
already save on release; lyrics size and the equalizer keep live writes
because their preview needs every step. Mornye keeps its inline labels.

The player details sheet called showModalBottomSheet with Flutter's
drag handle on Material phones. It now opens through
showAppScrollableBottomSheet with the shared handle, shape and header
naming the track, and lists the tags in one group instead of a titled,
outlined card. Mornye keeps its glass details on both platforms.
2026-10-21 22:13:12 +07:00
zarzet bc6e2e7bac feat(material): give each surface role one meaning
Settings groups blended white or black over the page instead of using a
container tier, and search results, their skeleton and the About and
Donate cards copied that tone. Groups and grouped rows now use
surfaceContainer, so the tier alone separates them from the page and the
reduced motion card drops its outline.

AMOLED tiers keep the M3 dark tone steps around the container. The old
low tier sat almost on black, which would hide menus now that they use it.

Menus share the M3 Expressive standard skin: popup and anchored menus sit
on surfaceContainerLow with the control radius and 12dp rounded items,
matching M3EMenuPopup. Checked rows in the desktop context menu take the
tertiaryContainer selected fill.

Info cards and unselected choice chips use solid container tiers instead
of faded copies. Mornye renders as before.
2026-10-21 22:10:54 +07:00
zarzet 5bf9254296 feat(desktop): list the Library Songs tab in the songs table
The Songs tab (the Library's all filter) kept the phone month-grouped
TrackCard tiles on desktop in list mode: three lines of text and chips
per song, which read as a phone list in a desktop window. Only the Albums
tab's singles view and the album, playlist and folder pages used the
desktop table.

Route the desktop list mode of the all filter through the songs table,
with the section page's collection entries and the active downloads
leading it as list cells. The cover grid stays for grid mode, and
phones keep the sectioned cards. Lead cells form their own run on
desktop, since the table follows them.
2026-10-21 20:48:12 +07:00
zarzet 62a9e46830 fix(library): look up artists in the search provider for downloads
A downloaded track's source is the service its audio came from, which
can be a fallback such as YouTube Music in the device's region. Go to
Artist in the player and artist links on download history rows searched
that service first. They now use the user's search provider and the
metadata provider priority, as the track metadata screen already did.
2026-10-21 20:34:13 +07:00
zarzet f74076ab1e feat(desktop): list keyboard shortcuts in Settings
A Keyboard Shortcuts page, shown on desktop under App, lists playback,
navigation and panel shortcuts with Command or Control for the host.
It reads the bindings the app registers, so it follows any change to
them, and shows a command and its destination number in one row.
2026-10-21 20:34:13 +07:00
zarzet 088ec60ebc Merge branch 'desktop/material-density' 2026-10-21 20:15:43 +07:00
zarzet b3e2644952 Merge branch 'desktop/sheets-menus' into desktop/material-density 2026-10-21 20:11:35 +07:00
zarzet d6602570f3 feat(desktop): tighten Material density for pointer input
Material desktop pages kept the phone metrics: 48dp touch rows, 56dp
row artwork, 16dp settings row padding, a 120dp collapsing header, and
lists stretched across the whole window. The selection bar was the
phone sheet with its drag handle, tap hint and two-line pill grid.

Register AppTokens.desktop for Material on desktop (M3 density -2 for
rows, row artwork and the page header; radii, motion and the 48dp
control target unchanged), lower the Material songs table row to 44dp,
and center Material lists past 1280pt (the M3 large window class plus
the rail) while Mornye keeps Music's full-width pane. The desktop
selection toolbar drops the handle and tap hint, lays its actions in a
wrapping row of 40dp buttons, and keeps the destructive action at its
own width.
2026-10-21 20:11:35 +07:00
zarzet 909a70c173 fix(desktop): present Material song menus and sheets as desktop surfaces
On desktop the Material style still opened phone bottom sheets: the song
page's More button, the search sort options, explore and discography
actions, batch convert, the playlist picker, quick actions, the download
service picker, the metadata editor's option pickers and the cue split
sheet all called showModalBottomSheet directly.

The song page now opens its items as a menu anchored under the More
button on Material desktop, through the same context menu machinery as
the Library's right-click menus, while phones keep their sheet and
Mornye keeps its popover. The remaining call sites go through
showAppModalBottomSheet, which already presents a centered dialog on
desktop. The adapter gains a mornyeGlass switch, mirroring the dialog's,
for content that draws its own glass (batch convert, the playlist
picker, the discography sheet and the floating download picker on
phones), so phone appearance stays as it was.

A test opens the Material song page menu on desktop and on a phone and
checks for the anchored menu or the sheet.
2026-10-21 20:00:09 +07:00
zarzet b4751c29c8 fix(linux): build FFmpegKit without its bundle on arm64
ffmpeg_kit_flutter_new_audio publishes a Linux bundle for x86_64 only and
its CMake stopped any other build with a fatal error, so the Linux arm64
bundle could not be built. Vendor 2.5.7 with one patch: on an
architecture without a bundle the plugin is built without
libffmpegkit.so, which it already loads with dlopen() and treats as
optional. Desktop runs the bundled ffmpeg CLI and never calls FFmpegKit's
native layer. x86_64 builds keep upstream behavior.
2026-10-21 19:50:27 +07:00
zarzet 1ef604e635 feat(extensions): enable newly installed extensions by default 2026-10-21 19:47:05 +07:00
zarzet cc12080a78 fix(android): avoid Samsung Vulkan crash on SM-S711B Android 16 2026-10-21 19:25:51 +07:00
zarzet 6f2498b9b8 ci(desktop): build the Linux bundle for arm64 as well
Mirror the release workflow's Linux matrix: an ubuntu-22.04-arm job
installs rustup and clones Flutter, and Cargo and pub caches are keyed
per runner architecture.
2026-10-21 19:05:44 +07:00
zarzet c1859530bd chore(release): bump app to 5.2.5 build 164 2026-10-21 19:03:06 +07:00
zarzet 268de6ee20 fix(windows): pin flutter_rust_bridge to the version smtc_windows uses
smtc_windows 1.1.0 is generated by and links flutter_rust_bridge =2.11.1
but accepts any 2.x runtime. With 2.13.0 its version check failed at
start and Windows had no media transport controls.
2026-10-21 18:28:59 +07:00
zarzet cba77c1fc0 fix(history): use single-quoted empty strings in path queries
SQLite reads "" as an identifier. The sqlite3 build Windows and Linux
bundle disables the legacy fallback that treats it as a string, so
startup history maintenance and orphan cleanup failed there with
'no such column'. macOS uses the system SQLite and hid the bug.
2026-10-21 18:28:59 +07:00
zarzet 54404cdf41 fix(desktop): open the Downloads page from the downloads popover
Show all only asked for the Library tab, which in Mornye reopens the
page it showed last, such as Songs. Mornye now opens its Downloads
sidebar page through a new library link request; Material keeps the
Library tab.
2026-10-21 18:19:43 +07:00
zarzet 6af4e585c8 fix(player): keep the no-lyrics state above the Mornye controls
The Mornye phone player lays lyrics out under its controls and masks that
part, but the no-lyrics message centered in the whole area. On short
screens the Search online button fell under the controls and could not
be scrolled into view. The layout now reports the covered height, and
the message centers in the visible part and scrolls when it does not
fit.
2026-10-21 16:24:55 +07:00
zarzet d7d48ba2c5 fix(metadata): let the lyrics box span the card
The box sized itself to the longest line, so on desktop its scrollbar sat
in the middle of the Lyrics card.
2026-10-21 16:24:54 +07:00
zarzet fcdd898fdc fix(backup): preserve extension repository for automatic restore 2026-10-21 16:09:17 +07:00
zarzet 4a3805a50e build(desktop): move bundled FFmpeg to 9.0
macOS builds FFmpeg 9.0.2 from the signed release tarball; Linux and
Windows take BtbN's n9.0 LGPL builds. The configure options and encoder
list are unchanged and all still exist in 9.0.
2026-10-21 15:28:32 +07:00
zarzet be50a4db69 fix(settings): close the orphan cleanup dialog from its own navigator
The progress dialog sits on the root navigator, but the page popped
through its own context. Inside a tab or settings detail navigator that
closed the page and left the undismissable dialog up for good.
2026-10-21 15:20:59 +07:00
zarzet daaafbc72d fix(desktop): register mornye:// from portable and AppImage copies
Only the Windows installer and the deb registered the scheme, so after
extension verification the browser could not return to a portable zip
or AppImage copy and the link had to be pasted. On launch the runners
now point the per-user handler at the running copy when it does not
already start it (HKCU\Software\Classes\mornye on Windows, a GIO
x-scheme-handler default on Linux, using $APPIMAGE for AppImages).
2026-10-21 15:11:12 +07:00
zarzet aca88293f5 feat(settings): show donation progress on the desktop Settings row
The Support Development row shows the monthly goal's progress under its
title, as the phone list does.
2026-10-21 14:59:27 +07:00