Skip to content

fix(theme): raise the VCD/apps cover to center on the games cover's axis#205

Merged
NathanNeurotic merged 1 commit into
masterfrom
claude/vcd-cover-raise
Jul 16, 2026
Merged

fix(theme): raise the VCD/apps cover to center on the games cover's axis#205
NathanNeurotic merged 1 commit into
masterfrom
claude/vcd-cover-raise

Conversation

@NathanNeurotic

@NathanNeurotic NathanNeurotic commented Jul 16, 2026

Copy link
Copy Markdown
Owner

Report (NathanNeurotic, HW)

VCD cover art should absolutely be adjusted to raise a bit — it's sitting low on the right side, and looks off kilter as a result.

Cause

The VCD view renders with the apps element family, so its cover is appsMain16. ItemCover initialises with ALIGN_CENTER (themes.c:2142) — x/y is the element's centre — and a negative y anchors from the bottom (posY = (screenHeight + y), scaled by usedHeight), while a positive y is absolute.

element y height centre spans
main16 (PS2 games) 240 256 240 112–368
appsMain16 (apps/VCD) -198 185 282 190–375

The two were roughly bottom-aligned — and because the VCD/apps cover is square (185 vs 256 tall), that put its centre 42px below the games cover in the same right-hand slot. Hence "low on the right side / off kilter."

Fix

appsMain16: y=-198 → y=240 → centre 240, spans 147–332: the same axis as the games cover.

Using the positive form also matches main16 exactly — a negative y additionally scales with usedHeight (so it drifted differently on a 448-line theme) while a positive one doesn't. Both covers now share one anchor rule instead of two.

This affects the Apps page as well as the VCD view (same element, same square-vs-tall mismatch) — which is the consistent outcome: both centre on the games cover's axis.

Validation

conf_theme_OPL.cfg is embedded in the ELF (MISC_OBJSconf_theme_OPL.o), so the rebuild bakes it in. Builds clean (make opl.elf, exit 0).

Geometry is computed, not rendered — this wants your eyes on it. If 240 reads too high, the knob is just that one number.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Style
    • Adjusted the cover’s vertical positioning for improved theme layout.

…s the games cover

NathanNeurotic (HW): "VCD cover art should absolutely be adjusted to raise a bit -- it's sitting low on
the right side, and looks off kilter as a result."

The VCD view renders with the APPS element family, so its cover is appsMain16. ItemCover initialises
with ALIGN_CENTER (themes.c), i.e. x/y is the element's CENTRE, and a negative y anchors from the
bottom (posY = (screenHeight + y) scaled by usedHeight; a positive y is absolute).

  main16      (PS2 games):  y=240   h=256 -> centre 240, spans 112..368
  appsMain16  (apps/VCD):   y=-198  h=185 -> centre 282, spans 190..375

So the two covers were roughly BOTTOM-aligned, and because the VCD/apps cover is square (185 vs 256
tall) that put its centre 42px BELOW the games cover on the same right-hand slot -- it read as sunk and
off-kilter next to a PS2 cover. Centre it on the same axis as the games cover:

  appsMain16: y=-198 -> y=240        -> centre 240, spans 147..332

Using the positive form also matches main16 exactly: a negative y additionally SCALES with usedHeight
(so it drifted differently on a 448-line theme), a positive one does not -- the two covers now share
one anchor rule instead of two.

Affects the Apps page as well as the VCD view (same element, same square-vs-tall mismatch), which is
the consistent result: both now sit centred on the games cover's axis.

conf_theme_OPL.cfg is embedded in the ELF (MISC_OBJS -> conf_theme_OPL.o), so the rebuild bakes it in.
Builds clean (make opl.elf, exit 0). Geometry is computed, not rendered -- wants a visual check.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e2c9763a-99dc-45b6-9d28-7a544802a398

📥 Commits

Reviewing files that changed from the base of the PR and between 87074e8 and e6bf5a8.

📒 Files selected for processing (1)
  • misc/conf_theme_OPL.cfg
📜 Recent review details
⏰ Context from checks skipped due to timeout. (17)
  • GitHub Check: build-lang-ps2dev-latest
  • GitHub Check: build-debug-ps2dev-latest (iopcore_ppctty_debug)
  • GitHub Check: build-debug (DTL_T10000=1, :v20250725-2)
  • GitHub Check: build-debug (ingame_debug, :v20250725-2)
  • GitHub Check: build-debug-ps2dev-latest (ingame_ppctty_debug)
  • GitHub Check: build-debug (iopcore_debug, :v20250725-2)
  • GitHub Check: build-debug-ps2dev-latest (iopcore_debug)
  • GitHub Check: build-lang
  • GitHub Check: build-variants-ps2dev-latest (EXTRA_FEATURES=0, PADEMU=0)
  • GitHub Check: build-variants (EXTRA_FEATURES=0, PADEMU=0)
  • GitHub Check: build-variants-ps2dev-latest (EXTRA_FEATURES=1, PADEMU=1)
  • GitHub Check: build-variants-ps2dev-latest (EXTRA_FEATURES=1, PADEMU=0)
  • GitHub Check: build-variants (EXTRA_FEATURES=0, PADEMU=1)
  • GitHub Check: build
  • GitHub Check: build-lang-ps2dev-latest
  • GitHub Check: build-ps2dev-latest
  • GitHub Check: build-variants (EXTRA_FEATURES=1, PADEMU=1)
🔇 Additional comments (1)
misc/conf_theme_OPL.cfg (1)

154-154: LGTM!


📝 Walkthrough

Walkthrough

The OPL theme configuration moves the appsMain16 ItemCover element vertically by changing its y coordinate from -198 to 240.

Changes

Theme layout

Layer / File(s) Summary
Update ItemCover position
misc/conf_theme_OPL.cfg
The appsMain16 ItemCover y coordinate changes from -198 to 240, moving the cover rendering downward.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the theme cover position adjustment and its alignment with the games cover axis.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/vcd-cover-raise

Comment @coderabbitai help to get the list of available commands.

@NathanNeurotic
NathanNeurotic merged commit d753fae into master Jul 16, 2026
59 checks passed
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