Commit Graph
3703 Commits
Author SHA1 Message Date
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
zarzet fcb5d21103 fix(home): say so when the Mornye Home has nothing to show
The Mornye Home has only shelves. With an empty Library, nothing played
and no extension, every shelf was hidden and the page was blank under its
title. It now shows an empty state once the Library shelves have answered.
The Material Home is unchanged: it always has its Shortcuts.
2026-11-17 03:09:29 +07:00
zarzet 650e4e27b5 feat(link): add Share with other phones to the phone's Link page
A switch, off by default, at the end of the Link page shares this phone.
While it is on, the page shows the computer page's host rows: name,
address, security code, Pair a phone with its PIN, and the paired phones
with Remove. The client list no longer calls every host a computer, and
this phone's own announcement stays out of it.
2026-11-17 03:09:29 +07:00
zarzet ad86633136 feat(link): host Link on a phone while it is open or playing
With sharing on, the phone runs the same host as the computer through
the Link channel and announces it with the platform's service
discovery. It runs while the app is in front or plays, stops after a
short grace in the background (at once on iOS), and leaves out
downloads, opening links and file changes. Sharing is off by default.
2026-11-17 03:09:29 +07:00
zarzet 9b17fd2c61 feat(link): offer only what the Link host announces
Hosts announce their platform and optional features (downloads, opening
links, file changes). The phone remembers them and hides the actions a
host lacks, and shows a phone icon for a phone host. Older hosts that
announce nothing keep every action.
2026-11-17 03:09:29 +07:00
zarzet ed5ae32067 feat(link): Play together in the Devices sheet
A Beta entry next to the two devices starts it; choosing one device ends it there. The controller shares the queue, starts the session, keeps the connection, ends quietly when it drops, and remembers a phone timing shift per paired computer, set with a slider shown while it runs.
2026-11-17 03:09:18 +07:00
zarzet 6acc001fe5 feat(link): Play together coordinator and computer host
The phone measures the clock offset, mirrors the leader's song, play state and position to the follower, and corrects drift. The computer answers the together ops, follows cues and reports its own pause, play, skip or a new queue. A simulated room with two players tests start, ten minutes of drift, transport, gapless song ends, a missing song, the timing shift and a lost connection.
2026-11-17 03:09:17 +07:00
zarzet bbe5e6e187 feat(link): Play together timing core
Adds the together ops and reports, the deck over the shared player interface, the aligner that leaves small errors alone, nudges the follower's rate or rejoins, and learns the start lead, and the follower that starts at an agreed instant. A simulated deck with clock offset, drift, latency and jitter backs the tests.
2026-11-17 03:09:17 +07:00
zarzet c42c62c011 feat(link): start a queue paused and override settings for a session
setQueueAndPlay takes startPaused so a waiting queue loads without a sound, prepareQueueItem loads an entry without starting it, and the runtime can apply a settings override that is never saved. Play together needs all three.
2026-11-17 03:09:17 +07:00
zarzet c4b7b57457 feat(link): sync song lyric offsets with the sound settings
Song offsets travel as a new songLyricOffset item kind of the sound
settings exchange while Sync sound settings is on. The newest edit wins
per song, dated by when it was set rather than when a sync noticed it,
and a song put back in sync is a tombstone. Both devices keep every
song's offset whether or not they have the song.
2026-11-17 03:09:17 +07:00
zarzet d3adcb9739 feat(lyrics): add a lyric timing offset per song
The offset of a song's synced lyrics is now the app-wide offset plus the
song's own. The player's lyrics menu opens a Lyrics timing sheet with
This song above All songs; the settings page keeps only the app-wide one.

Songs are keyed by title and artist, as Library, History and Link match a
song across devices, and a song in sync stores nothing. Every timed reader
uses the sum: the player lyrics in both styles, the lyric line preview,
the desktop mini player, lock screen lyrics, sharing and the mirrored
player.
2026-11-17 03:09:17 +07:00
zarzet 549cb55f7d feat(link): add Sync sound settings to the phone's Link page
A switch row with the other phone options, off by default. Turning it
off stops syncing and keeps every value.

The settings page test now makes sure Add by address is on screen
before tapping it, since the longer page can leave it past the edge.
2026-11-17 03:09:17 +07:00
zarzet e64b36abf1 feat(link): sync saved sound settings between phone and computer
Equalizer presets the user made, the volume normalization level and
mode, and the shape of AutoMix transitions travel both ways over one
forwarded operation, POST /mornye/v1/preferences: the phone sends every
item it holds, the computer merges them and answers with every item it
holds. Last writer wins per item and deleted presets stay as tombstones,
so two devices editing different presets both keep their edits and a
deleted preset does not come back. The computer sends
preferences.changed when its side changed.

The phone syncs on connect, after a local edit and on that notice, only
while its sound sync choice is on. Live state (the curve playing now,
on/off switches, volume, speed) and device-specific values (the lyric
timing offset, outputs) stay on each device.
2026-11-17 03:09:17 +07:00
zarzet 54c3ffc1e9 feat(link): keep a playlist or Loved on this phone from its menu
The More menu of a playlist and of Loved gets Keep on this phone / Stop
keeping on this phone on phones while a computer is paired (and while
kept, so it can be stopped). A kept collection shows Kept on this phone
in its header meta row, fading in on the fast effects spring while the
row resizes on the spatial spring; Mornye and reduced motion stay still.
2026-11-17 03:09:17 +07:00
zarzet 4df0c40842 feat(link): save kept collections to the phone by themselves
A playlist or Loved marked as kept on this phone has its songs from the
paired computer saved here through the existing saver and Transfers when
the computer connects, when a kept collection gains or loses a song and
when a collection is newly kept. Runs are debounced and one runs at a
time; only songs the saver does not already have are queued, nothing is
deleted, and failed songs wait for the next connection or change. The
marks live in SharedPreferences on this phone only.

The receiver's save takes an onFinished callback with the last status,
and the saver exposes its already-there check as has().
2026-11-17 03:09:17 +07:00
zarzet d143b83d96 feat(playlist): sort the songs of a playlist by title, artist, album or date added
Playlists, Liked Songs and the Wishlist get the sort button the Library
album pages have. Custom Order is the saved order; Title, Artist, Album and
Latest only change how the page lists and plays the songs. The choice is
kept per collection. Edit order and the M3U export keep using the saved
order, and saving an edited order returns the page to Custom Order.
2026-11-17 02:44:45 +07:00
zarzet 65147280eb feat(library): show all songs of an artist beside their albums
A Library artist now has an Albums | Songs switch. Songs lists every song
of the artist by title, with Play, Shuffle and Save as playlist: the songs
of the artist's albums and the songs whose artist tag names the artist
beside others. The view chosen last is the one the next artist opens on.

The Albums | Singles switch moves into a shared LibraryViewToggle, and the
genre song reader into library_song_reads so both lists use one query.
2026-11-17 02:35:33 +07:00
zarzet 7aa2f37496 chore: remove comments that restate the code
One-line doc comments and inline comments that only repeat the name, the
type or the next statement of what they describe, in the Dart, Kotlin and
desktop runner sources. Comments that state a reason, a constraint, a
unit, a value set or a platform quirk stay. No code changes.
2026-11-17 02:06:37 +07:00
zarzet 45d4c2d411 chore: remove redundant comments and unused import 2026-11-17 02:05:45 +07:00