Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReaderHighlight: manage overlapped highlights #10492

Merged
merged 20 commits into from
May 28, 2023

Conversation

hius07
Copy link
Member

@hius07 hius07 commented May 26, 2023

Tapping a highlighted fragment that belongs to several (overlapped) highlights will call a popup menu that allows to choose a desired highlight.

4 highlights, 2 of them with notes:

1

Closes #10482.


This change is Reviewable

@hius07 hius07 marked this pull request as draft May 26, 2023 15:39
@hius07 hius07 marked this pull request as ready for review May 27, 2023 10:54
Comment on lines +851 to +852
function ReaderHighlight:showChooseHighlightDialog(highlights)
if #highlights == 1 then
Copy link
Contributor

Choose a reason for hiding this comment

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

(The name of this method is about what happens in the else branch - so it may better have a more generic name. But can't really think of any, a generic showHighlightsDialog() is a bit misleading too. So, ok :)

@hius07 hius07 merged commit 57f4ff2 into koreader:master May 28, 2023
3 checks passed
@hius07 hius07 added this to the 2023.05 milestone May 28, 2023
@hius07 hius07 deleted the overlapped-highlights branch May 28, 2023 05:06
Frenzie added a commit to Frenzie/koreader that referenced this pull request Jun 9, 2023
The problem stems from <koreader#10492> but we need the translations to go through.
Frenzie added a commit that referenced this pull request Jun 9, 2023
The problem stems from <#10492> but we need the translations to go through.
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.

FR: Select one of multiple overlapping highlights
2 participants