Skip to content

Conversation

@Jugen
Copy link
Collaborator

@Jugen Jugen commented May 22, 2025

Addresses #1273 where styles are not always being applied.

To apply styling to particular portion of text we need to have a position of where that text is. The trouble is that the changes/modifications supplied by getVisibleParagraph don't provide a document paragraph index so it has to be queried with firstVisibleParToAllParIndex which at that point in time returns stale values as the scene graph hasn't been updated yet.

Here I've added a new method setVisibleOnlyStyler to GenericStyledArea that can be used to style paragraphs just before being displayed.

and use in JavaKeywordsDemo
@Jugen Jugen changed the title Added getVisibleParagraphIndexes method Added setVisibleOnlyStyler method May 26, 2025
@Jugen Jugen requested a review from Symeon94 August 14, 2025 14:45
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.

3 participants