Commit Graph
71 Commits
Author SHA1 Message Date
zarzet 6fa5e52beb perf(theme): build the first frame with the system palette
DynamicColorBuilder asked for the wallpaper palette (or the desktop
accent) in its first build, so the first frame used the seed scheme and
MaterialApp then animated the whole theme for 300 ms into the palette,
rebuilding every Theme.of dependent about 18 times during the busiest
part of startup. The owner approved building the first frame with the
final theme, which removes that launch fade.

main now asks once the Activity attaches, alongside the other startup
calls, and waits at most 100 ms for the answer before runApp; it is
normally in by then. The wrapper builds its first frame with that answer
through a provider override; a late answer still applies with the fade,
and without a launch request the wrapper asks itself as before. The
request keeps DynamicColorBuilder's order and schemes.

Every Material launch also ran a second, invisible 300 ms fade: the
custom font provider's first answer rebuilt the wrapper, and two builds of
the same settings never give equal ThemeData. The wrapper now watches only
the font family it reads.

Host test with MaterialApp's 300 ms theme animation: the first frame now
has the palette, with 1 theme build and 1 Theme.of reader build instead
of 2 and 20 over 21 frames; with no dynamic color 1 and 1 instead of 2 and
20. Theme changes after launch still animate.
2026-10-31 22:11:10 +07:00
zarzet 800248c0f9 fix(covers): keep a missing local cover out of the error handler
The metadata cover prewarm now also runs for local paths and file URIs,
so a stale path reported an image error that the app logs as an uncaught
error and stores as the crash snapshot. Swallow local prewarm failures
as the backdrop prewarm already does; http failures still report.

Both prewarm helpers now build the provider once and return when the
form has no image, so a stateful network:// lookup cannot disagree
between two calls. Document that the network:// hook must read only an
in-memory index, since it runs during build.
2026-10-30 04:17:07 +07:00
zarzet 69c701ad6c refactor(covers): read every stored cover form through one helper
Cover strings reach the UI as absolute paths, file:// URIs (MediaItem
artUri values saved into listening statistics), http(s) URLs and
content:// URIs, and each primitive parsed them itself.
LocalOrNetworkCoverImage sent every non-http string to File(url), so
file:// covers failed silently; precacheCoverImage skipped local files;
CoverPalette keyed a file:// URI and its path separately and never
decoded the URI.

coverFilePath, coverImageSource and coverImageProvider in
cached_cover_image.dart now map a stored string to its file, its decode
source and its image, keyed like the widgets' own decode. PlayerArtwork,
LocalOrNetworkCoverImage, both precache helpers, CoverPalette,
PlayerArtworkTheme and LocalLibraryArtworkBuilder go through them, so
the Mornye palette callers pass artUri as it is. network:// covers have
one hook in coverFilePath for the cover store. content:// and other
forms still show the placeholder.
2026-10-30 03:53:32 +07:00
zarzet 1f12076765 feat(search): recognize songs playing nearby
A microphone button in the empty search field listens to the room and
names the song, on phones and desktop.

- The audio fingerprint and the Shazam request run in Rust behind a new
  recognize_song data job, so every platform shares one path.
- Listening sends the audio so far at 4, 8 and 12 seconds and stops at
  the first match; quiet or short clips are reported instead of sent.
- A match can be played from the library (by ISRC, then title and
  artist), searched in Mornye, or opened in Shazam. Recent matches are
  kept in a local history.
- Android asks for the microphone only when listening starts; iOS and
  macOS gain the microphone usage description and entitlement. The Linux
  package recommends pulseaudio-utils for capture.
2026-10-26 01:33:56 +07:00
zarzet 1b8b2d48f8 feat(playlists): reorder tracks, create from folders, import files
Playlists had no way to change their order, and creating one always
started empty.

- Edit order opens a page where tracks move by their handle or a long
  press. The order is the added_at order, so a reorder restamps those
  values instead of adding a column, and Mornye Link carries it.
- Create playlist now offers an empty playlist, every track of one
  Library folder, or an imported M3U, M3U8 or CSV file.
- Imports match each entry to a local file by the tail of its path,
  then by ISRC or title and artist, and report how many matched.
  Unmatched entries keep the file's metadata so they can be downloaded.
2026-10-25 12:55:40 +07:00
zarzet 091efe2489 feat(link): add the Devices sheet and desktop actions on phones
The player and mini player open a Devices sheet with the desktop's
player, queue and downloads and handoff in both directions. Track
options, album and playlist headers and shared links offer Download or
Open on the desktop; desktop Library albums and tracks offer Save to
this phone. Strings in English and Indonesian.
2026-10-25 02:59:03 +07:00
zarzet 2defae21eb chore(palette): skip the unused sample copy and document the builder
The premultiplied buffer goes to the background job only when the host
quantizer needs it. The cache comment now covers failed readbacks, and the
theme README lists CoverSourceColorBuilder.
2026-10-23 19:21:28 +07:00
zarzet 82b10e71f8 perf(palette): read cover samples once and add a source colour path
Palette extraction now reads both pixel buffers from one decode and scores
the seed and the source colour in a single background job, instead of a seed
isolate plus a pixel loop on the UI isolate. resolveSourceColor gives
surfaces that only shade from the cover the same colour without quantizing
or building a colour scheme.
2026-10-23 19:21:28 +07:00
zarzet f2204b27b7 perf(mornye): remember Cupertino icon lookups
IconData overrides ==, so the switch tested up to 187 patterns in turn on
every icon build. A map keeps the first result per icon, which the switch
computes the same way each time.
2026-10-23 19:17:37 +07:00
zarzet 4127ac1e82 refactor(material): share expressive press squish and disabled fill
The button group and playback transport duplicated the press state and
squish spring, and two icon buttons repeated the disabled color pair. Also
drop three Material Symbols entries no icon in the app uses.
2026-10-23 19:17:37 +07:00
zarzet 11bfcaf404 perf(mornye): keep equal Mornye themes identical
MornyeTheme had no value equality and glass and settings variants were rebuilt
on every call, so any rebuild handed an unequal theme down and restarted the
app theme animation or notified whole pages. Artwork chrome variants are now
derived from the cached base theme instead of a full theme build.
2026-10-23 19:01:41 +07:00
zarzet 417f449b82 perf(theme): rebuild the app theme only for theme settings
Lyrics size and font names live in ThemeSettings but do not affect ThemeData,
so dragging the lyrics size slider rebuilt MaterialApp and its themes on every
tick. The equalizer is now kept alive with a listener instead of a watch, so
toggling it no longer rebuilds the app.
2026-10-23 19:01:41 +07:00
zarzet 11a9b9a4ec chore: remove redundant comments across the codebase 2026-10-22 01:41:09 +07:00
zarzet ead239623c Merge branch 'material/desktop-header-color' 2026-10-21 23:41:01 +07:00
zarzet 483aa5f50f feat(material): give desktop album and artist headers the artwork scheme
The phone album header already colors itself from its cover, but the
Material desktop header kept the app scheme, so album, playlist, folder
and artist pages on desktop lost the artwork accent the design rules ask
for.

The desktop detail header now scopes the cover scheme (the artist image
on artist pages) to the artwork and details beside it through
PlayerArtworkTheme, the helper the player surfaces already use, and
publishes it as the HeaderPalette. A cached cover shows its scheme from
the first frame, a new one moves the whole scheme at once on the effects
spring (or in one step under reduced motion), and black and white covers
get the neutral scheme. The toolbar, track rows and the rest of the page
keep the app scheme. The subtitle and artist actions are now built under
that scope so they read the header colors. Mornye is unchanged.
2026-10-21 23:40:38 +07:00
zarzet 007745f1c1 feat(material): round Material headings with a fuller Google Sans Flex
Replace the bundled Google Sans Flex (v4.004, weight axis only, 277,596
bytes) with a trimmed build of the official variable font v5.000 from
the Google Fonts repository (google/fonts, ofl/googlesansflex, commit
bd8f81dd). The weight (wght 1-1000), width (wdth 25-151) and rounded
(ROND 0-100) axes stay variable; optical size and slant are pinned to
their defaults (opsz 18, slnt 0) with the fontTools instancer. The new
file is 571,544 bytes. Its defaults are wght 400, wdth 100 and ROND 0,
and it covers every codepoint of the old file with the same features
(including tnum), vertical metrics and advance widths for text.

The font is licensed under the SIL Open Font License 1.1. Ship the
license as assets/fonts/GoogleSansFlex-LICENSE.txt and register it with
the license registry next to Inter's.

The Material text theme now gives the display, headline and title roles
ROND 100 when the bundled family is in use. Body and label roles keep
ROND 0 for crisp reading text and small labels. Only ROND is set, so
the engine still derives wght from each style's fontWeight. System and
imported fonts get no axes, and the Mornye style is unchanged.
2026-10-21 23:37:49 +07:00
zarzet 7d936c0f99 docs(theme): list the player artwork theme 2026-10-21 22:24:33 +07:00
zarzet 2e77f63fe6 fix(desktop): keep Space for playback next to button groups
M3EButtonGroup autofocuses its first segment. On desktop that took focus
from the shortcuts' idle node, so Space pressed the segment instead of
toggling playback on the Library songs and albums pages, in Settings rows
with a segmented choice and in the equalizer.

MaterialExpressiveScope can now keep its child from taking focus as it
mounts. The group's segments stay unfocusable until the mounting frame's
autofocus pass has run, then Tab and clicks reach them as before.

Also drops two unneeded imports from the songs table test.
2026-10-21 22:24:11 +07:00
zarzet a2391f66c5 Merge branch 'material/player-artwork-color' 2026-10-21 22:20:50 +07:00
zarzet 3fd2ca955a feat(material): color the player surfaces from the track's artwork
The Material full player, mini player, desktop player bar and desktop Now
Playing now take their ColorScheme from the current cover through a local
PlayerArtworkTheme, as DESIGN.md principle 3 asks. The app chrome around
them, and the downloads popover hosted in the bar, keep the app scheme.
The bar keeps its surfaceContainer tier, so resting chrome stays calm; the
play buttons use the cover's primary and onPrimary.

The scope shows a cached scheme on the first frame, keeps the previous
cover's scheme while the next one resolves, falls back to the app scheme
without readable art, and moves the whole scheme with one controller and
ColorScheme.lerp on the effects spring (a static swap under reduced
motion). Each cover change starts one palette job, shared through the
CoverPalette cache. With AMOLED on, the page background stays pure black.

CoverPalette gains an opt-in neutral scheme: a cover whose source color
has an HCT chroma of 12 or less gets a monochrome scheme instead of
Score's fallback blue or a muddy tint. The Material player and Material
headers (CoverPaletteBuilder) opt in; Mornye keeps the tonal scheme, so
its surfaces render as before.
2026-10-21 22:19:55 +07:00
zarzet bc6e2e7bac feat(material): give each surface role one meaning
Settings groups blended white or black over the page instead of using a
container tier, and search results, their skeleton and the About and
Donate cards copied that tone. Groups and grouped rows now use
surfaceContainer, so the tier alone separates them from the page and the
reduced motion card drops its outline.

AMOLED tiers keep the M3 dark tone steps around the container. The old
low tier sat almost on black, which would hide menus now that they use it.

Menus share the M3 Expressive standard skin: popup and anchored menus sit
on surfaceContainerLow with the control radius and 12dp rounded items,
matching M3EMenuPopup. Checked rows in the desktop context menu take the
tertiaryContainer selected fill.

Info cards and unselected choice chips use solid container tiers instead
of faded copies. Mornye renders as before.
2026-10-21 22:10:54 +07:00
zarzet d6602570f3 feat(desktop): tighten Material density for pointer input
Material desktop pages kept the phone metrics: 48dp touch rows, 56dp
row artwork, 16dp settings row padding, a 120dp collapsing header, and
lists stretched across the whole window. The selection bar was the
phone sheet with its drag handle, tap hint and two-line pill grid.

Register AppTokens.desktop for Material on desktop (M3 density -2 for
rows, row artwork and the page header; radii, motion and the 48dp
control target unchanged), lower the Material songs table row to 44dp,
and center Material lists past 1280pt (the M3 large window class plus
the rail) while Mornye keeps Music's full-width pane. The desktop
selection toolbar drops the handle and tap hint, lays its actions in a
wrapping row of 40dp buttons, and keeps the destructive action at its
own width.
2026-10-21 20:11:35 +07:00
zarzet a428b37879 feat(i18n): mirror layouts for right-to-left languages
Use directional insets, alignments, positions and borders so Arabic and
other RTL locales lay out from the right. Mornye chevrons use the
CupertinoIcons glyphs that match text direction, synced lyric voices
align to start and end, and transport controls, seek bars and progress
stay left to right as media timelines do.
2026-10-21 14:59:26 +07:00
zarzet 8fcc4183bb fix(desktop): switch theme styles without remounting the app
Mornye built its MaterialApp outside DynamicColorBuilder, so switching
styles remounted the whole app: its state was lost and, in debug builds,
two macOS menu bars briefly coexisted and tripped an assertion. The menu
bar also sits outside the reduced-motion hero wrapper now.
2026-10-20 19:38:05 +07:00
zarzet 37e21b5712 feat(branding): rename app and native backend to Mornye
Rename the Dart package, Android and iOS identifiers, Rust crates, native libraries, and Discord plugin. Preserve legacy data readers and compatibility aliases.

Update localized branding, documentation, artwork, build tooling, and release artifacts. Route Telegram release notifications to @mornyeupdates and link @mornyecommunity.
2026-10-20 12:00:44 +07:00
zarzet ba234d78ad fix(ui): align Material screens with the design guide
- Keep one accent container per group: neutral source, album, Atmos and
  extension badges, neutral Rewind card, secondaryContainer icon wells,
  theme roles instead of fixed teal, orange, amber and green.
- Drop row and sheet header dividers on Material; search results and
  their skeleton become a connected list with 2dp gaps.
- Use a solid errorContainer with onErrorContainer in ErrorCard, the
  crash banner and the URL notice; Weekly Releases and extension
  collections show ErrorCard with retry.
- Raise touch targets to 48dp for search sort, service chips, metadata
  quick select, copy rows, the queue drag handle and spectrogram chips.
- Use SettingsSegmentedChoice, AppChoiceChip and SettingsInfoCard where
  custom controls stood in, and a full-round text button shape.
- Remove nested cards in the tutorial, update dialog, file info path and
  lyrics status rows.
- Localize the verification paste action, start the Home search hint
  with "Search", and fix the invisible Find spinner on a disabled button.
2026-10-20 02:02:37 +07:00
zarzet c4cf56fb9b docs(theme): explain the Material and Mornye theme layer
Add lib/theme/README.md (UI-73): what Mornye is, which files form the theme layer, how DynamicColorWrapper builds each style, how Mornye maps onto Material 3 ColorScheme roles and AppTokens, and how widgets branch with context.isMornye and context.adaptiveIcon.

Derived from every file in lib/theme/, lib/models/theme_settings.dart, lib/providers/theme_provider.dart, lib/providers/runtime_profile_provider.dart, lib/widgets/mornye_chrome.dart and test/design_system_test.dart.
2026-10-19 05:27:36 +07:00
zarzet 6debfccba2 fix(theme): retain dominant cover colors in player backgrounds 2026-10-17 16:18:39 +07:00
zarzet befcd2adec feat(a11y): label controls and improve settings contrast and targets 2026-10-17 16:18:25 +07:00
zarzet 9bac4a6efb feat(material): unify progress and surface transitions 2026-10-14 23:04:27 +07:00
zarzet ef600973e8 style(material): align tonal surfaces and control shapes 2026-10-14 20:20:44 +07:00
zarzet 5e6afc7a32 feat(ui): add Material Expressive spring motion 2026-10-14 20:20:44 +07:00
zarzet e56d59c798 feat(theme): adopt Material Symbols and expressive components
The Material theme now draws its main surfaces with rounded Material
Symbols: navigation, player, mini player, queue, settings, sheets,
dialogs and shared controls. AppIcon maps legacy Icons to their symbol
and keeps outlined glyphs unfilled. Mornye keeps its original icons.

Icon buttons, text and filled buttons, dialog actions, sliders, the setup
FAB and indeterminate spinners use the Material 3 Expressive components.
Each wrapper falls back to the standard Flutter widget for Mornye, reduced
motion and custom sizing, so existing layouts and hit areas stay intact.
2026-10-13 18:27:38 +07:00
zarzet b30dd9fed0 feat(appearance): support imported TTF and OTF fonts 2026-10-10 16:59:06 +07:00
zarzet 1cae561e6c feat(appearance): make Mornye glass outlines optional 2026-10-09 18:07:55 +07:00
zarzet d693e1a479 perf(theme): extract cover palettes with native quantization
Port the pinned Material quantizer and Dart RNG compatibility to Rust while keeping Material Score and final color schemes in Dart. Include exact palette fixtures, licenses, and Kotlin worker ABI coverage.
2026-10-06 23:27:38 +07:00
zarzet fe306119fe perf(theme): resolve artwork cache identities asynchronously 2026-10-04 01:41:39 +07:00
zarzet 0914e7d978 feat(mornye): restore liquid glass with continuous draggable navigation 2026-10-03 04:24:54 +07:00
zarzet d1eba29a4a fix(mornye): soften glass rims and increase transparency 2026-10-01 01:29:00 +07:00
zarzet ce13e29b71 feat(appearance): add glass clarity controls and directional highlights 2026-09-30 23:42:20 +07:00
zarzet d390a214c3 feat(material): adopt expressive controls across the app 2026-09-27 17:01:11 +07:00
zarzet dbe16e69dd fix(mornye): preserve contrast with custom accent colors 2026-09-27 04:38:05 +07:00
zarzet 9322e54739 feat(appearance): add an optional system font 2026-09-27 04:36:28 +07:00
zarzet c89601b6dc feat(mornye): add persistent accent color choices 2026-09-27 04:32:02 +07:00
zarzet 64445a09fc feat(navigation): refine translucent bottom bar and search folding
Keep Search inside the expanded tab bar and animate it into a separate control when collapsed. Reduce navigation surface tint while retaining clear icons and accessibility fallbacks.
2026-09-25 01:22:43 +07:00
zarzet 2adcdf0768 fix(artwork): preserve cover colors and readable player contrast 2026-09-25 01:20:11 +07:00
zarzet 146b2acd4d refactor(ui): unify theme styling and enlarge profile button
Centralize existing Material and Mornye layout metrics in AppTokens and share adaptive icon selection. Enlarge the Home profile avatar to 44 dp with a 56 dp touch target.
2026-09-23 21:53:15 +07:00
zarzet 4283126381 fix(mornye): preserve icon meaning and use consistent settings accents 2026-09-21 23:27:42 +07:00
zarzet 63e1a9b9c8 feat(ui): add Mornye glass theme and adaptive music player
Add a selectable Mornye theme with shared glass controls, dialogs, sheets, notifications, and collection headers while retaining Material components.

Update player artwork, lyrics transitions and highlighting, synchronized rolling time labels, volume controls, and compact navigation. Unify metadata, Library, search, and extension surfaces; preserve restored artwork and report extension load failures.

Validation: full Flutter analyzer clean; 713 tests passed and 4 skipped; pinned Dart formatting and diff checks passed; signed ARM64 and ARM32 release APKs built and verified.
2026-09-19 12:10:10 +07:00
zarzet 7064f1a53a perf(theme): bound cover palette decoding and coalesce requests 2026-09-17 02:59:14 +07:00