Skip to content

Add underline decoration to text::editor via highlighter::Format - #3

Open
rtmongold wants to merge 1 commit into
squidowl:masterfrom
rtmongold:feat/text-editor-underline
Open

Add underline decoration to text::editor via highlighter::Format#3
rtmongold wants to merge 1 commit into
squidowl:masterfrom
rtmongold:feat/text-editor-underline

Conversation

@rtmongold

Copy link
Copy Markdown

Mirror of iced-rs#3430 - needed for Halloy spellchecker underline support.

Extend highlighter::Format with underline and underline_color, and have
text::editor lay out and draw solid underlines from highlight spans.
Decorations remain visible when the editor is unfocused.
@luca020400

luca020400 commented Sep 2, 2026

Copy link
Copy Markdown

For reference I tried to make comisc_text render them via text decorations

luca020400@69255c4

It's cleaner, but currently broken, error "color" is applied as expected but no decorations are shown, possibly a missing draw that adds them :(

Added a renderer for skia & wgpu
luca020400@55f0d17

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