Skip to content

Commit

Permalink
Allow custom merge/replace semantics for TextPresentation ranges ecli…
Browse files Browse the repository at this point in the history
…pse-platform#2543

TextPresentation performs at least two tasks when applying new
StyleRanges:
- identify which style ranges need creating/matching with new styles
- merge or replace an individual style range

Decouple the two tasks by exposing methods for applying style range(s) that
accept a BiConsumer to customise how style ranges should be merged
  • Loading branch information
gregdyke committed Nov 27, 2024
1 parent 6a3eb35 commit dd91cd0
Showing 1 changed file with 138 additions and 125 deletions.
Loading

0 comments on commit dd91cd0

Please sign in to comment.