Commit Graph
4881 Commits
Author SHA1 Message Date
zarzet f168f5565f fix(lyrics): translation editor rows match the lyrics editor
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.
2026-11-22 17:21:02 +07:00
zarzet 9a506b8aaf fix(history): let History and Library writes take turns instead of racing
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).
2026-11-22 14:18:20 +07:00
zarzet 3d9269947a feat(home): lead from the greeting straight into the sections
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.
2026-11-22 14:12:41 +07:00
zarzet b3262b8030 docs(history): state the real lock holder for the write retry
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.
2026-11-22 14:01:17 +07:00
frpboy 2222960d06 Retry contended history.db writes instead of failing
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.
2026-11-22 13:55:22 +07:00
zarzet 20e4a96b3b fix(metadata): fly the row's picture until the track details cover is decoded
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.
2026-11-22 04:01:57 +07:00
zarzet 6ddd0639d1 feat(home): point at the Search tab from where the search field was
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.
2026-11-22 03:41:35 +07:00
zarzet 4cd416b799 fix(lyrics): own menu icon for Edit translation
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.
2026-11-22 03:34:12 +07:00
re-code a550b31073 feat(lyrics): edit and add translations by hand 2026-11-22 03:34:12 +07:00
itzSho3aib cec4460a36 fix(windows): allow absolute Windows download directories in extension sandbox 2026-11-22 03:34:12 +07:00
zarzet a44424bb40 fix(preview): take a preview from any extension that knows the song
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.
2026-11-22 03:31:28 +07:00
zarzet 3918d4730f chore: bump version to 5.4.5 (171) 2026-11-22 03:22:23 +07:00
zarzet 5694a9a188 fix(preview): read a preview link again when it no longer plays
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.
2026-11-22 03:22:23 +07:00
zarzet b8aff389cd feat(sheets): connected option rows on every Material sheet
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.
2026-11-22 03:22:23 +07:00
zarzet aa23152787 test(network): rebind a proxy whose listener the system closed
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.
2026-11-22 03:20:45 +07:00
Vedaant f40db33b12 fix(network): rebind the playback proxy after iOS closes it
iOS closes a suspended app's listening socket w/o telling Dart.
2026-11-22 03:17:18 +07:00
zarzet cce7fd3c82 fix(lyrics): lyric line reads as sung, translation by its own setting
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.
2026-11-22 02:57:59 +07:00
zarzet bc17ab91cc fix(metadata): follow the Metadata Priority when opening an artist or album
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.
2026-11-22 02:29:46 +07:00
zarzet eaac5e9794 fix(sheets): size every sheet to its content
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.
2026-11-22 02:29:46 +07:00
zarzet e9e7c0037f feat(equalizer): desktop scroll arrows on the band faders
The equalizer fader row gets desktop scroll arrows.
2026-11-22 02:14:39 +07:00
zarzet dd583f3f96 feat(track): section card and grouped options on track details
Track details use a section card, and the edit sheet shows its header divider only in Mornye.
2026-11-22 02:14:39 +07:00
zarzet 2e43ec775a feat(artists): connected rows for artists, releases, concerts and stats
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.
2026-11-22 02:14:39 +07:00
zarzet 84b5c8751b feat(home): desktop menu and paging for Home shelves
Explore tracks get the desktop context menu, and Quick Picks get page arrows and a height that follows text size.
2026-11-22 02:14:39 +07:00
zarzet c8c7990a0f feat(search): plain result rows and a sort that applies on tap
Mornye search results use plain rows and chips; the sort sheet applies a choice on tap without Reset and Apply.
2026-11-22 02:14:39 +07:00
zarzet 6728278ea8 feat(extensions): store and extension pages without content glass
Store, repository and extension pages drop content glass and custom shapes for grouped rows.
2026-11-22 02:14:38 +07:00
zarzet c5cd9acaf7 feat(settings): Mornye grouped lists on settings pages
Settings, profile, logs, cache, backup, Link, network storage and recognition pages use the grouped settings theme, adaptive icons and the nav bar spacer.
2026-11-22 02:14:38 +07:00
zarzet 0af28302cf feat(library): delete from the desktop album selection bar
Desktop album pages offer Delete inline in the selection bar.
2026-11-22 02:14:38 +07:00
zarzet c44304c296 feat(lyrics): start-align plain lyrics
Unsynced lyrics read from the start edge like synced ones.
2026-11-22 02:14:38 +07:00
zarzet 0427834a91 fix(motion): snack bars, banners and lyrics follow Animation speed
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.
2026-11-22 02:14:38 +07:00
zarzet 44784372e3 style(material): solid container colors without outlines
Cards, badges and queue actions use solid container roles instead of outlines, translucent fills and custom radii.
2026-11-22 02:14:38 +07:00
zarzet 35139f1b51 fix(a11y): 11 pt text floor and full touch targets
Badges, spectrogram and compare labels no longer go below 11 pt, and small controls get 44/48 dp targets.
2026-11-22 02:14:38 +07:00
zarzet 4ed510ed4f fix(rtl): mirror navigation, sliders and rewind taps
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.
2026-11-22 02:14:38 +07:00
zarzet 23c86bee2f feat(settings): value headers and continuous sliders
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.
2026-11-22 02:14:38 +07:00
zarzet 105a331015 fix(mornye): no Liquid Glass on content surfaces
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.
2026-11-22 02:14:38 +07:00
zarzet 0a21b07bb5 feat(mornye): Cupertino buttons, menus and activity indicator
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.
2026-11-22 02:14:38 +07:00
zarzet afccca6d50 feat(theme): Material slider theme and readable Mornye onSecondary
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.
2026-11-22 02:14:38 +07:00
zarzet 5fadb285d9 feat(mornye): map more Material icons to Cupertino symbols
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.
2026-11-22 02:14:38 +07:00
zarzet d3d91a4a60 perf(rust): keep the speed level for the extension JavaScript engine
QuickJS, which runs extension scripts, was compiled for size and ran a
script benchmark (JSON, regular expressions, sorting, string
shuffling) 17 percent slower: 139 ms against 117 ms on the build
machine. rquickjs-sys goes back to opt-level 3. On Android arm64 the
backend library grows by 0.33 MB, from 17.34 MB to 17.67 MB.

The Android build passed -Os to every C compile, which overrides the
level of a crate. The flag goes: C code already takes its level from
the Cargo profile, and the library has the same size without it.
2026-11-22 00:50:26 +07:00
zarzet db59f84abb fix(android): report a failed sample buffer allocation
The audio library builds without C++ exceptions since the size build,
so a std::vector that could not allocate ended the process, where it
used to fail the song with a Java exception.

The FLAC block, the exclusive output ring and the DSD read buffers use
PcmBuffer, which allocates without throwing and reports failure:
decoding fails with "Cannot allocate FLAC block" and the JNI calls
throw IllegalStateException as before.

With this and the speed level the arm64 library is 446.4 KB, against
441.6 KB after the size build and 490.1 KB before it.
2026-11-22 00:50:26 +07:00
zarzet bf9e7ee3e7 perf(android): keep the speed level for FLAC decoding
The size build compiled all of libmornye_audio.so with -Os. libFLAC
and the app's own sample loops go back to -O2, the level release
builds used before. At -Os FLAC decoding was 4 percent slower (241 ms
against 232 ms for a minute of 192 kHz audio on the build machine) and
the conversion loops were no longer vectorized: int32 to float ran
5.7 times slower, the DSD byte narrowing 11.7 times.

WavPack and Oboe stay at -Os; DSD decoding measured the same at both
levels.
2026-11-22 00:50:26 +07:00
zarzet afb5bee33c feat(motion): Mornye lists show rows at once
The staggered row entrance is a Material pattern, so Mornye skips it. The
stagger delay in Material follows Animation speed.
2026-11-22 00:46:25 +07:00
zarzet 8ed4465776 feat(motion): Material press squish and seek wave use the motion presets
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.
2026-11-22 00:46:25 +07:00
zarzet bd4161d365 feat(motion): exits follow each style and Animation speed
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.
2026-11-22 00:46:25 +07:00
zarzet 408f148545 feat(player): full-screen player slides on a spring in both styles
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.
2026-11-22 00:46:25 +07:00
zarzet beab979c0a feat(motion): shared Liquid Glass springs and style-aware sheet 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.
2026-11-22 00:46:25 +07:00
zarzet 43112cb9e5 feat(home): recommend songs outside the Library
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.
2026-11-22 00:34:47 +07:00
zarzet f4c9766bf0 feat(home): keep Home personal and open Search on the extension feed
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.
2026-11-22 00:34:47 +07:00
zarzet 96dbcc073f ci: generate localizations and build the smaller packages
Every job that analyzes, tests or builds runs scripts/gen_l10n.dart
after pub get. Release builds of iOS, macOS, Linux and Windows are
obfuscated as Android already was, and their symbol files are kept as
artifacts for 90 days. iOS builds pass MORNYE_MOBILE.

macOS releases one DMG per architecture (arm64 and x64) instead of a
universal one; the in-app updater already picks an architecture-named
DMG. The unsigned IPA loses the assets iOS never loads and is zipped
at the highest level.
2026-11-22 00:21:31 +07:00
zarzet 690da56e35 build(desktop): smaller desktop packages
- FFmpeg ships as shared libraries beside ffmpeg and ffprobe instead
  of two static programs that each carried every codec: the
  lgpl-shared builds on Windows and Linux (RUNPATH $ORIGIN on Linux)
  and a shared build on macOS without video decoders the app does not
  need.
- Bundles leave out assets the platform never loads: web helper
  files, glass shaders of other renderers and the licenses of
  Android-only libraries. The Skia glass shaders stay, as Linux runs
  without Impeller on NVIDIA.
- Runners compile for size, and Linux strips its libraries except
  libapp.so and the Flutter engine.
- Tighter compression: zstd for the AppImage, xz for the deb, LZMA2
  ultra for the installer, the highest zip level, and no .pdb or
  import libraries in the Windows zip.
- package_macos_dmg.sh packages a single architecture on request.

Untested here: needs a desktop build on each platform.
2026-11-22 00:21:30 +07:00
zarzet e121f52bdc build(apple): size settings for release builds
Release configurations of the iOS and macOS runners and of their pods
compile for size (-Osize, -Os), use thin LTO, strip dead code and
strip symbols after linking. Pods keep their global symbols: both
Podfiles build them as dynamic frameworks, whose classes the app
links against.

Untested here: no iOS or macOS release build ran with these settings.
2026-11-22 00:21:30 +07:00