Ampify
English

Element names

Apple Music names few of its elements, and the paths to them are long: the sidebar is SplitView#RootSplitView > Grid > Grid#PaneRoot. Write a stable name instead, as a CSS class:

.sidebar { corner-radius: 10px; }
.card:hover { transform: scale(1.04); }
.playbar Button { color: #FFFFFF; }

Each class stands for the path to one zone (src/core/theme/builtins.cpp). When an Apple Music update moves a zone, the path changes once in Ampify and themes keep working, like Spicetify’s css-map.json.

A class goes anywhere a part of a selector goes: .sidebar, .card:hover, .album-header TextBlock. It must start its part (Grid.card is refused). An unknown class makes the rule ignored, with a line in the log. The names were read on Apple Music 1.1792.

A class takes the same states as any part: :hover, :active, :focus, :playing, and the control states :checked (a toggle or switch that is on), :selected (a selected row or sidebar entry) and :disabled (a control that takes no input). .list-item:selected and .next-button:disabled work as written; the full list is in the selector table.

Window

Class Zone
.window The whole window, behind everything else
.titlebar The title bar strip, on the pages that show it. It lies over the top of the sidebar and the playback bar: a background on it catches their clicks, so leave it unset
.titlebar-drag-area The area that drags the window
.caption-buttons-cover The strip that keeps the minimize, maximize and close buttons readable over the playback bar
.modal The place in the window where Apple Music shows some of its dialogs (the dialogs themselves are in Dialogs)
.focus-ring The outline drawn around the control that has the keyboard focus
.popup-scrim The layer behind an open menu, which catches the clicks outside it. Keep it transparent: a painted background covers the whole window while a menu is open
.info-bar The banners at the top and at the bottom of the window
.info-bar-icon The icon of a banner: Apple’s severity glyph, or the icon a banner brings
.info-bar-title, .info-bar-message The bold first line of a banner, and its text
.info-bar-content The area for content that a banner shows with its text
.info-bar-close The button that closes a banner
.scrollbar The scroll bars of every list and page. Away from the pointer a scroll bar is a thin line, painted by color; under the pointer it widens to a thumb painted by the :hover colour, on a track painted by background (:hover too under the pointer)
.scrollbar-thumb, .scrollbar-track The thumb and the track of a scroll bar, for a rule of their own (.scrollbar-thumb { corner-radius: 2px; })
.scrollbar-arrow The small arrow buttons at the ends of a scroll bar, shown when it widens
Class Zone
.sidebar The sidebar panel
.navigation The navigation view that holds the sidebar and the pages
.sidebar-header The top of the sidebar, with the app name
.sidebar-toggle The button that folds the sidebar
.sidebar-toggle-area The area of that button, at the top of the folded sidebar
.sidebar-column The column of the sidebar’s icons and items, all that shows of the sidebar when folded
.sidebar-pin With apple.sidebar = hover: the pin button just left of “···” in the open sidebar’s header, shown only while the sidebar is open. Ampify places it beside “···” at each move of that button, so a margin here does not hold
.back-button The back button
.app-name The “Music” title
.search-area The area around the search box
.search-box The search box
.search-suggestions The suggestions under the search box (a popup of its own, outside the window)
.search-input The text field inside the search box
.search-placeholder The hint shown in it while it is empty
.search-button, .search-clear The magnifier button of the search box, and the button that empties it
.more-button The “…” button at the top of the sidebar, whose menu holds Settings
.more-icon The dots drawn in it
.topnav The row of buttons that takes the place of the sidebar’s header in a narrow window
.topbar-back With apple.topbar = search: the back arrow left of the search box, in the strip at the top of the window. It presses Apple’s .back-button, which then stays in its place, transparent
.topbar-search With apple.topbar = search: the cell in that strip that holds Apple’s own .search-box, centred in the window. .search-area stays empty and hidden in the sidebar meanwhile. When the window shows a picture (an image or gradient background on .window, or a .window::before or ::after), Ampify lays a fill under the box and a veil over the strip that fades out at 40 pixels, so the field and the window buttons stay readable
.sidebar-scroll The scrolling list of the sidebar
.sidebar-items The items of that list
.sidebar-item One item: Home, Radio, a playlist…
.sidebar-item-artwork The frame of a pinned item’s artwork (with the play button over it)
.sidebar-item-image The picture in that frame
.sidebar-subitems The items inside a folder of playlists, under its row
.sidebar-chevron The arrow that opens and closes such a folder
.sidebar-border The edge of the sidebar that Apple draws in high contrast
.sidebar-selection The bar that marks the selected item. Each item has its own, and only the selected one shows
.sidebar-count The number badge on a sidebar item
.sidebar-play-button The play button over that artwork
.sidebar-footer The bottom of the sidebar, with the account and the Ampify entry
.sidebar-footer-items The items of that bottom part
.sidebar-separator The line above it
.sidebar-entry An entry Ampify adds at the bottom of the sidebar: the Marketplace, an extension’s page. Folded, it is a centred icon as wide as the column less its margins; open, the full row. Its icon sits on the axis of Apple’s own icons, wherever a theme moves them. Ampify sets that width and the padding itself, at each pass over the sidebar, so a width or padding here does not hold. Margin, height and colours are the theme’s, but folded in a window too low for the list above them, the entries give back up to 8 of height each (through max-height) so that Apple’s last icon shows whole
.sidebar-drag-indicator The line shown above or below a pinned item while it is dragged to a new place
.sidebar-footer-scroll The scrolling list at the bottom of the sidebar
.account-picture The account picture
.account-badge The small badge on that picture
.account-name The account name

Content and pages

Class Zone
.main-column The whole column right of the sidebar: the playback bar and the pages, on a light gray veil
.content The panel that holds the pages
.content-background Its background layer
.content-frame The frame the pages are shown in
.content-shadow The shadow along its edge
.page-background What Apple lays behind a page’s list: an artist’s video, a coloured backdrop
.page A page (the Songs list and the settings pages, which are pages of their own types, included)
.stacked-page A page made of stacked shelves, such as Home
.list-page A page with a header and a track list: an album, a playlist
.grid-page A page made of a grid of cards, such as Albums
.side-by-side-page A page in two columns, a list on the left and its content on the right: Artists
.table-page A page made of a table
.section-page A page made of one section, such as a “See All” page
.tracklist-page A page made of a plain track list
.songs-page The Songs page
.settings-page Every settings page: the main one and General, Playback, Restrictions, Files, Advanced, Import
.settings-card A card of the settings pages, and a row of the main settings page
.page-top-spacer The empty space at the top of a page, 64 pixels high, that keeps it below the playback bar
.stacked-list The list of Home and Search, whose top padding plays the same part
.stacked-page-header The header at the top of a stacked page, above its first shelf
.page-scroll The scroller of a page made of a list: Home, an album, a playlist, the Songs table. A shelf’s sideways scroller is not one
.page-header The title bar of a page, which stays at the top when the page scrolls
.page-title The title of a page
.loading The spinner shown while a page loads its content
.frost The frosted layer behind the playback bar and the page headers
.filter-box The filter box of the library pages
.filter-button The button that opens it
.sort-button The sort button of the Songs page
.sticky-header-background The background of a header that stays at the top
.list-page-shelves The shelves under the tracks of an album or a playlist (more by the artist, videos), which Apple paints on a grey band
.list-header The column titles of the Songs list (Name, Duration, Artist…), which stay at the top as it scrolls

Shelves and sections

Class Zone
.section-header The header of a section
.section-grid A section of a stacked page laid out as large tiles, such as the picks for you at the top of Home: since Apple 1.1792, a shelf whose rows hold large posters
.section-single A section of a stacked page made of large banners, such as the carousel at the top of New: since Apple 1.1792, a shelf of tiles under no title
.section-shelf A section of a stacked page that is a shelf (Home, New), the two kinds above included; the shelves under an album are .list-page-shelves
.shelf A row of cards that scrolls sideways
.shelf-title Its title row: the title and the subtitles
.shelf-title-link The title as Apple’s link control
.shelf-title-text The text of the title, a link or a plain text
.shelf-subtitles The lines under the title, when a shelf has some
.shelf-grid The cards of the row
.shelf-arrows The arrows that scroll it
.shelf-arrow-left, .shelf-arrow-right Each arrow

Cards

Class Zone
.card A square card: an album, a playlist, a station
.card-brick A wide card, such as the categories of Search
.card-wide A card with its artwork on the left
.card-track A song in a shelf
.card-poster A large editorial tile, such as the picks for you on Home: the tile and its artwork frame, which clip with their own corner. Round or square it with the covers
.card-poster-chin The band under a large editorial tile’s text, rounded at the bottom only: give it 0 0 r r
.card-play-button The play button that shows over a card under the pointer
.cover-play-button The play button over an album’s or a playlist’s cover (not the one of its header)
.card-text-grid The grid that lays out the title and the subtitle of a brick card
.card-title, .card-subtitle The two lines of text under a card
.artwork Every artwork, in cards, lists and the playback bar, except artists’ pictures
.artist-artwork Artists’ round pictures, in shelves and at the top of an artist’s page. Apple lights them under the pointer with a round shape: squaring them leaves a round light over a square picture
.artwork-shadow The shadow under an artwork
.explicit-badge The “E” badge of a song in a list (.lcd-explicit-badge for the song playing)
.explicit-group The “E” badge with the favourite star, side by side
.favorite-button, .favorite-icon The star, and its icon
.add-button The button that adds to the library
.download-button, .downloaded-button, .download-progress The download button, its done state, and its progress ring
.library-status The add and download buttons of an item, as one group (.add-button and the others stay one by one)
.now-playing-indicator The bars that mark the song playing

Albums, playlists and songs

Class Zone
.album-header The header of an album or a playlist: artwork, title, buttons
.album-play-button, .album-shuffle-button Its Play and Shuffle buttons
.album-description Its description
.album-artist Its artist, a link that Apple writes in its own blue
.add-description-button The button that adds a description to a playlist
.share-button The share button
.lossless-badge, .digital-master-badge The Lossless and Apple Digital Master badges
.audio-formats The formats at the end of the line under an album’s title, icons and words (Lossless, Hi-Res Lossless, Dolby Atmos, Apple Digital Master), with the dot before them
.motion-artwork The moving artwork of some albums
.artist-picture The picture of an artist
.radio-play-button The play button of a station
.track-list The list of songs
.track-row One song of that list, on a playlist page and on an album page. Its light under the pointer is the only one: Apple’s own (.track-list-item) is off. The library’s Songs page keeps Apple’s light
.track-list-item The list row that holds a song of that list, as wide as the list
.track-play-button The play button of a song
.reactions-button The reactions button of a song
.suggested-songs The box of suggested songs under a playlist
.song-list The table of the Songs page
.song-row One row of that table
.list-item Any row of any list, which draws its own light under the pointer (hover-background, active-background) and its selection (selected-background). .list-item:playing is the row of the song playing
Class Zone
.search-top-spacer The empty space above the search page’s header, 64 pixels high, that keeps it below the playback bar
.search-header The top of the search page
.search-scopes The buttons that choose where to search
.search-scope One of them: Apple Music, Library, Store
.search-status The status line (“No results”…)
.search-top-result The tile of one of the top results, under “Top Results”
.fullscreen-player Apple’s full-screen player, a window of its own (Now Playing opens it)
.fullscreen-background Its animated artwork background
.fullscreen-artwork Its large artwork
.fullscreen-title, .fullscreen-artist The song’s title and artist under the artwork
.fullscreen-transport Its buttons, scrubber and volume
.fullscreen-time The elapsed and remaining times
.fullscreen-lyrics Its lyrics column
.fullscreen-exit Its exit and close buttons
.fullscreen-volume, .fullscreen-airplay, .fullscreen-reactions, .fullscreen-audio-badge Its volume control, and its AirPlay, reactions and audio format buttons
.mini-player Apple’s mini player, a window of its own that opens from the artwork in the playback bar
.mini-player-background Its animated artwork background
.mini-lcd Its display of the song playing
.mini-player-lyrics, .mini-player-queue Its lyrics and Up Next views, when open
.mini-player-volume Its volume control
.mini-artwork The song’s artwork at its top left (it grows into the album view on a click)
.mini-title, .mini-artist, .mini-audio-badge The song’s title and artist beside it, and the audio badge under them
.mini-controls The bottom block: the progress line with its times, and the row of buttons
.mini-scrubber, .mini-time The progress line, and the elapsed and remaining times
.mini-transport Previous, play and next
.mini-actions, .mini-panes-buttons The buttons left of the transport (volume, then Apple’s other button), and right of it (lyrics, Up Next)
.mini-caption-buttons Its own minimize, maximize and close buttons, shown under the pointer

The players’ windows only take the rules that name them: .playbar or a bare TextBlock never reach them, but .mini-lcd or MiniPlayerPage TextBlock do. The mini player runs on an interface thread of its own, where Ampify applies the same theme and snippets with a second copy of its engine: the theme’s colours and scheme reach it, and ampify devtools writes its tree to logs\inspector-mini.txt and inspector-mini.json while it is open. --mini-window: compact in :root cuts its window to the song’s row (format). A :hover on .mini-player itself never comes on yet: put it on the part under the pointer (.mini-controls:hover).

Playback bar

Class Zone
.playbar The playback bar
.playbar-controls Its first column: shuffle, previous, play, next, repeat
.now-playing Its second column: the song playing
.playbar-extras Its third column: lyrics, queue, AirPlay, volume
.transport The control that holds the buttons of the first column (.transport AppBarButton for the buttons)
.shuffle-button, .shuffle-dot Shuffle, and the dot that shows it is on
.shuffle-icon, .repeat-icon, .airplay-icon The glyph of each of those buttons
.transport-icon The icon of the previous, play and next buttons
.previous-button, .play-button, .next-button Previous, play or pause, next. Apple Music turns them off until a song is loaded, and a button turned off gets no pointer: their :hover and :active show once a song is there
.repeat-button, .repeat-dot Repeat, and its dot
.lcd The display of the song playing
.lcd-artwork Its artwork area
.lcd-artwork-image, .lcd-placeholder The artwork, and what shows when there is none
.lcd-artwork-picture The picture inside the artwork’s frame: a transform zooms it within the frame (the frame itself refuses one)
.lcd-artwork-hover The layer Apple shows over the artwork under the pointer
.lcd-loading The line that runs along the display while a song loads
.track-text The title and the artist
.track-lines, .track-line The block of the two lines, and each line
.track-title, .track-artist Each of them
.lcd-explicit-badge The “E” badge beside the title of an explicit song. Apple shows and hides it with each song: hide it with opacity: 0 (and width: 0; margin: 0 to give its room back), not visibility, or a later song may show it wrongly once the rule goes
.scrubber The progress bar (with ampify:centre-bar, a line under the buttons): color fills the played part (the theme’s accent by default), background the rest of the track, .scrubber Thumb its thumb; they hold under the pointer and while dragged. An image can ride at the song’s position (format.md)
.current-time, .duration The time played and the length. With ampify:centre-bar they stand at the ends of the progress line, under the buttons
.audio-badge The badge of the audio format (Lossless, Dolby Atmos)
.live-badge, .autoplay-badge The Live and Autoplay badges
.apple-logo The Apple logo shown when nothing plays
.lcd-more-button Kept for themes that already use it: the sidebar’s “…” button, now .more-button. The display has no such button of its own
.playbar-toggles The buttons of the third column
.lyrics-button, .queue-button, .airplay-button Lyrics, Up Next, AirPlay
.volume, .volume-button The volume control, and its speaker button
.volume-slider The slider in the volume flyout: color fills the part left of the thumb, background the rest of the track
.volume-mute-button The mute button on its left

The volume slider sits in a .flyout. Its thumb is .volume-slider Thumb, and its track is .volume-slider Rectangle#HorizontalTrackRect (its height sets the thickness). They keep the theme’s colors under the pointer and while dragged.

.volume-slider {
    color: #FFFFFF;
    background: #4D4D4D;
}

.volume-slider Thumb {
    background: #FFFFFF;
}

Flyouts, menus and tooltips

They open in popups, each a root of its own: .flyout Slider works, .playbar .flyout matches nothing.

Class Zone
.flyout A flyout, such as the volume’s: its background, corner-radius and border-color
.menu A menu, such as the “…” menu of a song, and each of its submenus
.menu-item An entry of a menu, including those that open a submenu or show a check mark
.menu-separator The line between two groups of entries
.tooltip The tip that shows under a button after a moment

Dialogs

Apple Music’s dialogs (the welcome and terms screens, “Edit playlist”, the confirmations Ampify asks for) are all built on one template, which these names reach whatever the dialog’s own type is. A dialog opens in a popup of its own, like a flyout: a rule must start at the dialog, and .window .dialog matches nothing. Only one dialog is open at a time.

Class Zone
.dialog The box: its background, corner-radius and border-color
.dialog-scrim The veil Apple lays over the window behind a dialog
.dialog-title The title, when the dialog has one in its template
.dialog-content What the dialog says or asks
.dialog-buttons The row of buttons at the foot
.dialog-primary, .dialog-secondary, .dialog-close Its three buttons: the main one (in the accent colour by default), the second choice, and the one that closes. A dialog shows the ones it needs
.dialog-checkbox A check box in a dialog, such as “do not ask again”
.dialog { corner-radius: 14px; }
.dialog-primary { background: #FF3B7A; color: #FFFFFF; }

Apple’s other views

These are named by their type, so a name finds the view wherever Apple opens it: in a pane, a flyout or a window of its own. Their insides are not named yet; reach them with Type#Name (ampify devtools lists them).

Class Zone
.airplay-panel, .airplay-device The AirPlay list, and one device in it
.audio-quality-flyout The audio quality choice, from the audio badge
.reactions-panel The reactions of a song
.equalizer, .eq-slider The equalizer, and each of its sliders
.sound-enhance-slider The slider of the Sound Enhancer
.info-panel The information panel of an item
.activity-window, .activity-status-button The activity window (downloads, uploads), and the status button of one item in it
.video-page The page that plays a music video
.column-browser The column view of the library
.breadcrumb, .rating The trail of a settings page, and the star rating

Not confirmed on screen. These names come from the types in Apple’s metadata (knowledge/winmd), not from a saved tree: none of them is in the recorded trees yet, so a class may find no element if Apple instantiates the view under another type. The same holds for .mini-player* and .mini-lcd, .fullscreen-volume, .fullscreen-airplay, .fullscreen-reactions and .fullscreen-audio-badge. To confirm one: open the view, save the tree (ampify devtools, which writes inspector.json), and run ampify theme names on it; a class that finds nothing prints “0 elements”. .equalizer only looks for EqualizerView until the other type (EqualizerControl) is seen in a tree.

Lyrics and queue

Class Zone
.lyrics-panel The side panel of the lyrics and of Up Next. Its SplitView places it: horizontal-alignment, grid-column and grid-column-span are refused there, and width: auto fits it to its column less its margins
.lyrics-panel-border Its edge in high contrast
.lyrics-panel-top-spacer The 64 at its top that Apple keeps for its own playback bar
.lyrics The lyrics view
.lyrics-menu-button Its menu button
.lyrics-synced The lyrics that follow the song
.lyrics-lines Their lines, in the scroller that shows them, with the credits strip that ends them; without the menu button (a filter there leaves the button sharp, and never blurs the credits)
.lyrics-static The lyrics without timing
.lyrics-message The text that stands in for lyrics: nothing playing, loading, not available
.lyrics-line One line of the synced lyrics, whole; :current while it is the line being sung
.lyrics-line-button The button around a line: a click goes to that moment of the song
.lyrics-line-content What a line draws; Apple fades it by state (past or coming at half opacity, current at full)
.lyrics-words The sung text of a line: a plain text when the song is timed by line, the word by word host when it is timed by word
.lyrics-background-words The background vocals of a line, when it has some
.lyrics-instrumental The three dots of an instrumental break
.lyrics-footer The strip under the lyrics, at the end of their scroller
.lyrics-writers Its credits line
.queue The Up Next list
.queue-clear Its “Clear” button, in Apple’s red; a theme with an accent paints it in the accent
.queue-autoplay Its autoplay toggle (∞), blue while on; a theme with an accent gives it checked-color

Everything else

Any other element can be reached as Type#Name or by its place (:nth-child). ampify devtools writes the tree of the page on screen with a selector for each element, and knowledge/apple-music-xaml-tree.md describes the whole tree. Template parts and inner pieces change more often than the zones above.

Check the names after an update

After an Apple Music update, save a few trees with the inspector (Home, an album, Search, the lyrics), then run:

ampify theme names C:\trees\home.json C:\trees\album.json

It prints how many elements each class found, and exits with code 1 when a class matches nothing: that class needs a new path in src/core/theme/builtins.cpp.