Commit Graph
3622 Commits
Author SHA1 Message Date
zarzet 8985d7fb45 perf(player): cap decorative playback motion at 30 Hz
The current-row equalizer and the Material seek wave ticked every vsync for
the whole listening session, forcing full-scene rasterization at the display
rate. Both now advance from one shared 30 Hz phase clock that runs only while
a phase is running, with the same waves, loop lengths and pause rules.
2026-10-23 23:22:02 +07:00
zarzet 60913592be fix(desktop): show a short profile label in the sidebar
Without a profile name the sidebar account row showed "Set up your
profile", which the narrow sidebar cut off mid-word in longer languages:
Russian read as "Настройте сво…", which a user took for an unknown
abbreviation. The row now shows the short Profile title, which fits in
every language, while screen readers still hear the full invitation.
2026-10-23 23:21:55 +07:00
zarzet 911890a39c refactor(dialogs): resolve the error confirm color inside the dialog
The duplicate review and extension uninstall dialogs read the error color
from the dialog's own theme, so it followed a theme change while open.
errorConfirm keeps that, and the one-time migration test is dropped.
2026-10-23 23:14:57 +07:00
zarzet ba7be88c88 refactor(playback): share the library queue playback path
playLocalLibraryQueue and playHistoryQueue ran the same filter, start index
and player-mode branch; they now go through playMediaQueue, which makes
MusicPlayerController.playLocal and playHistory unused. playLocalPath also
loses its never-passed track parameter.
2026-10-23 23:14:57 +07:00
zarzet b1b7fc9d5d refactor(library): derive unified item quality in one call
buildDisplayAudioQuality already applies the bitrate, then bit depth and
sample rate ladder the two factories spelled out. Also drop ten getters on
UnifiedLibraryItem that nothing reads.
2026-10-23 23:14:57 +07:00
zarzet 94372f54e6 refactor(metadata): share one lyrics fetch body
The online fetch and the Load Lyrics fetch were the same code apart from the
embedded-lyrics check, which is now a flag on a single method.
2026-10-23 23:14:57 +07:00
zarzet 7f323e88b1 refactor(library): move confirm dialogs to showAppConfirmDialog
Thirteen hand-written cancel/confirm dialogs in the batch actions, track
metadata, setup, statistics, extension and queue selection code now use the
shared helper with the same flags and styles. Every caller only acted on a
true result, so the helper's false-on-dismiss keeps their behavior.
2026-10-23 23:14:57 +07:00
zarzet 87ea8948c6 fix(repo): keep the store button beside the text when the title fits
Store rows moved their button under the description whenever the text
column was under 360 logical pixels, which put it below on every phone.
The row now measures the widest store button in the current language
and text size and keeps it beside the text unless it would leave the
title under 140 logical pixels. English phones get the side-by-side
layout back, while long labels such as Russian still stack (issue #694).
Rows and the loading skeleton share the width, so a list lays out alike.
2026-10-23 23:14:38 +07:00
zarzet 32bf54d6ff fix(library): keep current row text readable on cover fills
Screens colored a row's subtitle and track number from the app scheme,
outside the row, so the current track's artwork fill could hide them: a
black and white cover fills the row with a light container in dark
themes, where onSurfaceVariant nearly vanishes. TrackCard now gives
uncolored leading and subtitle text the row's supporting color, which
follows a filled row's content color, and re-roots the trailing
controls' content roles onto the fill. The library, album, playlist,
folder and search rows leave their text uncolored or read it inside the
row; badges keep their own surfaces.
2026-10-23 23:14:38 +07:00
zarzet 334db07283 fix(player): give the phone navigation bar the cover scheme
The Material mini player took the playing cover's scheme while the
navigation bar under it kept the app's, so the bottom chrome changed
color halfway down. The bar, its indicator and the shared backdrop now
take the same artwork scheme as the mini player, and return to the app
scheme when nothing with readable artwork is playing. Only this scope
listens to the track, so a cover change does not rebuild the shell.
2026-10-23 23:14:38 +07:00
zarzet e3b8e28072 refactor(player): make the metadata title always ellipsize
All three PlayerMetadataTitle callers passed TextOverflow.ellipsis, so the
parameter goes and the widget uses it directly.
2026-10-23 23:08:48 +07:00
zarzet e624e062a7 refactor: drop parameters every caller leaves at the default
_stopConnectivityMonitoring always cleared the Wi-Fi pause, LibraryDatabase.getAll
was never paged and MethodChannelBackend never received other event channels.
2026-10-23 23:08:48 +07:00
zarzet 3ab9956a75 chore(screens): drop write-only private widget data fields
_RewindMessage.background and _FilterContentData.historyItems were stored
but never read.
2026-10-23 23:08:48 +07:00
zarzet 5d8c22a452 chore(services): drop write-only result and config fields
Duplicate entries, donation config, spectrogram, audio route, cover save,
share and redownload results carried fields that nothing reads; the
duplicate query no longer selects the unused album name.
2026-10-23 23:08:48 +07:00
zarzet a6db7fe878 chore(services): remove unused service members and write-only fields
UpdateInfo.publishedAt/isPrerelease, UpdateChecker.currentVersion,
BackupBundle.isEmpty, LocalLibraryItem.matchKey and two unused desktop
debug setters are never read.
2026-10-23 23:08:48 +07:00
zarzet 671b712485 chore(providers): remove unused provider members
MusicPlayerController.play/pause/stop, PreviewPlayerState.progress, the
manual extension cleanup, setUseExtensionProviders and the repo store's
unused category list, clearError and write-only fields have no caller.
2026-10-23 23:08:48 +07:00
zarzet 02232c76ac chore: remove unused widget and utility members
AppIconButton.outlined, LogBuffer.export, TtlCache.remove/clear and the
translationThreshold constant have no caller in lib or tests.
2026-10-23 23:08:48 +07:00
zarzet 156b976977 refactor(settings): build the plain-page glass group from MornyeGlassPanel
MornyeGlassPanel now forwards samplesBackdrop, so the group no longer needs
its own Consumer around MornyeGlass.
2026-10-23 23:00:46 +07:00
zarzet 3c11d9936f refactor(convert): share the batch convert choice section
The six option sections repeated the same card, label and chip wrap,
differing only in values, labels and the selection update.
2026-10-23 23:00:46 +07:00
zarzet 24c8b76215 refactor(search): loop the collection result sections
The artist, album and playlist sections and their missing-source guards
differed only in data, so one loop and one guard helper replace the copies.
2026-10-23 23:00:46 +07:00
zarzet 2f6e19eb57 perf(mornye): skip the backdrop pass for the extension overview glass
The overview card scrolls over the plain page background, where sampling
the backdrop only filters a flat color.
2026-10-23 23:00:46 +07:00
zarzet c22df6c5f5 refactor(extensions): share the feature row and priority link widgets
The hook and quality rows differed only in icons, extra lines and pill
colors, and the three priority links only in their kind.
2026-10-23 23:00:46 +07:00
zarzet 0be275a3b1 chore: remove unread extension manifest model fields
The health check, hook, setting and track matching fields were parsed from
backend JSON but never read, and quality options only need a settings count.
2026-10-23 23:00:46 +07:00
zarzet 7a92132798 perf(mornye): fade full-bleed artwork without a shader mask
The ShaderMask rendered the artwork offscreen on every raster frame, at video
rate for motion artwork. Painting the animated background gradient over the
artwork with the inverse fade as alpha composites the same pixels within
8-bit rounding; only the tilted gradient of the lyrics transition still
uses a small layer.
2026-10-23 22:55:15 +07:00
zarzet c7503d9f0f perf(mornye): skip the backdrop read on plain-page glass
The Library search fields, the Install extension panel and the band count and
theme mode pickers sit on a flat page or an opaque group card, so filtering
that backdrop costs a read for an identical result. They now keep the tint and
rim like the Home and Settings fields.
2026-10-23 22:52:33 +07:00
zarzet a29a5179c4 refactor(mornye): drop the MornyeGlass default constructor
Its last app callers went with the dead library chip row; the remaining test
callers use MornyeGlass.navigation, whose defaults match.
2026-10-23 22:52:33 +07:00
zarzet 4707feeaa3 refactor(library): share the collection selection bar toggle
Album, playlist and artist pages each rebuilt the same select all toggle
around SelectionBottomBar; SelectionModeMixin.buildSelectionBar now does it
once. The Library selection bar's mobile delete reuses
DestructiveSelectionButton with its own label.
2026-10-23 22:49:09 +07:00
zarzet cdb250c4ed refactor(library): share the album and playlist header action row
Album and playlist headers each spelled out the same love, download and add
to playlist buttons for desktop, Mornye and Material. CollectionHeaderActions
builds them once; the per-page icons, tonal download and callbacks are
parameters.
2026-10-23 22:49:09 +07:00
zarzet 04277f40bd perf(pages): rebuild only the toolbar title when it flips
The collapsing title flip used setState, rebuilding the whole album,
playlist, artist or track metadata page mid-scroll. The mixin now keeps the
flag in a ValueNotifier that these headers listen to; screens that still read
the bool keep the page rebuild.
2026-10-23 22:49:09 +07:00
zarzet 4c80fe39df style(settings): keep the song.link regions as a const list
The packed split string saved only formatter-forced data lines and broke
the const, one-literal-per-code style used elsewhere. showAppConfirmDialog
also asserts that message and content are not both passed.
2026-10-23 22:45:10 +07:00
zarzet 101740d87b refactor(settings): move download, metadata and files pages to shared helpers
The pages now use settingsSectionSlivers, showAppChoiceSheet and
showAppConfirmDialog, the settings page and the download picker share one
quality label function, and the picker's service chip builds its icon once.
The song.link region codes are one split string instead of 183 lines.
2026-10-23 22:45:10 +07:00
zarzet 34442580bf perf(mornye): stop glass settings groups sampling the flat page
Glass settings groups scroll over the opaque page color, so their
backdrop blur filtered a uniform color every frame. They now keep the
glass tint without a backdrop pass, as the Home and Settings fields do.
2026-10-23 22:45:10 +07:00
zarzet 77ea16dc23 refactor(settings): share confirm dialog, choice sheet and section helpers
Two-button confirmations, single-choice settings sheets and header plus
group slivers were hand-written at every call site. showAppConfirmDialog,
showAppChoiceSheet and settingsSectionSlivers build the same trees, and
SettingsGroup's four inset wrappers become one.
2026-10-23 22:45:10 +07:00
zarzet 19d25eae57 chore(download): remove test-only DownloadQueueNotifier.updateProgress
Production progress flows through the native progress poller, so only tests
called it; the clearAll test now uses updateItemStatus for late progress.
2026-10-23 22:44:37 +07:00
zarzet 5700c9a87c refactor(download): pass AppSettings to the output folder builders
Every caller expanded the same settings fields into named arguments, so the
builders now read them from AppSettings; requeue resets, SAF publish result
parsing and the MIME switch are shared or shortened too. The settings matrix
test pins identical folder output.
2026-10-23 22:44:37 +07:00
zarzet a41e5d9b16 test(download): pin relative output folders for a settings matrix
Records every folder the builder produces across organization, structure,
flag and playlist combinations before the builders change shape.
2026-10-23 22:44:37 +07:00
zarzet 987040e556 chore(ffmpeg): remove unused FFmpegProbe.isLosslessAudioCodec
Its only caller was the removed FFmpegService facade; callers use the
audio_format_utils function directly.
2026-10-23 22:44:37 +07:00
zarzet a397cf0d74 refactor(ffmpeg): call the FFmpeg modules directly
FFmpegService only forwarded each call to FFmpegProbe, FFmpegMetadata,
FFmpegConversion, FFmpegDecryption or FFmpegReplayGain with identical
defaults, so callers now use those modules and the test-only markers move
to the owning statics.
2026-10-23 22:44:37 +07:00
zarzet 759d7ca488 docs(library): fold the collections JSON export comment
The comment left from the removed map export ran into the JSON export
description; merge them into one paragraph.
2026-10-23 22:43:23 +07:00
zarzet 8a6b774d9f chore(lyrics): move the active lyric reference into its test
Playback queries LyricTimelineIndex; the linear activeLyricIndices only served
as a test oracle. Scenario tests now exercise the production index directly.
2026-10-23 22:43:23 +07:00
zarzet d407d8b374 chore(library): remove the test-only collections map export
Backups embed the worker JSON fragment from exportLibraryCollectionsJson, so
the map export mode and its benchmark only served tests.
2026-10-23 22:43:23 +07:00
zarzet 17b210749f chore(backup): remove test-only legacy envelope helpers
New backups are written as archives; buildEnvelope and encode were only test
fixtures. The legacy restore test now spells out the old JSON envelope.
2026-10-23 22:43:23 +07:00
zarzet f19c3375a3 chore(motion): remove the test-only withMotionArtworkProxy wrapper
The artwork store starts and closes the proxy itself; the test now checks
that close releases the injected client and loopback server directly.
2026-10-23 22:43:23 +07:00
zarzet b696d38e75 chore(library): remove test-only single-item collection mutators
Production removes wishlist, loved, playlist and playlist-track entries through
the batch paths. Device benchmarks now use the production one-item calls as
their per-track baseline.
2026-10-23 22:43:23 +07:00
zarzet b882b01f32 chore(history): remove the unused streaming history restore
Backup restore goes through restoreFromBackupOperation with the native or
upsertBatch codec, so the streamed replaceAll path was only reached by tests.
The iOS restore test now drives the production operation with a seeded fake.
2026-10-23 22:43:22 +07:00
zarzet 86231be479 chore(library): remove unused collection JSON factories
Collections live in SQLite and backup restore feeds the raw maps to the
database, so nothing parses the old JSON shape; the picker summary dates
were also never read.
2026-10-23 22:43:22 +07:00
zarzet 9319d92198 chore(library): remove unused loadPlaylistTracks
Production reads playlist tracks through loadPlaylistTracksSnapshot and the
test fake keeps its own row helper, so the visibleForTesting wrapper had no caller.
2026-10-23 22:43:22 +07:00
zarzet 9917a76f08 test(mornye): find lyric blur snapshots by render object type
Looks the snapshot render object up by its class instead of a widget type
name string, and narrows the LyricBlur doc to the changes that actually drop
the cached image.
2026-10-23 22:43:00 +07:00
zarzet 4815c26bc8 perf(mornye): draw settled lyric blurs from a cached image
With liquid glass every defocused lyric line ran its own blur pass on each
composited frame, all song long while word-synced lyrics play. A line whose
blur has settled is now rasterized once and drawn as an image until it
changes; lines still easing, or rebuilt, blur live as before.
2026-10-23 22:43:00 +07:00
zarzet 72e2b3b1ba perf(mornye): decode the details sheet cover at thumbnail size
The 70 dp artwork in the Mornye details sheet decoded the original cover,
up to about 36 MB for a 3000 px image. Decoding at the display size times
the device pixel ratio keeps it sharp without the large transient bitmap.
2026-10-23 22:43:00 +07:00