Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions fc/branding/makeover.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,16 @@ def settings_footer(value: str) -> str:
# receives an explicit attribution link (not falsely labelled as our Reddit).
value = once(value, 'context.openLink("https://github.com/rezapranata089-bit/Zenith")',
'context.openLink("https://github.com/Batmancpu/brrMusic")', "project GitHub URL")
value = once(value, 'context.openLink("https://github.com/rezapranata089-bit")',
'context.openLink("https://github.com/Batmancpu")', "maintainer URL")
# Upstream moved the developer link to TikTok in the 2026-11-26 snapshot.
# Accept either reviewed URL, and continue to label this fork's maintainer correctly.
developer_urls = (
'context.openLink("https://github.com/rezapranata089-bit")',
'context.openLink("https://www.tiktok.com/@zeux.editz?_r=1&_t=ZS-9BgOcHcAans")',
)
matched = [url for url in developer_urls if value.count(url) == 1]
if len(matched) != 1:
raise SystemExit("Settings developer link changed beyond reviewed variants")
value = once(value, matched[0], 'context.openLink("https://github.com/Batmancpu")', "maintainer URL")
value = once(value, 'text = "Reddit",', 'text = "Upstream",', "upstream label")
value = once(value, 'context.openLink("https://www.reddit.com/r/ZenithMusic/s/gN6chb7onR")',
'context.openLink("https://github.com/rezapranata089-bit/Zenith")', "upstream credit URL")
Expand Down
29 changes: 27 additions & 2 deletions fc/spatial-audio/apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def copy_asset(name: str, destination: str) -> None:
" spatialAudioDecision: SpatialAudioDecision? = null,")
insert_after(MENU, " val isOffline = song.localUri != null\n",
"\n var spatialPreference by remember(song.videoId) { mutableStateOf(spatialAudioPreference) }\n")
replace_once(MENU,
menu_row_old = (
" // Stays open after a tap: the label flips in place and the change\n"
" // is audible at once, so the two settings can be compared by ear.\n"
" onToggleSpatialAudio?.let {\n"
Expand All @@ -553,7 +553,31 @@ def copy_asset(name: str, destination: str) -> None:
" accent = palette.accent,\n"
" onClick = it,\n"
" )\n"
" }\n",
" }\n"
)
menu_row_current = (
" // Stays open after a tap: the label flips in place and the change\n"
" // is audible at once, so the two settings can be compared by ear.\n"
" onToggleSpatialAudio?.let {\n"
" ActionRow(\n"
" icon = SfIcons.SurroundSound,\n"
" label = stringResource(R.string.spatial_audio),\n"
" value = stringResource(\n"
" if (spatialAudioOn) R.string.spatial_audio_state_on else R.string.spatial_audio_state_off,\n"
" ),\n"
" tint = if (spatialAudioOn) palette.accent else null,\n"
" description = stringResource(R.string.spatial_audio_this_song_only),\n"
" accent = if (spatialAudioOn) palette.accent else palette.onBackgroundVariant,\n"
" onClick = it,\n"
" )\n"
" }\n"
)
# Upstream 2026-11-26 uses a status and per-song explanation.
menu_source = read(MENU)
menu_matches = [row for row in (menu_row_old, menu_row_current) if menu_source.count(row) == 1]
if len(menu_matches) != 1:
raise SystemExit("Spatial Audio menu row changed beyond reviewed variants")
replace_once(MENU, menu_matches[0],
" // One binary per-track control. Auto is internal policy, never a third toggle.\n"
" onSetSpatialAudioPreference?.let { setPreference ->\n"
" val isAutomatic = spatialPreference == SpatialAudioPreference.AUTO &&\n"
Expand Down Expand Up @@ -583,6 +607,7 @@ def copy_asset(name: str, destination: str) -> None:
" label = stringResource(R.string.spatial_audio),\n"
" value = stringResource(status),\n"
" tint = if (greenAutoOn) Color(0xFF34C759) else null,\n"
" description = stringResource(R.string.spatial_audio_this_song_only),\n"
" accent = if (greenAutoOn) Color(0xFF34C759) else palette.accent,\n"
" onClick = {\n"
" val nextPreference = if (effectiveOn) SpatialAudioPreference.FORCE_OFF else SpatialAudioPreference.FORCE_ON\n"
Expand Down
Loading