Commit Graph
3643 Commits
Author SHA1 Message Date
zarzet a155dc5c80 perf(shell): read the keyboard inset without a dependency on back press
The back handler read the insets through MediaQuery.viewInsetsOf on the
shell context, so the first back press at a tab root made keyboard frames
rebuild the shell again. It now shares the scroll observer's lookup.
2026-10-23 23:52:25 +07:00
zarzet f4cc5a6131 perf(shell): stop rebuilding the shell on every keyboard frame
The shell read the view insets in build, so each keyboard animation frame
rebuilt the tab navigators and the bottom bar and re-ran the service setup
in didChangeDependencies, including a method-channel call. The insets are
now read by the bottom bar and the scroll observer, and the setup reruns
only when the localizations or the locale change.
2026-10-23 23:52:25 +07:00
zarzet 22d73faa11 refactor(pages): drop the title flip rebuild opt-out from the header mixin
Every collapsing header screen now hands showTitleNotifier to its header,
so the setState path and its per-screen opt-outs are dead.
2026-10-23 23:45:04 +07:00
zarzet e3c7b3714b refactor(library): share the selection bar toggle in the library folder
The folder page builds its bar through SelectionModeMixin.buildSelectionBar
like the album and playlist pages, and builds its id list once per build.
2026-10-23 23:41:29 +07:00
zarzet 23c448da80 refactor(library): build the album selection bars with LibraryTrackSelectionBar
The downloaded and local album pages hand-built the same bar. A new
albumDelete flag keeps their full-width desktop delete and the downloaded
album delete labels, so the bars render as before.
2026-10-23 23:39:30 +07:00
zarzet 8d1a5f3de5 chore(library): drop the unread playlist id from the folder track tile
The tile never read it; the screen keeps its own playlist id.
2026-10-23 23:32:21 +07:00
zarzet 9a4fd4ccb7 perf(library): rebuild only the toolbar title when local collections flip it
The downloaded album, local album and library folder pages now hand the
mixin's title notifier to their header, so crossing the collapse threshold
no longer rebuilds the whole page mid-scroll. No importer of the screens
re-export of the mixin remains, so it is removed.
2026-10-23 23:31:31 +07:00
zarzet 913b0cc796 refactor(settings): resolve the library dialogs' error fill in the dialog
Library clear and remove folder built their error button style inside the
dialog before the migration; errorConfirm restores that.
2026-10-23 23:22:20 +07:00
zarzet 61be03eb70 test(settings): keep a page test for the choice sheets
The migration comparison test copied the old dialogs and sheets and pinned
nothing about the pages once merged. A shorter test opens the four choice
sheets from the library and lyrics pages and checks their options, icons,
selection and the saved setting in both styles.
2026-10-23 23:22:20 +07:00
zarzet cd4900f8a9 fix(settings): read the restore heading style inside the dialog
The heading's text style came from the page theme after the move to
showAppConfirmDialog; a Builder resolves it from the dialog again, as the
old dialog did.
2026-10-23 23:22:20 +07:00
zarzet 0a53c78dda test(settings): pump the cache page and check its rows
The rows now come from one builder; the test pins each row's icon, title,
size line and divider and the clear confirmation, and passes on the old
page too.
2026-10-23 23:22:20 +07:00
zarzet f8c56b1b36 test(settings): compare the migrated dialogs and sheets with the old ones
Each confirm dialog and choice sheet the settings pages used to write by
hand is rebuilt with its old flags and checked against the shared helper
call, in both styles.
2026-10-23 23:22:20 +07:00
zarzet 207c399b7e refactor(settings): build the cache rows from one helper
Every clear row repeated the same subtitle, trailing button and confirm
wiring, and four rows repeated the size label. One row builder and one
size label replace them; the two confirm dialogs share the shared helper
and the overview drops its unused path fields.
2026-10-23 23:22:20 +07:00
zarzet 3687e183e3 refactor(settings): use the shared section slivers and confirm dialog
The remaining settings pages and the concert set list build their header
and group pairs with settingsSectionSlivers and their yes/no dialogs with
showAppConfirmDialog. The about page also drops the unused translator
language field.
2026-10-23 23:22:20 +07:00
zarzet a25faea8a9 refactor(settings): move library and lyrics pages to shared sheets and dialogs
The library and lyrics pages now build their single-choice sheets with
showAppChoiceSheet and their confirm dialogs with showAppConfirmDialog, so
the private _AutoScanOption row and the write-only provider id go away.
2026-10-23 23:22:20 +07:00
zarzet b9358b8158 perf(mornye): resolve the cover colour when the mini player changes track
The Mornye full player shades itself from the cover's source colour, which
it only started resolving inside its opening slide. Starting the same job
when the mini player shows a track lets the player open on its final colour.
2026-10-23 23:22:10 +07:00
zarzet 6920d4b8c6 perf(material): move the mini player wave on the 30 Hz decorative clock
The package's wavy indicator derives its phase from a ticker that asks for a
frame on every display refresh while music plays. Painting the same indicator
from a DecorativePhase keeps its look and stops it while paused, hidden or in
the background.
2026-10-23 23:22:10 +07:00
zarzet 22276c3593 perf(mornye): stop the mini player marquee after two passes on liquid glass
Every marquee frame re-filters the glass chrome around the mini player, so
an overflowing title kept liquid devices drawing for the whole session. The
liquid level now rests after the same two passes as frosted and flat.
2026-10-23 23:22:10 +07:00
zarzet cbe0f64177 test(player): check the shared motion clock in now playing rows
With the 30 Hz clock no frame is pending between ticks, so frame scheduling no
longer shows whether the glyph moves. The tests now check whether the shared
decorative clock is running.
2026-10-23 23:22:02 +07:00
zarzet 197cc2a1a7 perf(player): hold decorative motion while the app draws no frames
A vsync ticker never advanced in the background, but the 30 Hz timer kept
waking the UI isolate while music played with the app hidden. The shared
clock now runs only while frames are enabled and resumes from the held phase.
2026-10-23 23:22:02 +07:00
zarzet 3686095ad8 perf(material): cache the full-screen cover blur at quarter resolution
The opt-in full-screen cover style re-ran a sigma 48 blur over the whole
screen on every frame while the seek wave moved. The surface, blurred cover
and tint are now drawn once per cover, size and surface colour into a
quarter-resolution image with the sigma scaled to match.
2026-10-23 23:22:02 +07:00
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