4745 Commits
Author SHA1 Message Date
zarzet c4a1c7b812 chore: merge upstream AltStore source update 2026-11-19 15:30:13 +07:00
zarzet bdd8be35b2 feat(profile): show the listener's record, taste and collection
The profile row of Settings opened a form for the name and the photo and
nothing else. It now opens a profile: the avatar and name with one line
for the taste and the month listening began, the song in the player, and
what the listening record and the Library hold.

- All time: listening time, songs and artists played, listening days, the
  current and the longest streak.
- Last 30 days: the time, the change against the 30 days before, a bar
  per day and the artists first heard.
- Music taste: the genres the listening time goes to. Genres come from
  the Library; a played song is matched by title and artist, because a
  record carried over from another device knows songs by other paths.
  Shares are of the time whose genre is known.
- Listening habits: time by weekday, the favorite and the biggest day, an
  ordinary listening day and the song replayed most in one day.
- Top artists, albums and tracks, and the collection: songs, albums,
  genres, loved songs, playlists and favorite artists.

With Record listening off only the collection shows. The form moved to
its own page behind Edit profile and returns to the profile on Save.
2026-11-19 15:28:12 +07:00
zarzet ec87f36561 feat(authenticity): draw the checked songs on one chart, a color per song
Checking several songs showed each spectrum only inside its own report,
all in the same color, so songs could not be compared at a glance. Once
two songs are read the sheet now draws their average spectra on one chart
above the list. Each song has its own color, shown as a dot before its
title in the list and used for the spectrum in its own report.

Eight colors are told apart reliably, also with color-blind vision, on
the light and dark surfaces; songs past the eighth share the outline
color. A song keeps the color it got when it was read, and a song that
could not be read takes none. Songs with different sample rates share
the frequency axis of the highest one.
2026-11-19 15:28:12 +07:00
zarzet 9b2c9d6ecc fix(equalizer): end the preset row with its reset and menu buttons
The Save preset button sat in a Flexible beside a Spacer. The two halved
the row's free width and the button used only a little of its half, so on
a wide page the reset and menu buttons stopped mid-row. The button now
takes the room up to them and keeps its own width at the start.
2026-11-19 15:28:12 +07:00
zarzet 384f7eeef0 fix(settings): give every row of a mixed group its own connected surface
In the Material style a Settings group split into connected rows (2dp
gaps, tight inner corners) only when every child was a SettingsItem,
SettingsSwitchItem or ListTile. One custom row, such as a slider or a
segmented choice, dropped the whole group back to a single plain card.
"Volume and transitions" and "Autoplay from your Library" on the
Playback page looked unlike every other section for that reason, and so
did other groups holding a row wrapped in a builder or its own widget
(audio output, headphones, the paired devices of Link, scrobbling
accounts).

A group now decides from its children: several children are rows,
custom ones included, unless a SizedBox or Divider among them shows a
hand-built form, which keeps its card. A single custom child, such as
the equalizer chart, keeps its card too. `connected` became nullable:
true and false still force either layout.

The metadata option sheets keep their previous layout, since their
entries carry their own dividers. The Logs filter drops its divider in
the Material style so its two rows connect like the rest.
2026-11-19 15:17:43 +07:00
zarzet d07568fef1 feat(home): show Library albums in On repeat's place without a listening record
A tester turned "Record listening" off and still saw On repeat on Home.
The shelf reads the last four weeks of the statistics and never looked at
the switch, so songs recorded earlier stayed until they aged out. Tapping
one then started a queue of the shelf, which read as an old queue coming
back.

With the switch off, the played shelves (On repeat, and Recently Played
in the Mornye style) are now empty and do not read the statistics. The
record itself is kept, so they return when the switch goes back on.

So Home keeps its number of sections, On repeat's place is taken by
"From your Library": ten albums of the Library, picked anew each day.
Each album gets its place in the day's order from a stable hash of the
day and its key, so a download landing mid-day swaps one cover at most
instead of reshuffling the shelf. A Library of more than 300 albums is
read through a window that moves with the day. Choosing a cover opens
the album. The shelf is read only while the switch is off.
2026-11-19 15:06:48 +07:00
zarzet ddfbe4f5ec revert(linux): stop preferring X11 over Wayland
This reverts commit a880f221f.

The window that is black with the page shifted into its lower left is a
Flutter 3.50.0 engine bug in the compositor (flutter/flutter 195885): the
layer offset is wrong whenever the driver's blit is not used, as with the
NVIDIA driver. The X11 renderer and the Wayland renderer both draw through
that compositor, and the same window is reported on X11, so preferring X11
did not reach the cause while it cost Wayland users native scaling. The
engine fix is on the stable branch for 3.50.1.

Refs mornyeapp/Mornye-Desktop#38
2026-11-19 01:37:50 +07:00
zarzet a3e88bbf01 fix(linux): use the system unwinder for every library in the process
The Flutter engine exports ten entry points of an unwinder of its own.
Libraries loaded after it bound those to the engine and the rest, such as
_Unwind_GetCFA, to libgcc_s, and the two do not share a context. The first
Lua error in the system libmpv's LuaJIT ended the app with a segmentation
fault (at start, on a song change, on repeat), and a C++ exception in a
system library ended it with an abort.

The runner now lists libgcc_s ahead of the engine, so later libraries find
it first. As a check behind that, main() looks up which library answers
for _Unwind_RaiseException and, if it is still the engine, starts the app
once more with libgcc_s preloaded, then gives programs it starts the
environment it was given.

Not compiled or run on Linux yet.

Refs mornyeapp/Mornye-Desktop#37, mornyeapp/Mornye-Desktop#40
2026-11-19 01:36:23 +07:00
zarzet aa9072a9bf fix(lists): keep a dragged row under the finger when the interface is scaled
Flutter's reorderable lists place the dragged row in the overlay by screen
positions. With Interface size off 100%, or on a tablet, where the app
scales itself, the overlay's pixels are not screen pixels, so the row was
drawn up and to the left of the finger (at 85%, about 15% of the finger's
distance from the top left corner), far enough to push its cover off the
screen.

ScaledDragProxy wraps the dragged row and moves it to where the finger is,
from the overlay's own scale; it does nothing at 100%. It follows the row
back to its place on a drop as well. Every reorderable list uses it: both
queues, playlist and collection order, album track order and the two
provider priority pages.
2026-11-19 01:28:27 +07:00
zarzet cb30e89d83 fix(player): a touch that outlives the player no longer leaves a black screen
Every touch on the full player ends in a call that settles the page back
open. When back closed the player while a finger was still down (a back
swipe, or a second finger), that call arrived after the pop and animated
the popped route back onto the screen. The navigator no longer counted it,
so the close button and back did nothing, and dragging it down popped the
page below it instead: the app shell, which left a black screen until the
app was force stopped.

The route now ignores drag and back-gesture calls once it is popped, and a
drag only ever pops the player itself.

Fixes #918
2026-11-18 22:13:25 +07:00
zarzet af3576118e test(playback): pass the USB rate cap through the measured deck
The pipeline performance test wraps a deck to time its calls. Its
setFileSource override did not take usbMaxSampleRate, which the deck
interface gained with the DAC rate cap, so the file no longer analyzed.
2026-11-18 22:01:20 +07:00
zarzet 30ec85296b fix(usb): convert when the endpoint is too small, and queue 1.5 s at any rate
A DAC limited to 48 kHz has an endpoint too small for 96 kHz. That check
runs first and was classed as an unsupported DAC, so the song went to
Android's mixer instead of being converted. It now counts as a refused
format and the next rate is tried, without touching the DAC.

The output queue held 200 ms or 256 KiB, whichever is more: 1.5 s for a
CD-rate song but a third of a second at 96 kHz in 32-bit, so a short stall
of the source thread (another app opening) cut high-rate songs only. It
now holds 1.5 s at every rate. Pause and seek still flush it at once.
2026-11-18 21:59:04 +07:00
zarzet a880f221fe fix(linux): prefer X11 over Flutter 3.50's Wayland renderer
Flutter 3.50 presents frames on a Wayland subsurface. On some compositors
the window stays black or shows a misplaced part of the page. Through X11
(XWayland on a Wayland session) GTK draws the frame as it did before.
Wayland is still used when no X server answers, and GDK_BACKEND=wayland
asks for it first. Not compiled or run on Linux.

Refs #925
2026-11-18 21:48:21 +07:00
zarzet f05bec0440 fix(desktop): do not crash while the window moves between screens
FlutterView.display throws a null check error when the engine has replaced
its display list and the view does not yet name one of the new displays,
which happens while a window is dragged on Windows. Every read of the
display now goes through displayOf, which gives null in that case.

Fixes #930
2026-11-18 21:48:21 +07:00
zarzet 96a285a959 fix(downloads): keep failed downloads in the queue after a restart
A failed download was dropped when the queue was saved, so after a restart
nothing showed which songs never arrived. It is now saved and restored as
failed, with its error, and is not retried on its own; retrying or
dismissing it works as before.

Fixes #931
2026-11-18 21:48:21 +07:00
zarzet da608a6638 fix(usb): never set a rate the DAC's clock does not list, and add a rate limit
A song whose rate the DAC refuses is already converted, but the DAC was
still asked for that rate first, for every song, and a DAC that takes the
request and then plays silence was never converted at all.

- Read the UAC2 clock's RANGE before setting a rate and refuse one it
  does not list, without touching the clock.
- Remember per connected DAC the rate a song rate played at, so the
  refused rate is not requested again on each song.
- Add "Highest sample rate" to the Direct USB settings (Automatic by
  default): rates above it are never requested and such songs are
  converted down.
2026-11-18 21:48:21 +07:00
zarzet c42659a123 feat(player): end still covers in a soft blur and one colour on Mornye
A still full-screen cover now ends the way moving artwork does: the cover
turns soft where it fades, then settles into one colour, the average of
its lower edge as the page shows it, shaded like the video's.

The cover does not change, so the soft band and the colour are drawn once
per cover and page size into a quarter-resolution image; no filter runs
on later frames, and every device shows it. The colour is read from the
small decode the mini player already holds and kept dark enough that the
controls' full dark layer still clears white labels on a white cover. It
sits inside the contrast sample, which then reads the colour the labels
really sit on. A new cover's glow fades in over the previous one.
2026-11-18 21:44:59 +07:00
zarzet ee3ed7d0ad docs(readme): shrink the logo and show 5.4 screens
Show Library, Now Playing, Lyrics and Equalizer from 5.4 in light and
dark, taken from a demo library with generated songs and covers, and
draw the logo at 400 px so it sits closer to the badges below it.
2026-11-18 21:41:04 +07:00
zarzet 208bd75696 feat(usb): resample a song whose rate the DAC refuses
A DAC that tops out at 48 kHz refused 96 kHz songs, so they fell back to
Android's mixer and played through a DAC still set to the low level the
direct driver leaves it at, which sounded like silence.

Direct USB now tries the other standard rates when the DAC refuses the
song's own: lower rates first, the song's own family ahead of the rest,
then higher ones. The song is converted with a Kaiser windowed sinc
polyphase filter (130 dB stopband, passband to 0.907 of the lower
Nyquist), with triangular dither for a 16-bit output. The status line
names both rates and Audio info no longer calls such a song bit-perfect.

DSD is never converted, and a DAC is asked at most four times.
2026-11-18 01:00:13 +07:00
zarzet c6d65ccdae fix(logging): log every reason a song skips the native USB output
Refusals without a detail (no DAC, permission declined, cancelled) and
platform errors left no line, so a log could not tell why a song played
through Android's mixer.
2026-11-18 00:40:24 +07:00
zarzet da5c5ec0ab fix(linux): render without Impeller where the NVIDIA driver is loaded
Flutter 3.50 draws Impeller frames into a multisample renderbuffer with
no texture when the driver has no implicit multisample extension, and
composites drivers on its no-blit list (NVIDIA, Vivante, ARM) by drawing
that missing texture, so the window stays blank. Flutter 3.47 always gave
the frame a texture and blitted it.

MORNYE_IMPELLER=1 or =0 overrides the choice.
2026-11-18 00:36:59 +07:00
zarzet cff77a0dbf fix(desktop): keep the output open across a gapless song change
The load hook of the queued song set gapless-audio back to no before mpv
had decided whether that song keeps the open device, so the device was
closed and reopened at every song change. The libmpv build used on
Windows closes it without playing what is still queued, which drops the
end of the previous song.

The option now goes back to no once the queued song has started.
2026-11-18 00:35:44 +07:00
zarzet f4cc3866a2 fix(about): describe Amonoman as app manager and moderator
The logo credit no longer matches the role.
2026-11-18 00:35:44 +07:00
zarzet f51427bc48 fix(motion): keep the badge bump's height at every Animation speed
The push of the Mornye badge was measured once, on a spring that already
followed the Animation speed, and then scaled again: after a restart with
the speed changed the bump was about twice or half its height. The push is
now measured on the spring in use, once for each style and speed.

With USB bit-perfect output on, every song now logs whether the USB output
was requested for it and what kind of source it has, so a log shows which
songs go through Android's mixer and why.
2026-11-17 21:33:30 +07:00
zarzet 87ab865bc1 fix(logging): say where an uncaught error happened and when USB output is skipped
An uncaught error's log line now ends with the first frames of its stack:
a tester's export held two null-check errors with nothing to trace them
by. A song that streams while USB bit-perfect output is on logs that the
USB output is not used for it, which a report of songs losing exclusive
output could not show.
2026-11-17 21:21:15 +07:00
zarzet a55069fc1f feat(appearance): add an Animation speed setting
Settings > Appearance > Animation speed plays the app's own motion from
half to twice its designed speed (issue 916 asks for faster navigation).
The motion presets, page pushes and pops, the player's opening and
closing, the tab switch and the springs a released drag settles on all
follow it. Lyrics and the seek bar keep time with the song, reduced motion
still wins, and the framework's built-in component motion is unchanged.

The default is the designed speed, where every preset is returned as it
was.
2026-11-17 21:21:15 +07:00
zarzet c832fa191d fix(android): keep the player widget working before Android 12
A widget may call View.setAlpha only from Android 12. On older versions
the call failed the whole widget and crashed its settings screen (seen on
Android 9). There the two images of a disabled button are dimmed instead.
2026-11-17 21:04:48 +07:00
zarzet d2584e5be8 fix(desktop): give the audio device back when the app quits
Nothing stopped libmpv when the window closed, so the process ended with
the stream open. With exclusive output on Windows the device was reported
to stay silent after that until it was plugged in again. A quit request,
and the quit for an update, now stop every libmpv deck and wait until its
output is closed.

The audio output's own lines (device period, buffer, format, underruns)
now reach the log, for reports of crackling in exclusive mode.
2026-11-17 19:29:47 +07:00
zarzet 6b5b2ddc71 fix(settings): join priority and network connection rows into one list
In the Material style the provider priority lists (downloads, metadata,
lyrics and its Disabled section) drew every row as its own rounded card
8dp apart, and the network storage page put each connection in a group of
its own. Priority rows now form one connected run, 2dp apart with large
corners only at its ends; Mornye keeps its separate rows. Connections are
rows of one group in both styles.
2026-11-17 18:04:09 +07:00
zarzet f7a16cc24d fix(library): join mix and search song rows into one connected list
In the Material style the mix page and the Library search drew every song
as its own filled card with a gap between rows. They now form one run, 2dp
apart with large corners only at its ends, as the Library song lists do.
A search run carries on across loaded pages and ends at the last row shown.
2026-11-17 17:56:39 +07:00
zarzet 1e5a4c2882 test(library): give the mixes history fixture the origin file column
The shadow check has read history.origin_file_path since network songs
could be saved offline, so the two paging tests failed on a fixture table
without it.
2026-11-17 17:56:39 +07:00
github-actions[bot] 3ca4617287 chore: update AltStore source to v5.4.0 2026-11-17 09:32:29 +00:00
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.
v5.4.0
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 cadc444288 test(motion): follow the Mornye selector's pill under reduced motion
The selector moved from AnimatedAlign to the shared selection pill in
the motion pass; the test still looked for the old widget.
2026-11-17 13:54:08 +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