Commit Graph
51 Commits
Author SHA1 Message Date
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 96e3f249c8 perf(desktop): summarize downloads in one pass for the toolbar ring
The toolbar button copied the active downloads and rebuilt on every queue
change; it now selects the count and progress, so it rebuilds only when the
ring or the count changes.
2026-10-23 22:22:25 +07:00
zarzet 8d7b3d634f perf(desktop): sort the song table once per input and scope row hover
The table re-sorted every row on each build, including a selection click,
and the quality comparator parsed both labels in every comparison. Sort keys
are now computed once and the order is kept while the rows and sort stay
the same; hovering a row rebuilds only its fading actions.
2026-10-23 22:22:25 +07:00
zarzet 309d7bf659 feat(desktop): adjust volume by scrolling over its controls 2026-10-23 20:47:26 +07:00
zarzet b768b860c3 perf(mornye): rebuild layout slivers only when their layout value changes
SliverLayoutBuilder passes the full SliverConstraints, which change with the
scroll offset, so library and Explore grids, album, artist and desktop
toolbars, and the extension overview rebuilt on every scroll frame. A small
SliverLayoutInfoBuilder rebuilds only when the width or collapsed flag it
selects changes; the header back buttons are built once, and headers can take
a title listenable so a title flip rebuilds only the title.
2026-10-23 19:17:00 +07:00
zarzet 6ab91b4599 feat(desktop): add fullscreen and borderless window modes 2026-10-23 03:53:18 +07:00
zarzet 7bbdf03e9a feat(desktop): open the mini player on Windows and Linux
The Windows and Linux runners now answer the window channel. They turn
the window into a frameless 360x140 panel that stays above other
windows, open it where it last sat (first at the top right of the work
area), move it when the panel is dragged, and restore the frame, size,
place and maximized state when it closes. On Wayland the compositor
decides the position and stacking, so there it only shrinks.

The mini player drag area now moves a framed window too, and the
shortcut is Ctrl+Shift+M on Windows and Linux, since Ctrl+Alt is AltGr
on many keyboard layouts. macOS keeps Opt+Cmd+M.
2026-10-22 19:27:34 +07:00
zarzet 07a9dd33fc perf(desktop): pause word animation in hidden lyrics panels 2026-10-22 02:43:17 +07:00
zarzet 6406e0a561 fix(macos): synchronize mini player window transitions 2026-10-22 02:30:18 +07:00
zarzet 2994a04f98 feat(desktop): show word-timed TTML lyrics in mini player 2026-10-22 02:30:17 +07:00
zarzet d0dd3792f9 feat(macos): add floating mini player with lyrics 2026-10-22 01:53:32 +07:00
zarzet 11a9b9a4ec chore: remove redundant comments across the codebase 2026-10-22 01:41:09 +07:00
zarzet 4afe2d7f3b fix(desktop): steady pull to refresh on macOS and add Cmd+R
On macOS the expressive refresh indicator ignored a trackpad pull that
started while it was still refreshing or closing. The list then bounced
past its top edge like a plain scroll, and under the pinned large header
that showed as the title staying put above an empty gap. Pushing a pull
back before letting go also scrolled the list by the whole push, since
the indicator and the list both took it.

AppRefreshIndicator now stops a macOS list at its top edge instead of
bouncing, and while a pull is under way a push back only shrinks the
indicator; the list scrolls once the pull is gone.

Pages that refresh also answer the new Refresh command: Cmd/Ctrl+R and
View > Refresh run the indicator of the page on screen. The Mornye
Library uses AppRefreshIndicator so the command reaches it too.
2026-10-22 01:09:35 +07:00
zarzet 3271bc2729 fix(desktop): open the lyrics panel already on the playing line
The lyrics view was created each time the panel opened and stayed hidden
until it had scrolled to the playing line. In a debug build that took
longer than the open animation, so the panel slid in empty and the
lyrics popped in at the end.

Now Playing keeps the lyrics view laid out and following playback while
the panel is closed or shows Up Next; it is not painted then. Opening the
panel only fades and slides a list that is already on the playing line,
also after the song moved on while the panel was closed. Up Next still
cross-fades with the lyrics when one replaces the other.
2026-10-22 00:25:00 +07:00
zarzet 266207b84c fix(desktop): keep full screen lyrics steady while the panel toggles
Turning lyrics on in the desktop Now Playing mounts a fresh lyrics view
each time. Its list first laid out at offset 0, so the opening frame
painted the start of the lyrics, the next frame an estimated offset, and
only the third frame the playing line. The view now lays the list out
without painting it until the first jump to the playing line lands. This
only applies before the list's first layout, so a list that is already
on screen keeps its lines while it moves.

The panel also slid by fractional pixel offsets while it faded, so the
lyric text was drawn between device pixels on every frame. The slide now
snaps to whole device pixels.

The cover beside the lyrics passed its animated width as the decode
width, so every frame of the resize decoded the cover again at a new
size. It now decodes once at its largest size.

DesktopNowPlaying takes an optional metadata controller factory, as
NowPlayingScreen does, so the new test can supply timed lyrics.
2026-10-22 00:13:19 +07:00
zarzet 69961c245a Merge branch 'material/now-playing-lists' 2026-10-21 23:45:40 +07:00
zarzet 6e137fcc24 feat(material): mark the current track in catalog and search lists
Online album, playlist and Library folder rows (phone tiles and the
desktop table) and Library search song rows now show the current track
the way Library and album rows do: a primaryContainer fill, the
equalizer glyph, and on phones the pill shape. Search and folder play
buttons pause and resume the current track instead of restarting it.
Mornye rows are unchanged.

Rows now match the player by the file they play rather than by media id
alone. Every queued item carries its file as its source, while its id
depends on where the queue started (a download row, a Library row, or
the path itself from a playlist). Library rows, downloaded and local
album rows and both tables compare files when both sides know one, so
a local track queued from a playlist marks the local album table too,
and an id another source happens to share never marks a row.

Catalog rows have no file of their own. The current item's download or
Library record is resolved once per track change, and a catalog row
matches on that record's id, on equal ISRCs, or on its catalog id
together with the same title and artist. A catalog id alone, or a title
and artist alone, never marks a row, and rows stay unmarked while the
record resolves.

The desktop songs table takes each row's playback provider instead of
a media id.
2026-10-21 23:45:09 +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 8b062dc353 fix(desktop): keep a right-click selection to its menu
Right-clicking a song outside the selection made it the selection and
opened the selection toolbar under the menu, and choosing Play or Show
details left that toolbar open.

That selection now belongs to the menu: the toolbar stays closed while
the menu is open, closing the menu without a choice ends the selection,
and Play and Show details end it like the queue and playlist actions.
Bulk actions (re-enrich, convert, delete) keep it and bring the toolbar
back. showContextMenu reports whether a row was chosen, and
SelectionModeMixin.showSelectionMenu applies this on the album, folder
and artist pages; the Library and its search results do the same.
2026-10-21 23:22:07 +07:00
zarzet 386343a9fa Merge branch 'material/now-playing-rows' 2026-10-21 22:38:05 +07:00
zarzet 6417d80428 feat(material): mark the current track in song lists
Material 3 Expressive puts expression in state changes: the playing row
should read at a glance, and selection should use its own solid role
instead of a faded primary container.

- Add NowPlayingIndicator, a 16dp three-bar equalizer that moves while
  playing, freezes while paused, stays still under reduced motion and
  stops its ticker under a disabled TickerMode.
- Desktop songs table (Material): rows with a media id follow
  mediaItemPlaybackUiProvider one row at a time. The current row fades
  to primaryContainer on the effects spring, takes onPrimaryContainer
  text with a bold title, and shows the glyph in place of the track
  number, or over the artwork when the table has no number column. Row
  height and columns stay put. A selected current row keeps the
  secondaryContainer fill. Hover is the 8% state layer of the content
  color.
- TrackCard (Material): the current row fills with primaryContainer,
  rounds its ends into a pill on the spatial spring through a clip
  inside its margin, shows the glyph before the trailing control and can
  round its artwork toward a circle. Other rows keep their connected
  corners. Selected rows use solid secondaryContainer.
- Library list and table rows and downloaded album rows pass their
  media id; downloaded album rows now show the real play and pause
  state and toggle the current track instead of restarting it. Local
  album table rows pass their media id too.
- Album and Library row play buttons use a tonal secondaryContainer
  container on Material.

Mornye keeps its rows as before.
2026-10-21 22:37:34 +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 54404cdf41 fix(desktop): open the Downloads page from the downloads popover
Show all only asked for the Library tab, which in Mornye reopens the
page it showed last, such as Songs. Mornye now opens its Downloads
sidebar page through a new library link request; Material keeps the
Library tab.
2026-10-21 18:19:43 +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 53dfa2c3b8 fix(desktop): hide scrollbars where they add clutter
Rows that scroll sideways drop the desktop scrollbar, except the library
search shelves, which have no paging arrows. Settings, the sidebar and
the lyrics and Up Next panels scroll without a bar.
2026-10-21 12:59:55 +07:00
zarzet ca189a9052 feat(desktop): animate the lyrics and Up Next panels open and closed
The inspector grows from the trailing edge beside the content and slides
in when it floats over a narrow window, keeping the last panel on screen
while it leaves. Now Playing moves the cover column aside as the panel
fades in. Material uses the spatial spring and Mornye an iOS-like ease;
reduced motion skips both.
2026-10-21 12:59:55 +07:00
zarzet 400a760415 fix(desktop): shape loading skeletons like the loaded tables
Desktop track and album lists now load with placeholder rows that use the
track table's columns, row height and quality column, so content does not
jump when it arrives. The track table geometry and the artist discography
tile size move to shared helpers that the placeholders reuse.
2026-10-21 12:38:31 +07:00
zarzet ea9e863927 fix(desktop): line the album header artwork up with the content
The cover in the desktop detail header now starts at the same inset as
the description and track table below it.
2026-10-21 11:34:49 +07:00
zarzet a3c4e3f562 feat(desktop): start the Material rail collapsed without a menu button
The rail opens compact, and the sidebar shortcut expands it in windows
wide enough for the extended rail. The menu button and the automatic
collapse are gone.
2026-10-21 11:34:49 +07:00
zarzet afaca0f136 feat(desktop): show Now Playing over the whole window, as Music does
Now Playing covers the shell, sidebar included, over a backdrop drawn
from the artwork: the cover, title and transport on one side, and lyrics
or Up Next on the other, toggled from a capsule in the corner. The
timeline and transport line up with the cover's edges.

The macOS runner reports full screen to Flutter. Opening lyrics in a
full screen window, or entering full screen with lyrics open, shows
them in Now Playing instead of the side panel.
2026-10-21 02:27:04 +07:00
zarzet 435afff453 fix(desktop): keep the Mornye sidebar in every window size
Music does not let its sidebar close, so the Mornye sidebar no longer
hides below 900pt or through the toolbar button, menu item and shortcut.
The shortcut and auto-collapse still apply to the Material rail.
2026-10-21 02:22:49 +07:00
zarzet 02e50bd099 fix(desktop): play or open a row on a single click
A plain click now activates a row, as a tap does on a phone, instead of
selecting it and waiting for a double click. Cmd/Ctrl-click and
Shift-click still select, and the second click of a double click does
nothing, so a row never plays twice.
2026-10-21 02:21:51 +07:00
zarzet 23e531e7bb fix(desktop): round Mornye detail artwork with continuous corners
Music draws its covers with Apple's continuous corner at a 12pt radius;
the Mornye detail header used an 8pt circular one.
2026-10-21 02:21:37 +07:00
zarzet 82b2961bc2 fix(desktop): line the rail menu icon up with the destinations
Desktop visual density shrinks the menu button to 40pt, so its fixed
24pt start padding left the icon 4pt off the destinations' axis. The
button is now centered over the collapsed rail width instead.
2026-10-21 00:26:32 +07:00
zarzet ee5d125470 feat(desktop): morph the Material rail and let it be collapsed
The rail draws its own destinations so one expansion value drives the
width, the indicators and the labels: pills grow around a fixed icon and
labels cross-fade instead of jumping when the layout changes. Expanded
pills hug their labels as M3 Expressive specifies and take the clicks
alone. A menu button collapses and expands the rail, which also follows
the window below 1200pt.
2026-10-20 19:38:05 +07:00
zarzet 0bba11584a fix(desktop): drop the Material search bar and widen rail pills
Home and Library have their own search fields, so the shell's search bar
stacked a second one above them. Rail pills now span the row, which is the
whole click target.
2026-10-20 18:28:11 +07:00
zarzet a7faaff243 feat(desktop): lay out the Mornye player capsule like Music
The display shows the artwork with left-aligned title and artist and album
lines, over a hairline progress track that starts at the artwork's edge.
2026-10-20 18:28:11 +07:00
zarzet ff5001df92 feat(desktop): Apple Music style macOS shell
The macOS window now draws content under a transparent title bar with
the traffic lights centered in a 52pt row, and Flutter drag areas move
and zoom the window there.

Mornye on desktop follows Music: an inset 210pt sidebar panel tinted by
the page's artwork color, with Search, Home, Store, the Library pages,
All Playlists and each playlist, and an account row with Settings pinned
at the bottom. The sidebar hides completely from its button, the menu
or below 900pt, and the content then leaves room for the window
controls. The player is a floating 48pt glass capsule centered over the
content pane with shuffle, transport, repeat, the LCD, downloads,
lyrics, queue and a volume popover; pages scroll under it.

Material keeps its docked player bar, which now holds downloads, so the
top bar steps aside on Home instead of stacking a second search field.
The expanded rail spaces its indicators 8dp apart.
2026-10-20 18:00:06 +07:00
zarzet 9f5b2ff30c Merge branch 'desktop/d15-enable-backend' 2026-10-20 17:44:49 +07:00
zarzet ddb897916a feat(desktop): Apple Music style album, playlist and artist headers
Desktop detail pages keep the plain pane background and place a
300pt-capped artwork at the list's left edge, with the title, the
artist in the accent color and a small meta line beside it and the
actions along its bottom edge. Mornye floats a glass back button and a
capsule with share and More over the pane; album songs use 46pt rows
with the number turning into a play button on hover. Pages leave room
for the floating player.
2026-10-20 17:38:54 +07:00
zarzet 7b94fe176b feat(desktop): compact detail headers and denser song rows
Album, playlist, folder and artist pages on desktop show the artwork beside left-aligned details under a pinned toolbar with the back control, in the same column as the songs. Table rows use desktop density (40 Mornye, 48 Material), show row actions on hover, selection or focus, and drop the quality column when no row has one.
2026-10-20 17:38:54 +07:00
zarzet 382e3856e3 feat(desktop): add dropped music folders to the Library
Dropping music files or folders onto the window adds them as Library folders through the existing add-folder and scan path; a dropped file adds the folder that holds it. Uses desktop_drop 0.8.4. Tests cover the folder selection, the hover play button and the source-sorted table.
2026-10-20 17:38:54 +07:00
zarzet 87c92c8d78 feat(desktop): add Library context menus, song table and hover play
The Library Songs page shows the desktop table, sorted through the Library sort modes, and song rows and cards select on click, play on double click and open the selection's menu on right-click. Playlists, folders, albums, artists and queued downloads get menus, album tiles show a play button on hover, and the sort and filter choices open as menus on desktop.
2026-10-20 17:38:54 +07:00
zarzet c654de57b1 feat(desktop): show detail screen songs as a sortable table
Album, playlist, local album, downloaded album and collection folder screens list their songs in the desktop table, with right-click menus for the selection, Enter and double click to play or open, and Delete wired to the existing removal. The playlist cover options open as a menu on desktop.
2026-10-20 17:38:54 +07:00
zarzet 728c1a1ac8 feat(desktop): add context menus, list selection and a song table
Right-click, Shift+F10 and the Menu key open item menus (MenuAnchor on Material, MornyeContextMenu on Mornye). DesktopListScope adds Cmd/Ctrl+A, Escape, Delete and Enter to selectable lists, and SliverTrackTable shows sortable song columns. The album screen uses the table on desktop.
2026-10-20 17:38:54 +07:00
zarzet 4f16428cf3 feat(desktop): add hover scroll buttons to Home shelves
A mouse wheel only scrolls vertically and mouse drags do not scroll, so
mouse users could not reach the rest of a horizontal shelf. On desktop the
Home shelves, extension feed carousels and featured releases show back and
forward buttons while hovered, when more content lies that way.
2026-10-20 17:15:47 +07:00
zarzet 003b2cff10 feat(desktop): open Now Playing in the content pane with an inspector
Now Playing replaces the content pane instead of covering the window, and
Escape or the minimize button returns. Lyrics and Up Next open in a 340
inspector that sits beside the content from 1200 wide and floats over it
below that; the player bar buttons and Ctrl+Shift+L or U toggle it.

A downloads button with an overall progress ring opens a popover that
lists active downloads with progress and cancel, plus Show all for the
full queue in Library. Material shows it, with a search field that opens
search, in a new desktop top bar; Mornye keeps it in the player bar and
lists Settings as a content destination.
2026-10-20 16:33:30 +07:00