The translation editor from PR 926 stacked four lines of text in its
header and gave every lyric line its own outlined field under a label,
so it read as a form beside the lyrics editor's connected list in both
styles.
Lines are now one connected list on the lyrics editor's fills and
corners: each row shows the original above a borderless field, and the
row being typed in rounds its ends on secondaryContainer like the lyrics
editor's selected line. A tap anywhere on a row focuses its field. The
header keeps the title and the track only; the target language moves to
a caption under the lines, and the note on word timing and emptied
lines shows there only when there is a translation to change. The
strings of this editor and of the lyrics editor get Indonesian
translations.
Issue 948: a finished download showed as failed with "database is locked".
The Library connection has history.db attached, and BEGIN IMMEDIATE takes
the write lock on every attached database, so each Library write transaction
(a scan publication can run for a long time) shut History writes out. SQLite
settles that race with a timeout only, and the download's history write was
the one that lost.
Both connections are ours, so they now wait for each other in Dart. A
connection joins a named writer queue (History when it opens, the Library
connection where it attaches history.db) and transactionWithBusyRetry runs
the queue's transactions one after another, in the order they asked. The
download stays in its finalizing state until its history row is written and
then completes.
Guards: a write made inside the holder's own transaction skips the queue, as
it cannot wait for itself; a callback that outlives its transaction queues
again; after two minutes a waiter goes to SQLite anyway, so a stuck holder
cannot stop every later write. The BEGIN retry stays for holders outside the
queue (plain Library transactions, native code).
The Material Home kept a grey prompt between its greeting and the first
section. It was written as the lead into the search field ("What are we
listening to?", "Got a link? Drop it in the search"), and stayed behind
when Search became its own tab, so the page opened on three lines of text
before any content and two of its three prompts pointed at a field that is
no longer there. The row and its strings are gone; the Mornye Home never
had it.
That row was also where a tap showed "Search is here now" above the Search
tab. With the row gone the hint shows by itself instead: once, on Home,
for an install that ran a build with the field on Home. A settings
migration notes that it is owed (a new install is not), and it is settled
when the hint has stayed up for two seconds. A touch dismisses a tooltip,
so one that comes sooner leaves it owed and the next launch shows it
again, still at most once per run.
The retry added for issue 948 explained itself with a claim that desktop
connections ignore busy_timeout. That only shows in test runs on Linux; the
same bundled SQLite waits the full timeout elsewhere. The lock that matters
is a Library write transaction, which also write-locks the attached
history.db until it commits.
Also puts the dart: imports first and updates the helper comment that still
spoke of three attempts.
Port of the fix reviewed and tested in frpboy/Mornye to upstream main.
transactionWithBusyRetry gains an optional retryDelays schedule; the seven
history write paths use a seconds-long schedule sized to outlive native
library-merge lock holds. Adds real cross-process contention tests.
The cover that flies from a list row into track details is the header's
own cover, decoded at the full width of the screen. That decode only
started once the page was built, so on a first open the row's cover
vanished, nothing flew, and the header's cover popped in when its decode
finished: a blink on the cover, longer the larger the picture in the file.
On the way in, the flight now keeps the row's picture under the header's
cover, so there is a picture from the first frame and the sharp one takes
over as soon as it is there. The decode of a cover in a file also starts
when the opener readies the page instead of when the page is built, in
both styles; it is not waited for, so opening is not delayed.
The Material Home carried the search field under its greeting until
Search became its own destination, so people still tap that spot out of
habit. A tap there now shows "Search is here now" above the Search
destination for five seconds, or until the next touch. It shows once per
app run and is never saved, so it cannot repeat during a session but can
help again after a restart. A request made while the Search icon is off
screen does not count as shown.
Edit translation sat right above Edit lyrics with the same icon. The Save button of the translation editor also picked the Cupertino indicator by hand; AppLoadingIndicator already does that for the Mornye style, as in the lyrics editor.
Reading a dead preview link again only asked the extension the song came
from. An extension without previews of its own, which carries a borrowed
link on some songs, has nothing newer to give, so its songs still ended in
"Preview unavailable".
When the song's own extension has no newer link, every enabled extension
is searched for the song and the first result that is the same recording
gives its preview: the same ISRC when both carry one, else the same title
and first artist. The lookup fails only when no extension could be asked,
so a song is not marked unavailable while offline.
A preview link is a snapshot of the moment a song was read. One service
signs its links for 15 minutes, while the Recommended shelf on Home keeps
its songs for a day, and an extension without previews of its own can
carry such a borrowed link on some songs. Pressing the button then waited
on a dead link twice, up to the player's 30 second prepare wait each
time, and ended in "Preview unavailable".
- When a link fails to start, the song's own extension is searched for
the song and the link it has now is played instead. The button keeps
owning the preview under the link it was built with, and the next press
starts from the link that worked.
- A link that still does not play although its extension answered, or
that its extension resolves to nothing, is not offered again while the
app runs: its button hides instead of failing on every press.
- Starting a preview gives up after 10 seconds instead of the player's
own wait.
The Now Playing More menu lists its actions as one connected group: each
row its own surface, 2dp from the next, large corners only at the ends of
the group. Other sheets still put flat rows straight on the sheet, or one
card split by dividers, so the sheets did not look alike.
- AppSheetOptions wraps a run of AppSheetOption rows in that group, and
showAppChoiceSheet uses it, so every choice sheet follows.
- ConnectedGroupRow gives the same surface to a row of a lazily built
list (languages, countries, folders, playlists, an album's custom
order). The lyrics language list is built lazily again through it.
- The song page's More menu is a connected group of SettingsItem rows
under its fixed song header and sits in AppScrollableSheet. Its
dividers and its own tile are gone; SettingsItem takes a titleColor for
the destructive row.
- Up Next rows are the same group: the playing song is filled in the
group's shape, the rows sit 16dp from the sheet's edges, and the strips
under a swipe follow the row's corners. Opening at the playing song
counts the gap between rows.
- The editor's option picker and the re-enrich results join their rows
too.
Mornye keeps its rows on the sheet's glass.
A test hook closes the playback proxy's listener the way iOS does to a
suspended app; resolve must then bind a new proxy that accepts
connections, and keep a proxy that still listens. The test fails
without the fix from #947.
The lyric line under the player title showed the translation instead of
the sung line whenever the full lyrics' translation switch was on, so a
Japanese song read in English there. It now shows the sung line, and a
new "Translation in lyric line" switch in Lyrics settings (off by
default) shows the translation instead.
A shown translation is passed on with its own word timing, so it sweeps
word by word as it does in the full lyrics; before, it fell back to
plain text whenever the translation replaced the line.
A tester asked that opening an artist go to the provider at the top of
their Metadata Priority instead of another one.
Opening an artist or an album from a name (the player, the Library, a
credit) asked the search provider first and the Metadata Priority list
only after it, although that setting says providers are tried from top to
bottom. The list now comes first, then the search provider and the other
extensions that can search. An item that names its own provider, such as a
search result, still opens there.
"Open in Other Services" lists the services that found the item in the
same order, instead of by name.
A sheet whose body was a list that fills the space it is given (a
ListView, ReorderableListView or CustomScrollView without shrinkWrap)
stayed at 85% of the screen however few rows it had, because the fitted
sheet only measured its content box and the scroll overflow. The Details
sheet of the player showed it: a handful of rows, then empty space down
to the bottom of the screen.
AppScrollableSheet now also subtracts the part of such a list's viewport
that its rows leave empty, so the sheet ends at the last row. It takes
initialSize and maxSize caps, which lets the sheets that used a fixed
DraggableScrollableSheet share the same fitting:
- Up Next (60%, grows to 90%); it asks for a new fit when the queue
changes length, since a list that loses rows reports no change.
- The Mornye Details sheet (75%, grows to 90%) and its desktop dialog.
- The convert sheet, which follows the options of the chosen format.
Plain sheets with a filling list are fixed where they are built: the
re-enrich results and the Add to playlist list shrink-wrap, the playlist
loading state no longer takes the full list height, and the full album
description is as tall as its text instead of always 90%.
Edit metadata and the lyrics editor keep their fixed height: their forms
are longer than the sheet on phones.
Favorite artists, weekly releases and concerts use connected rows with empty states, statistics periods are a segmented choice, and artist and album headers follow the header palette.
Settings, profile, logs, cache, backup, Link, network storage and recognition pages use the grouped settings theme, adaptive icons and the nav bar spacer.
Snack bars, the motion header banner, lyrics, the track crossfade and the scan counter follow MotionPace and Reduce Motion. Remaining raw snack bars go through showAppSnackBar.
The rail inset, desktop navigation, level sliders, player header and rewind story tap zones follow the text direction; transport controls and time rows stay left to right.
AutoMix, lyrics size and normalization show their value in a header above a continuous slider. The normalization mode is a segmented choice that shows its disabled state.
Repo cards, detail headers, the inspector, queue and details sheets and settings groups use plain grouped fills; glass stays on navigation chrome. Depth-two settings pages take the grouped settings theme.
ExpressiveButton draws a CupertinoButton in Mornye, AppMenuButton and the lyrics options open the Mornye context menu (Material gets an anchored M3 popup), the view toggle is a segmented control and AppLoadingIndicator draws the activity indicator. Destructive actions use the error color in Material and system red in Mornye.
Material sliders use primary on a secondary container track. Mornye picks black or white text on the accent by its luminance, as onPrimary already does. The player artwork theme scopes its slider and navigation colors.
Shared icons (headers, error cards, sheets) go through AppIcon.adaptive, and the Mornye map covers playback, files, privacy, status and navigation glyphs. link_off maps to a minus circle rather than the plain link.
Button groups, the playback transport and the mode toolbar squish on the
fast spatial spring through AppMotion, so Animation speed and Reduce
Motion apply. The seek bar wave grows on the effects spring and fades out
on its leaving curve.
Leaving motion used ad hoc ease curves and fixed durations. Mornye exits
now use its fast spring (from the current velocity where a controller
drives them) and Material exits use the standard accelerate curve, paced
by Animation speed: dialogs, the desktop inspector and now playing pane,
queue row removal, the selection bar, the Mornye snack bar, desktop page
pops, the recognition switcher and the theme change.
Material dialogs always take the app's dialog route, which shows at once
under Reduce Motion.
Material without a mini player morph now opens and closes on its
critically damped full-screen spring like Mornye, instead of a fixed
emphasized curve. A cancelled drag settles back on the same spring and
jumps straight to rest under Reduce Motion.
MornyeMotion gains glassPress and glassMorph springs, so the glass press,
the folding tab bar and the pouring context menu share one tuned spring
each instead of private constants, and follow Animation speed. The menu
opening now runs on the glassMorph curve over the route's progress.
AppMotion.surfaceEntrance also covers Mornye sheets and menus (slow spring
in, fast spring out), gives Material a fastest-first exit curve and turns
the transition off under Reduce Motion.
Home gains a "Recommended for you" shelf in both styles, after Recently
added: songs the person does not have that resemble the ones they play
most, added last and loved.
The songs come from the machinery behind "Suggested songs": an extension
that suggests related songs, else a metadata provider searched by artist.
Three seeds are taken from a pool of up to 45 Library songs, and each day
starts from other songs of the pool. One request is made per day; the
answer is kept for the day, and a failed request falls back on the last
day's songs. Songs already in the Library are left out when the shelf is
shown, so a recommended song leaves it once downloaded. Seeds from files
carry no ID, since a file's ID may be its path.
As on search results, a tap downloads the song and a long press or a right
click opens its actions; a song with a preview has a preview button on its
cover. The shelf is absent while it has nothing to show.
Appearance > Layout has a switch for the shelf, on by default.
loadCollectionSuggestions takes the number of songs to return.
Home showed either the chosen extension's feed or the person's own
sections, never both, so anyone with a feed extension lost the
shortcuts, mixes and Library shelves, and the Material Home also carried
the search field.
Home is now the person's own page in both styles and never asks for a
feed. Search is a destination in both styles (Home, Library, Store,
Search, Settings; Mornye phones keep Settings as a page) and opens on
the feed before anything is typed. Recent searches wait for the field
while a feed fills the page; a tap beside the empty field, Back, or the
Search destination pressed again returns to the feed. Without a feed
Search opens on recent searches, and with neither a provider nor a feed
it shows the provider prompt under the field. The Mornye bar's search
button opens the feed first and focuses the field when pressed on
Search, or at once when there is no feed. The Mornye desktop Search page
keeps its recents row and Browse tiles.
Both styles now share one destination order, so the search tab flag of
the shell navigation service and the style argument of the tab order
helpers go. The Material rail and Cmd/Ctrl+1..5 gain Search.
With an empty Library and nothing played, Home says so in both styles
and offers a "Find music" button that opens Search; the Library's empty
state on Mornye leads there too. The feed setting is renamed from Home
feed to Search feed (English and Indonesian; other languages keep the
old wording until translated). The feed no longer repeats the greeting
or Top Picks, which Home already shows.
The Mornye warm-up loaded every shader liquid_glass_easy ships, with
the metaball programs of its Blender and Morph widgets, which the app
never mounts. ensureLensLoaded loads the lens programs alone, so the
unused shader files can also leave the packages.
Concert times need current zone rules only. latest_10y.dart covers
five years either side of the package's release instead of every rule
change on record, which upcoming concert dates never leave.
isDesktopPlatform is only known at run time, so phone builds carried
the desktop player engine, the desktop diagnostics and the Windows
folder lookup. With --dart-define=MORNYE_MOBILE=true it is a
compile-time false and the compiler drops what only desktop reaches.
Android and iOS release builds pass the define.
Three call sites reached desktop code without asking
isDesktopPlatform; they ask now. Without the define (desktop builds,
tests) nothing changes.
The license page read assets/licenses/lgpl-3.0.txt, a byte-for-byte
copy of the LICENSE file the bundle already carries, and reads LICENSE
now. NOTICE was bundled but never read by the app, so it leaves the
bundle too. Both files stay in the repository.
Chinese lyrics showed no pinyin on Android. With Flutter 3.50 the
Android build passes Flutter assets through the Android asset merger,
which unpacks a file ending in .gz and drops the extension. The APK
held assets/romanization/pinyin.txt, the app asked for pinyin.txt.gz,
and the missing asset left romanization off without an error.
The file is now assets/romanization/pinyin.bin, still gzipped inside,
which the merger leaves alone. On an emulator the same lyric file shows
no pinyin in the build before this change and pinyin after it.
The pinyin table of offline romanization was gzipped text, 259 KB. The
same readings, phrases and traditional pairs now use a binary layout:
code points delta-coded and grouped by reading, phrases front-coded
with only the syllables that differ from a character's usual reading.
It takes 157 KB.
PinyinData.decode reads both formats and build_pinyin_data.dart gains
--repack to convert an existing file. Every character and phrase reads
as before (44369 characters and 9522 phrases compared).