Skip to content

feat: add Appearance and the rvt theme compiler - #5

Open
paviro wants to merge 17 commits into
RepriseOS:mainfrom
paviro:feature/appearance
Open

paviro wants to merge 17 commits into
RepriseOS:mainfrom
paviro:feature/appearance

Conversation

@paviro

@paviro paviro commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Merge after #4, RepriseOS/repriseos#97 and RepriseOS/repriseos#99. Goes with RepriseOS/installer#24.
Own commits: paviro/extensions@feature/move-features-to-extensions...feature/appearance (the rest of the diff is #4 and below).

  • appearance: Settings > Appearance, after Brightness, with Theme, Accent, Dark Mode (Auto, On, Off), Menu Covers and Now Playing Cover. Classic's dark look is derived from the stock artwork on the iPod; other themes are .rvt files in /Reprise/Themes. The first load imports the core's former Dark Mode setting. Picture-pane views are matched through api->ui_stock_view when the core has it (API 1.91).
  • night-shift 0.1.4: the row sits in the Appearance menu after Dark Mode, or after Brightness without Appearance, and opens an Auto/On/Off choice with its own icon. schedule.c and sun.c move to extensions/shared/.
  • themes/: the rvt compiler, its tests and docs, and the Classic theme. No Apple pixels are in the repository. The core's own bitmaps belong to owner reprise. CI runs ruff and the theme tests.

Appearance asks for API 1.89 and ships with RepriseOS/repriseos#97; on a core without it, the core's own Dark Mode row stays. Icons are Cupertino Icons glyphs (MIT). Ported from RevolaOS.

Tested in the emulator.

Screenshots

01-settings-row 02-appearance-menu 03-dark-mode-choice

The RepriseOS core answers the library id reprise itself. Its manifest
and header let rv.mk build extensions that import from it; there is no
reprise.rvx.
SDK 1.84 drops the RepriseOS slots from rv_api and lists libraries in a
[libraries] table. Night Shift, Crossfeed and Playback Log list reprise
as an optional library. On a core without it they skip the settings
migration, and Playback Log leaves the album artist empty instead of
refusing to load. Crossfeed lists dsp as required, and the catalog keeps
listing the required ids as requires. All three get a patch release.
rv_row and rv_menu_entry grew in SDK 1.86, so a core at that API refuses
images an older SDK packed, and the SDK refuses a manifest api below
1.86. Every manifest asks for 1.86. Balance and dsp get a patch release
with the rebuild, 0.1.1 each, beside Crossfeed 0.1.1, Night Shift 0.1.3
and Playback Log 0.1.2; reprise stays 0.1.0, it has no release.
rv_pane grew in SDK 1.89, so a core at that API refuses images an older
SDK packed, and the SDK refuses a manifest api below 1.89. Every
manifest asks for 1.89. The versions stay: the 1.86 rebuilds have not
been released.
The three features that leave the RepriseOS core, as extensions: the library
by Album Artist with Artist as the fallback, and a service that reads a
record's Album Artist; an item's tags and file properties from its context
menu, with a service other extensions open it through; and Play Next, Play
Last and Up Next with move, remove, browse and Clear Up Next.
shared/menu_visibility.h takes the Main and Music Menu checkboxes over from
the old core's MVIS record on first start.

The root Makefile, the catalog sources and the README list them; .gitignore
covers the per-extension build directories.
Playback Log 0.1.3 asks the Album Artists extension for the album artist on
each write, so the column is empty when the extension is not running or when
the Album Artist equals the Artist. It goes to api 1.85 for
extension_service. reprise_album_artist_read leaves the reprise library and
its header.
@paviro
paviro force-pushed the feature/appearance branch from 21e5adb to 68e09f7 Compare November 27, 2026 12:23
@paviro paviro changed the title Add Appearance and host the Night Shift row in its menu feat: add Appearance and host the Night Shift row in its menu Nov 27, 2026
@paviro

paviro commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Title-cased the Appearance pane caption ("Make It Your Own") to match RetailOS, as #86 did for the Custom EQ.

Four features that leave the RepriseOS core, as extensions: Apple's EQ
presets through a filter chain with headroom plus a Custom preset of five
bands with its own editor screen; Settings > Clicker cycling Off, Speaker,
Headphones and Both; the accessory signature verifiers reporting success;
and the EU volume cap, warning and automatic lowering turned off.

On first start Equalizer imports the Custom EQ record the earlier core
stored through the reprise library, moving the precut of layouts without
Auto by one, and shows the Edit EQ row when Apple's EQ preference held the
Custom row. Whatever the record holds, the values are stored so a later
boot cannot import it. Custom EQ values that exist only in the pre-store
CFWEQ file start from the defaults.

The root Makefile, the catalog sources, the README and the NOTICE list
them. Equalizer keeps the core's settings-eq art; the other three take
Cupertino Icons glyphs rendered through the shared Settings icon pipeline.
iAP Auth Bypass and EU Volume Limit add no screen, so their listings carry
no screenshot and the catalog test checks screenshots only where a listing
has them.
The moved extensions ask for API 1.89 like the rest of the catalog: the
core at that API refuses images an older SDK packed, and the SDK refuses
a lower manifest api.
Apps and games from /Reprise/Apps/<id>/ and /Reprise/Games/<id>/:
games join Extras > Games, apps get an Apps row and pane under Extras,
and manifests in those folders are read without a signature. Game
data goes to /Reprise/Data/Games and /Reprise/Data/Apps instead of
iPod_Control. The catalog icon is a Cupertino Icons glyph.
The SDK that builds Homebrew packages lives in eapp-sdk/ of the
RepriseOS repository with RepriseOS/repriseos#108 and later; the Revola
repository it came from is private.
schedule.c and sun.c move from Night Shift to extensions/shared, compiled
into each extension that reads the time zone's sunset and sunrise. The icon
renderer learns to mirror a glyph.
The row opens a choice of Auto, On and Off with its own icon, and sits in
the Appearance menu after Dark Mode while that extension runs, after
Brightness otherwise. On Auto a read that finds no time zone at load is
retried a second later, so the first screen already follows the schedule.
rvt compiles a theme.toml folder into one .rvt file for the Appearance
extension: colour roles, accents and options, replacement art, and derivation
rules the iPod applies to the stock bitmaps at switch time (recolour, alias,
invert, relight). Classic's dark appearance is 109 bitmaps, 108 of them
derived on the device and one hand-made background, so no Apple pixels are in
the repository; the catalog records names, sizes, offsets and checksums only.
The core's own bitmaps are owned by the id reprise; the extension asset
catalog lists the core's settings-info and every first-party extension's.
Tests compare the encoder and lz copies with the SDK checkout and the
extension asset catalog with the build that the next commit's Makefile
writes; CI runs ruff and the tests.

Adapted from RevolaOS themes 6d0ea430642b.
Settings > Appearance, after Brightness: Theme, Accent, Dark Mode (Auto by
sunset and sunrise, On or Off), Menu Covers and Now Playing Cover. Classic's
dark look is derived from the stock artwork on the iPod at switch time; other
themes are .rvt files in /Reprise/Themes, compiled by the rvt compiler in
themes/, which also supplies the format header, the bitmap catalog and the
Classic asset the build packs. The first load imports the core's former Dark
Mode switch. Night Shift's row joins the Appearance menu after Dark Mode.
The root make also writes build/assets.json for the theme tooling.

From RevolaOS extensions a32d616f5a06.
RepriseOS moves the firmware there (repriseos#99). Appearance reads the
stock artwork from it; the rvt tool accepts it as --firmware.
Appearance picks views by their stock id. The day number of a 130 x 128
pane is a copy of the Calendars pane's and missed the native text rule,
so it turned light grey on the picture in Dark Mode. view_id passes the
id through ui_stock_view when the core has it (API 1.91).
@paviro
paviro force-pushed the feature/appearance branch from 8bcda63 to 8c47631 Compare November 28, 2026 15:56
@paviro paviro changed the title feat: add Appearance and host the Night Shift row in its menu feat: add Appearance and the rvt theme compiler Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant