Skip to content

Conversation

@ddfreiling
Copy link
Contributor

@ddfreiling ddfreiling commented Oct 31, 2025

Adds an option for EpubNavigator to position default decorations between text and background, allowing for opaque highlight colors.

See swift-toolkit equivalent PR:
readium/swift-toolkit#665

Without experimental positioning:
(notice that highlight affects text color and gives a "blurry" feel.
exp_without_1
exp_without_2

With experimental positioning:
exp_with_1
exp_with_2
(here highlight is also opaque with alpha = 1.0)

this will position decorations between text and background, allowing for opaque highlight colors
@mickael-menu mickael-menu changed the title feat: add experimental decoration positioning Add experimental EPUB decoration positioning Nov 6, 2025
@mickael-menu
Copy link
Member

@ddfreiling Would you mind applying this patch to your PR? For some reason I cannot push on your repo even though you enabled edits from maintainers. Thank you!

0001-Simplification.patch

@ddfreiling
Copy link
Contributor Author

@ddfreiling Would you mind applying this patch to your PR? For some reason I cannot push on your repo even though you enabled edits from maintainers. Thank you!

0001-Simplification.patch

Applied the patch, thanks!

Copy link
Member

@mickael-menu mickael-menu left a comment

Choose a reason for hiding this comment

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

Thank you @ddfreiling 🙏

@mickael-menu mickael-menu merged commit 425947d into readium:develop Nov 6, 2025
4 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.

2 participants