Skip to content

fix: re-implementing Cover Outlines for the new Lyra Themes#1017

Merged
daveallie merged 2 commits intocrosspoint-reader:masterfrom
Levrk:cover-outline-2
Feb 20, 2026
Merged

fix: re-implementing Cover Outlines for the new Lyra Themes#1017
daveallie merged 2 commits intocrosspoint-reader:masterfrom
Levrk:cover-outline-2

Conversation

@Levrk
Copy link
Contributor

@Levrk Levrk commented Feb 20, 2026

Summary

  • What is the goal of this PR? (e.g., Implements the new feature for file uploading.)

Improve legibility of Cover Icons on the home page and elsewhere. Fixes #898
Re implements the changes made in #907 that were overwritten by the new lyra themes

  • What changes are included?
    Cover outline is now shown even when cover is found to prevent issues with low contrast covers blending into the background. Photo is attached below:
Untitled (4)

Additional Context

  • Add any other information that might be helpful for the reviewer (e.g., performance implications, potential risks,
    specific areas to focus on).

Re implements the changes made in #907 that were overwritten by the new lyra themes


AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing, please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? Yes

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 20, 2026

No actionable comments were generated in the recent review. 🎉

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 07d715e and 5c925e4.

📒 Files selected for processing (2)
  • src/components/themes/lyra/Lyra3CoversTheme.cpp
  • src/components/themes/lyra/LyraTheme.cpp
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: cppcheck
  • GitHub Check: build
🔇 Additional comments (2)
src/components/themes/lyra/Lyra3CoversTheme.cpp (1)

67-69: LGTM! Outline now drawn unconditionally as intended.

The rendering order is correct: the outline is drawn on top of any loaded bitmap, providing visual separation from the background regardless of cover color.

src/components/themes/lyra/LyraTheme.cpp (1)

451-454: LGTM! Consistent implementation with Lyra3CoversTheme.

The outline is correctly drawn after the bitmap load attempt, ensuring visual separation for the cover tile regardless of whether the cover image was successfully loaded.


📝 Walkthrough

Walkthrough

Changes modify how cover frame rectangles are rendered in Lyra theme components. Previously, the background rectangle was drawn only when no cover was loaded. Now the rectangle is drawn unconditionally after attempting to load a cover, ensuring the frame appears in both cases—with and without a loaded cover image.

Changes

Cohort / File(s) Summary
Cover Rendering Logic
src/components/themes/lyra/Lyra3CoversTheme.cpp, src/components/themes/lyra/LyraTheme.cpp
Modified rectangle drawing to occur unconditionally after cover load attempts, rather than only in the no-cover conditional branch. Frame is now always rendered regardless of cover presence.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • feat: Lyra Icons #725: Modified the same drawRecentBookCover and cover-rendering logic in LyraTheme, so rendering behavior interactions should be validated.

Suggested reviewers

  • daveallie
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: re-implementing cover outlines for the new Lyra themes, which directly relates to the changeset.
Description check ✅ Passed The description is clearly related to the changeset, explaining the goal of improving cover legibility by showing outlines even when covers are found, which aligns with the code changes.
Linked Issues check ✅ Passed The PR successfully addresses issue #898 by implementing code changes that ensure cover outlines are drawn unconditionally, preventing low-contrast covers from blending into the background.
Out of Scope Changes check ✅ Passed All changes are directly scoped to re-implementing cover outlines in the Lyra theme files, with no extraneous modifications unrelated to the stated objective.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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

Copy link
Member

@daveallie daveallie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, appologies, I believe that it was me resolving merge conflicts which may have lost this work

@daveallie daveallie merged commit d7f89e6 into crosspoint-reader:master Feb 20, 2026
7 checks passed
daveallie pushed a commit that referenced this pull request Feb 20, 2026
## Summary

* **What is the goal of this PR?** (e.g., Implements the new feature for
file uploading.)

Improve legibility of Cover Icons on the home page and elsewhere. Fixes
#898
Re implements the changes made in #907 that were overwritten by the new
lyra themes

* **What changes are included?**
Cover outline is now shown even when cover is found to prevent issues
with low contrast covers blending into the background. Photo is attached
below:

<img width="1137" height="758" alt="Untitled (4)"
src="https://github.com/user-attachments/assets/21ae6c94-4b43-4a0c-bec7-a6e4c642ffad"
/>



## Additional Context

* Add any other information that might be helpful for the reviewer
(e.g., performance implications, potential risks,
  specific areas to focus on).

Re implements the changes made in #907 that were overwritten by the new
lyra themes

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**Yes**_
lukestein pushed a commit to lukestein/crosspoint-reader that referenced this pull request Feb 20, 2026
…nt-reader#1017)

## Summary

* **What is the goal of this PR?** (e.g., Implements the new feature for
file uploading.)

Improve legibility of Cover Icons on the home page and elsewhere. Fixes
crosspoint-reader#898
Re implements the changes made in crosspoint-reader#907 that were overwritten by the new
lyra themes

* **What changes are included?**
Cover outline is now shown even when cover is found to prevent issues
with low contrast covers blending into the background. Photo is attached
below:

<img width="1137" height="758" alt="Untitled (4)"
src="https://github.com/user-attachments/assets/21ae6c94-4b43-4a0c-bec7-a6e4c642ffad"
/>



## Additional Context

* Add any other information that might be helpful for the reviewer
(e.g., performance implications, potential risks,
  specific areas to focus on).

Re implements the changes made in crosspoint-reader#907 that were overwritten by the new
lyra themes

---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**Yes**_
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.

No separation between cover and background

2 participants