3721 Commits
Author SHA1 Message Date
zarzet 1fae546824 fix(android): ask for the display's highest refresh rate
Neither Flutter nor the app asked Android for a display mode, and
several phone makers hold such an app at 60 Hz. The activity now asks
for the fastest mode at the resolution in use (not on a television),
and the app log notes the refresh rate the device gives it.
2026-11-17 15:34:58 +07:00
zarzet ccbc6af346 fix(player): let the closing player be seen all the way to the mini player
Closing felt cut short next to opening. Three things hid the motion:

- Material's shrink ran on a spring more than twice as stiff as the
  entrance's; it now runs on the entrance's slow spatial spring.
- Material's own content (title, controls) faded on the route's value,
  which a closing spring covers early, and was gone in about 0.1 s. It
  now holds from the moment the route is popped; the page fades as a
  whole.
- In both styles the shrinking page had faded out at 85 percent of the
  way. It now fades over the last 70 percent and is gone as it arrives.

Mornye closed on its standard spring and now closes on the full-screen
one it opens on.
2026-11-17 15:34:57 +07:00
zarzet 975139e32c fix(metadata): work out the cover's colours before track details opens
Material's track details header takes its colours from the cover. The
first time a cover was seen, the page opened in the app's colours and
changed to the cover's one frame after it was up. The step that readies
the backdrop before the page is pushed now readies those colours too,
for at most 300 ms.
2026-11-17 14:19:22 +07:00
zarzet d91b3b4d76 feat(home): let Continue listening be left off Home
A tester asked to hide the card. Appearance > Layout gets a switch,
on by default, that removes the card from Home on every layout.
2026-11-17 14:13:37 +07:00
zarzet 920b380309 fix(metadata): read a song's own cover before opening its details
Track details prefers the picture inside the file over the Library's
cover. Local songs opened without reading it first, so the first time a
song was opened the cover and backdrop changed once after the page was
up. Every Library opener now waits up to 300 ms for that read, as the
downloaded-song openers on Material already did, and Mornye's
downloaded-song openers wait the same bounded time.
2026-11-17 14:13:37 +07:00
zarzet 957370dba6 fix(metadata): stop the cover blink and the late buttons on opening track details
A song opened on its library cover changes to the file's own picture
while the cover is still flying in, so the cover landed on a picture
that was not decoded yet and blinked empty for a frame. The new picture
is decoded before the change, and the header keeps its colours until
the new cover's own arrive.

Edit and Add to queue waited for the file check and appeared during
the page's entrance. The song is now taken to be there until the check
answers. The cover's flight also reads the desktop Mornye header's
continuous corners.
2026-11-17 13:54:08 +07:00
zarzet 235e542b08 fix(collections): give the loading header a flat cover placeholder
The loading header drew the cover's shadow while its picture was still
on the way, which left a grey blur where the cover belongs. The cover
now shows the skeleton placeholder until the picture is there, and the
loading header leaves the shadow to the loaded page.
2026-11-17 13:54:08 +07:00
zarzet 3374e2938c fix(motion): let a leaving child go the way its spring moves
A switcher runs its leaving curve backwards. Given a spring, that held
the leaving child in place for most of the time and dropped it at the
end, so closing the lyrics faded the background before the words.
AppMotionSpec.leaving flips the curve, and every switcher fed by a
motion spec uses it.
2026-11-17 13:29:16 +07:00
zarzet 5e5ee3f2ca fix(metadata): keep the cover's corners round while it flies to track details
The rebuilt header rounds the cover outside its Hero, so the cover flew
from a list row with square corners and got them back on landing. The
flight now clips the cover itself, from the row thumbnail's corner to
the header's.
2026-11-17 13:29:16 +07:00
zarzet 934ae88162 refactor(motion): name the move that must stop at its end
Four sites chose the same pair by hand (Material's standard spatial
spring, Mornye's standard spring, nothing with reduced motion) for a
section, a card or a scroll that moves other content. AppMotion.surface
names it.
2026-11-17 12:57:48 +07:00
zarzet 3c2b1a9476 fix(motion): move screen transitions onto the style springs
Home sections, the download header and the listening rewind banner open
on springs (Home's, which can move a screen of content, on ones that
stop at their size), and reduced motion resizes them at once instead of
running a size animation of no length or ignoring the setting. The track
details switcher slides on the spatial spring and fades on the effects
springs, leaving in the shorter time, and keeps only the dissolve with
reduced motion. Setup steps turn on the slow spatial spring and jump with
reduced motion. Selection and drop tints, the equalizer recolor, the
quick picks page dots and the Library tab indicator use the presets. The
rewind reveal splits its rise and fade across the spatial and effects
springs, and its month bars grow on the slow spatial spring.
2026-11-17 12:57:48 +07:00
zarzet cad9168c1c fix(motion): move content widgets onto the style springs
Fades in the detail and artist headers, the fast scroller thumb, the
scroll edge fade, the swipe-to-delete fill, the service chip and the
motion header video now use the effects springs, so Mornye gets its own
springs instead of fixed linear lengths. The Mornye landscape player's
page, actions and lyrics mask fades use Mornye's effects springs. The
null test explanation and the metadata editor section cards unfold on
springs; the editor cards, which move the sections below, use springs
that stop at their height. Reduced motion now resizes those at once.

The cover and collapsing title tests expect Mornye's effects springs.
2026-11-17 12:57:38 +07:00
zarzet 8b05e4c60e fix(motion): let shared helpers carry on from the value on screen
AnimatedBadge restarted its bump from 1.15 (Material) or ran a linear
1.3 tween (Mornye) on every count increase. It is now a push on a spring
at rest: it rises to about 1.15 and settles, on Material's fast spatial
spring or Mornye's fast spring, and a count that grows mid-bump pushes
from the scale and speed on screen.

AnimatedLibrarySliverGrid's discrete extent change uses springs that stop
at the extent (Material's standard spatial spring, Mornye's fast spring),
since an overshoot would flip the column count twice; it already went on
from the extent on screen. SkeletonCrossfade and the selection check's
glyph fade use the effects springs instead of fixed linear lengths.
2026-11-17 12:57:38 +07:00
zarzet a72648254d fix(motion): replace the tutorial and lyrics card bounce curves with springs
The tutorial page dots, demo frame and page icon, and the lyrics card
background swatches, line rows and line checks used easeOutBack. They now
run on the AppMotion springs: Material's expressive spatial springs, which
overshoot by themselves, and Mornye's springs without a bounce. The
tutorial pages turn on the slow spatial spring, its tips rise through the
shared staggered reveal, and its fades use the effects springs. Reduced
motion is honoured where the tutorial ignored it: pages jump and the demo
frame resizes at once.
2026-11-17 12:57:37 +07:00
zarzet 48d84378a6 fix(motion): spring the Mornye transport press and carry a repeated skip
The press highlight and the capsule's disc ran fixed curves; they now
move on Mornye's springs from where they are: the touch highlight comes
in on the fast effects spring and lingers out on the slower one, and
the disc grows and shrinks on the fast spring. The glyph's press scale
uses the fast spring and its dim the fast effects spring.

A skip pressed during the glyph's advance restarted it from its first
frame, so the moving triangle jumped back. The advance now runs on and
one more follows it.
2026-11-17 12:57:37 +07:00
zarzet 0ff93c53a2 fix(motion): change the Mornye player's panels on one spring
Opening lyrics or the queue moved the cover and panels, faded the
background cover, tilted the gradient, dimmed the shade and faded the
moving artwork's glow over a hand-picked 380 ms curve. They now share
Mornye's standard spring, without bounce, and change at once under
reduced motion. The lyrics viewport mask follows the controls' fade.
2026-11-17 12:57:37 +07:00
zarzet 44fb097377 fix(motion): put the player's fades and resizes on the style's springs
The Material player's cover and lyrics crossfades, its backdrop fade and
the lyrics controls' fade ran hand-picked curves; they now use the
effects spring of each style. Turning pronunciation or translation on
resizes the lyrics on Material's slow spatial spring and Mornye's
standard one, and the lyrics editor scrolls to a line on the same
springs, which stop at the line. The paused cover's bounce curve was
only a fallback for reduced motion, where it never ran; it is now a cut.
2026-11-17 12:57:37 +07:00
zarzet 210d90c304 fix(motion): finish player gestures from the finger's velocity
A released drag on the full player settled open over a fixed 220 ms
curve and closed from rest; the Mornye shrink ran an eased curve that
started from rest. Both now finish on a spring that starts from the
finger's velocity: Material's standard spatial spring back to open and
its exit spring to close, Mornye's standard spring for both. Mornye also
opens on its full-screen spring instead of Material's decelerate curve.
Reduced motion settles a let-go drag at once.

The titles under the cover and in the mini player ran a fixed 280 ms
curve on release. They now keep the speed they had, through the swipe's
resistance, on a critically damped spring that never shows the
neighbour on the other side of rest, and a new swipe takes titles that
are returning to rest over where they are drawn.

A song row's queue swipe returns to rest from its own speed, on
Mornye's spring in Mornye, with a flick back capped so the row never
passes rest. The Material strip's fill deepens on the fast effects
spring.
2026-11-17 12:57:37 +07:00
zarzet 5b19204eab fix(desktop): cross-fade inspector panels on the style's effects spring
Switching between Lyrics and Up Next in the inspector cross-faded on a
fixed linear 180 ms in both styles. It now uses the effects spring of the
style; reduced motion still cuts.
2026-11-17 12:57:37 +07:00
zarzet dd0f1f1e87 fix(desktop): reverse the inspector from where it is and move desktop chrome on style springs
Reversing the inspector mid-move swapped its curve and jumped. Its value
is now the pane's openness on screen: opening runs on the style's spring
from the current velocity, closing eases back from wherever the pane is,
and the pane beside the content still stops at its width.

Mornye's desktop Now Playing fade ends with the fade instead of waiting
for a movement it does not make. The sidebar tint and artwork, the
artwork hover, the volume popover, row actions, hover scrims, the header
title, the mini player lines and the Now Playing panel cross-fade use the
style's effects springs, and the scroll arrows page on a spring that stops
at its target. A closed Now Playing panel drops its queue at once.
2026-11-17 12:57:37 +07:00
zarzet e0973036f9 fix(motion): hand the selection panel the finger velocity and move shared chrome on style springs
The selection panel collapsed, expanded and returned to its place on a
fixed curve from rest. It now runs on the style's slow spatial spring
from the drag's velocity, and from its own velocity when the handle is
tapped mid-move; it stops at its place instead of rising past it. The
dismissal keeps its short eased exit. The bar's entrance gives the slide
and the fade their own lengths, and reduced motion keeps the fade alone.

The Mornye dialog grows on the fast spring. The orientation fade, the
settings search reveal and the log follow move on the style's presets;
the reveal and the log follow now honour reduced motion.
2026-11-17 12:57:37 +07:00
zarzet 91b237ff92 fix(motion): spring the destination icons and carry finger velocity in Mornye controls
The three selected destination icons bounced on elasticOut and
easeOutBack, also with reduced motion and in Mornye. They now play on the
fast expressive spatial spring in Material, which overshoots by itself,
with the fade on the fast effects spring; Mornye's tab icons and reduced
motion stay at rest.

The Mornye selection pill and switch thumb moved on a fixed ease that
started from rest. Both now run on the snappy spring from where they are:
a released pill or thumb keeps the finger's velocity, and a new selection
mid-move goes on from the current velocity. The spring starts in build,
after the parent applied the change, so it never heads for the old slot
first. The pill's lens swell moves on the fast spring.
2026-11-17 12:57:37 +07:00
zarzet fcd095b88f feat(motion): give Mornye Apple-style springs and Material a true fade through
Mornye had no motion presets: each call site chose its own eased curve.
MornyeMotion now names springs the way SwiftUI does (duration and
bounce), and AppMotion hands a Mornye site the spring of the same role
wherever that site animates. Reduced motion keeps the site's fallback.

Material destinations now fade through as Material describes it: the
page shown fades out, then the new one fades in from 92 percent. A
change made mid-fade continues from the opacity on screen instead of
starting again from nothing.
2026-11-17 12:57:37 +07:00
zarzet 13a2d9c733 feat(metadata): rebuild track details on the collection header for both styles
Track details kept a hand-built hero for Material and a separate page for
Mornye, with Play and Delete as a bottom bar and one long card of facts.

- Both styles and desktop now use the collection header: cover, title,
  artist with the album below, and the meta row (quality, length, explicit
  badge, source). The header takes its colours from the artwork.
- Play is the one wide filled button in the header, between a round Edit
  metadata and a round Add to queue. Delete stays in the More menu only.
- The facts are split into Metadata, Release, Audio and File Info, built
  once for both styles, on tokens and text roles instead of literals.
  Identifiers copy on a tap; a long press still offers the copy sheet.
- A missing file shows the shared error card above the sections.
- The song change transition follows the app's motion settings.
- The service pill and its per-service icons are gone; the service is a
  row of File Info.

Tests follow the new layout. The sidecar export test also scrolls the
desktop menu to its row, which sat below the menu's fold.
2026-11-17 12:52:21 +07:00
zarzet 7b266ba2e4 feat(downloads): save the album cover as folder.jpg in the album folder
Portable players often do not read the cover inside a song and look for a
folder.jpg beside it. A new Files setting, Save Album Covers (off by
default), saves the cover a download carries into the album's own folder,
with a size choice from the sizes of Embedded Cover Size. The rule of the
animated cover applies: only folders that hold one album get the file, and
one already there stays. A PNG cover is saved as folder.png; other image
formats are not saved.

The folder writing of the animated cover moved to SongFolderFile, which
both covers use for local folders, Android documents and network storage.

While the setting is on, Remove Empty Folders counts folder.jpg and
folder.png as leftovers of a deleted album. While it is off they keep
their folder, as before.

Issue #913
2026-11-17 11:55:17 +07:00
zarzet 4856f1ee0a fix(covers): read a song's cover again after a failed read when it is played
A failed read of an embedded cover was remembered for the whole run for
plain files, so a song read once before the desktop backend had started
showed no cover until the app was restarted. Playing or opening the
song now asks again after 30 seconds; lists still skip a failed file, so
files without a cover are not read at every scroll.
2026-11-17 11:40:08 +07:00
zarzet 5cb6abea8e perf(library): learn a switch of tab without building the Library again
Library was told whether its tab is shown through a constructor
parameter, so entering and leaving the tab built the whole Library:
6 to 7 ms on a profile build on the emulator with a list of songs open.
All it does with the answer is apply the default view when the tab
appears.

The tab now takes a listenable and the shell keeps one Library for the
life of the tab.
2026-11-17 10:54:21 +07:00
zarzet cbded8e664 perf(lyrics): stop animating controls the lyrics view has hidden
With its controls hidden, the Mornye lyrics view still drew about twelve
frames each second: the two time labels kept rolling their digits
unseen. Hidden controls now turn their animations off, so the view
draws when a lyric line changes.
2026-11-17 10:36:27 +07:00
zarzet 46cf24d08b perf(player): open the Mornye queue where it was left without the rows above
The list keeps its scroll offset between openings. Without fixed row
heights it then built and laid out every row above that offset: 30 ms
for a place 150 songs down on a profile build on the emulator, growing
with the depth.

The list now remembers the first row it held and a row's height. On the
frame that opens it there, the rows above are empty boxes of that
height, as the Material queue does for its jump to the playing song.
2026-11-17 10:36:27 +07:00
zarzet 569d946e36 perf(shell): keep each tab's pages when the tab changes
A Navigator that is built again builds the page of every route on it
again. The shell built its tab navigators anew on every build, so each
switch of tab rebuilt Home, Library and every page pushed on them: one
frame of 8 to 16 ms on a profile build on the emulator, at each switch.

The tab navigator now hands back the Navigator it built until its page,
key, observers or hero setting change. Library learns whether its tab is
shown from above its navigator instead of as a parameter.
2026-11-17 10:36:27 +07:00
zarzet d6f8ffbb9c fix(link): keep Play together through the follower's song end
The state of a song that ran out still carries the last position read
while it played, which can lie well before the listed length. A phone
that followed then took its own move to the next song for one picked by
hand and ended the session (seen on a real run with the computer
leading). The report now places a finished song at its end, and a phone
that ran out of its song is no longer logged as paused by itself.
2026-11-17 09:40:22 +07:00
zarzet e94a6aa4a2 fix(link): do not pause Play together when a song runs out
Between a song's end and the start of the next one a player reads as
neither playing nor paused. The phone took that for a pause, so at each
song end the follower was paused and rejoined about three seconds into
the next song (seen on a real run with the phone leading). A device that
reads as stopped within the last moments of its song is now given the
transition wait before a cue goes out.
2026-11-17 09:40:22 +07:00
zarzet 31b3dac005 fix(link): open the shared phone rows at once with reduced motion
With reduced motion the rows under Share with other phones grew through
a size animation of no length, which finishes inside its own layout and
which the framework rejects. They now change size at once.
2026-11-17 09:40:22 +07:00
zarzet edd8666fe3 feat(link): show Play together in the computer's Devices
The computer gave no sign that it played together with a phone, and its
Devices sheet still offered the usual choices, which would have moved
the queue under a running session.

While a session runs, the sheet shows a checked Play together row naming
the phone, no device is checked, and choosing this computer or that
phone ends the session there: the computer tells the phone, which stops
the device that was not chosen. This works whichever device owns the
queue. The player bar's Devices button names Play together and, in the
Material style, draws primary.

The row opens and closes with the reveal the phone's timing group uses,
now one widget. With reduced motion it no longer runs a size animation
of no length, which failed inside its own layout.
2026-11-17 09:40:22 +07:00
zarzet 85054b65d9 fix(link): say device where the paired host can be a phone
The phone's Link entry, page, switches, Add by address dialog and pairing
errors still named a computer although a phone can share too. They now
say the other device or paired devices, the Settings entry reads Mornye
on other devices with a devices icon, and Settings search finds it by
phone and device. Indonesian text is added for the five Link strings
that had none.
2026-11-17 09:40:22 +07:00
zarzet 846792c436 fix(link): keep the phone's volume its own while playing together
While the computer owns the queue in Play together, the phone's screens
and media session show the computer, so the volume keys and the player's
volume slider set the computer's volume although the phone sounds too.
Both now set the phone's own volume for as long as the two play together
and return to the computer afterwards.
2026-11-17 09:40:22 +07:00
zarzet cf68a7d943 fix(home): do not offer a scanned song to continue while Local Library is off
Continue listening showed the saved session whatever it held, so a song on
a NAS stayed on Home, and played from the NAS, after Local Library was
switched off. The saved session is now left out while it is on a song of
the scanned Library and that Library is off, as Recently Played and the
mixes already do. Downloads and songs the Library does not know stay.
2026-11-17 08:50:36 +07:00
zarzet e18efec8f5 fix(link): log a Play together check every few seconds, not each one
Three check lines a second filled the 500 entry log within three
minutes and pushed everything else out of it. A line is written once a
second while a nudge runs or the players settle, and every five seconds
otherwise.
2026-11-17 05:10:57 +07:00
zarzet 276f91bfb7 fix(link): plan Play together nudges with what rate changes cost
The computer lost about 24 ms on every AVPlayer rate change, so a nudge
for 49 ms ended near 48 ms again and the aligner nudged every 4 s for
the whole session. The aligner now measures what each nudge's two rate
changes cost and plans the next one with it, lets a nudge run its course
(replanned once from a settled check, at the same rate), ignores checks
for 1 s after a rate change, and leaves errors inside the band alone
where the cost is larger than the band. When planned nudges keep
missing, it holds: no nudge until the drift passes 80 ms.

After a cue the lead now takes the whole settled offset, from two checks
that agree, instead of 60 % of the first one.

Each check logs the follower's reported and expected position, drift,
rate and nudge state at debug level, and each nudge's end logs the drift
before, expected and measured at info level.
2026-11-17 04:37:14 +07:00
zarzet 35de9e7ca4 fix(link): say whether the computer leads or follows in the start log 2026-11-17 04:37:14 +07:00
zarzet 5162ddec78 fix(link): keep a Play together nudge running without a rate change
A nudge at the rate already in force only moves its end, and one nudge
rate goes straight to the other. Each rate change costs some engines
time, so going through 1 in between cost it twice.
2026-11-17 04:37:14 +07:00
zarzet 722566c109 fix(link): extrapolate a Play together report at the rate in force
A report now carries the player's rate, so a nudged follower's position
is advanced at 1.02 or 0.98 rather than at 1 between its reading and the
check. A device that does not send it is read at 1, as before.
2026-11-17 04:37:14 +07:00
zarzet 8c7373032f fix(player): start a song loaded paused where it was put
A paused load leaves audioplayers and media3 decks reporting stopped, so
the next play loaded the song again from the start. Play together's first
cue on the computer began near 0 instead of the cue position. Remember a
source held paused, report it ready, and resume it on play.
2026-11-17 04:37:14 +07:00
zarzet 3e0cdd7387 fix(link): end the selection when a host cannot change its songs
The message that another phone's songs cannot be changed from here
appeared under the selection sheet, so nothing seemed to happen until
the sheet was closed. No other selection would work on that host, so
the selection ends and the message is seen.
2026-11-17 03:22:06 +07:00
zarzet 7a3bc64391 fix(link): do not keep a song this phone already has from elsewhere
A kept playlist only knew the copies it had saved from the same device.
With a second device sharing the same songs, every one was copied again
beside the first copy. A download of the same song, or a copy saved
from another device, now counts as kept while its file exists.
2026-11-17 03:09:30 +07:00
zarzet bba6272445 fix(library): match a track to this device's file before a remote one
When a track had both a file on this device and the same song on
network storage or a Link device, the lookup that playlists and
playback use took whichever row came first in the table. The file on
this device answers first now, so it plays without the network.
2026-11-17 03:09:29 +07:00
zarzet c7c78ef8a7 fix(link): draw sending to another phone as a phone
Send to (device) kept its computer icon when the paired host is a
phone. It is a phone with an arrow there now, which also keeps it apart
from Save to this phone beside it; the Mornye player menu uses the
phone symbol.
2026-11-17 03:09:29 +07:00
zarzet 5f7a9df85b fix(link): say that another phone's songs cannot be changed from here
A phone host changes no files for other phones. Its songs were then
handed to this phone's own file actions, so deleting, converting or
editing one asked for confirmation and ended with a message about
storage access. They stay with the Link action now, which says that
songs on that device cannot be changed from this phone and sends
nothing.
2026-11-17 03:09:29 +07:00
zarzet da46092634 feat(link): share a phone's storage access songs with other phones
The catalog now takes a phone's Android storage access documents from
their Library rows without opening them, so browsing, streaming, covers
and copying reach every song of its own the app can play. A phone host
lends each one to its Link server through the playback descriptor lease
and returns it when the server closes it, also when the close arrives
during the open, and returns every lease once the server stops. Network
storage and Link devices' songs stay out.
2026-11-17 03:09:29 +07:00
zarzet f75f8d3e15 fix(link): do not report a dropped handshake as a changed certificate
A host that stops while a phone is connecting ends the TLS handshake
without presenting a certificate. Every TLS failure was reported as the
host showing another certificate, so the phone warned that the device
was not verified and offered to pair again. Only a refused certificate
is reported that way now; a handshake that broke off counts as a host
that cannot be reached.
2026-11-17 03:09:29 +07:00