Commit graph

713 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
65bf503963
Introduce additional color styles for container 2025-02-09 05:59:32 +01:00
Cory Forsstrom
a8b1aef0a4
Request redraw in image viewer update 2025-02-06 13:35:48 -08:00
Héctor
4bbb5cbc1f
Merge pull request #2786 from iced-rs/customizable-markdown
Customizable Markdown Rendering and Image Support
2025-02-05 02:20:36 +01:00
Héctor Ramón Jiménez
ef25dfb733
Use code_size instead of spacing for code_block metrics 2025-02-05 02:01:41 +01:00
Héctor Ramón Jiménez
c7711e59ab
Add language to Item::CodeBlock in markdown 2025-02-05 01:33:16 +01:00
Héctor Ramón Jiménez
f8c71a20a9
Rename on_link_clicked to on_link_click 2025-02-04 21:22:01 +01:00
Héctor Ramón Jiménez
e8020f3eaf
Add Copy action to code blocks in markdown example 2025-02-04 20:58:06 +01:00
Héctor Ramón Jiménez
387abafa3a
Add alt and title to markdown images 2025-02-04 20:19:25 +01:00
Héctor Ramón Jiménez
a6e64eac6f
Animate image fade in in markdown example 2025-02-04 19:57:51 +01:00
Héctor Ramón Jiménez
24cf355e96
Fix documentation of markdown and rich_text 2025-02-04 19:07:24 +01:00
rhysd
eedaa376b9 Remove the placeholder text when IME is activated in text input 2025-02-05 00:53:16 +09:00
Héctor Ramón Jiménez
5655998761
Draft Viewer trait for markdown 2025-02-04 07:53:56 +01:00
Héctor Ramón Jiménez
c02ae0c4a4
Introduce view_with customizers in markdown module 2025-02-04 03:41:05 +01:00
Héctor Ramón Jiménez
afef368d8a
Take Event by reference in Widget::update 2025-02-04 01:26:59 +01:00
Héctor Ramón Jiménez
bab18858cd
Handle pre-edits and commits only if text_editor is focused 2025-02-03 18:38:20 +01:00
Héctor Ramón Jiménez
50eaef2844
Merge branch 'master' into explore-input-method2 2025-02-03 17:24:05 +01:00
Héctor Ramón Jiménez
141290c740
Fix InputMethod conflicts with multiple scrollables 2025-02-03 17:12:08 +01:00
Héctor Ramón Jiménez
e8c680ce66
Request redraws on InputMethod events 2025-02-03 16:55:10 +01:00
Héctor Ramón Jiménez
0c0651de5b
Introduce Levitating variant for mouse::Cursor 2025-02-03 05:45:51 +01:00
Héctor Ramón Jiménez
3029481b72
Ignore redraws of invisible content in hover widget 2025-02-03 04:34:13 +01:00
Héctor Ramón Jiménez
c83809adb9
Implement basic IME selection in Preedit overlay 2025-02-03 02:33:40 +01:00
Héctor Ramón Jiménez
3a35fd6249
Clamp pre-edit inside viewport bounds 2025-02-03 01:30:41 +01:00
Héctor Ramón Jiménez
d28af5739b
Track pre-edits separately from focus in text inputs 2025-02-03 00:51:57 +01:00
Héctor Ramón Jiménez
ae10adda74
Refactor and simplify input_method API 2025-02-02 20:45:29 +01:00
Héctor Ramón Jiménez
0c6d4eb23f
Run cargo fmt and fix lints 2025-02-02 17:50:12 +01:00
KENZ
7db5256b72
Draft input_method support 2025-02-02 17:44:13 +01:00
Héctor Ramón Jiménez
599d8b560b
Avoid sharing State when re-parsing markdown sections 2025-02-02 04:17:44 +01:00
Héctor Ramón Jiménez
569ef13ac9
Fix broken references when parsing markdown streams 2025-02-02 04:01:57 +01:00
Héctor Ramón Jiménez
e73d0c65d2
Fix imprecise documentation in Pop::on_show 2025-02-02 01:52:04 +01:00
Héctor Ramón Jiménez
e78d7f0e51
Add on_resize handler to pop widget 🎉 2025-02-02 01:48:42 +01:00
Héctor Ramón Jiménez
952c47bc8a
Write documentation for markdown::Content 2025-02-01 04:33:15 +01:00
Héctor Ramón Jiménez
8cac532cd9
Add horizontal helper to scrollable 2025-02-01 04:26:35 +01:00
Héctor Ramón Jiménez
ed0ffb5963
Revert automatic horizontal scroll in scrollable 2025-02-01 02:16:29 +01:00
Héctor Ramón Jiménez
7a6d4d580e
Propagate mouse cursor movements in stack 2025-02-01 02:13:45 +01:00
Héctor Ramón Jiménez
2fc94d9f44
Fix event capturing in rich_text 2025-02-01 01:57:11 +01:00
Héctor Ramón Jiménez
7493b83031
Fix rich_text reactive rendering when hovering links 2025-02-01 01:52:13 +01:00
Héctor Ramón Jiménez
eb81679e60
Split code blocks into multiple rich_text lines
This improves layout diffing considerably!
2025-02-01 01:08:20 +01:00
Héctor Ramón Jiménez
c2155b82b3
Cull out of bounds rich_text during draw 2025-02-01 01:07:03 +01:00
Héctor Ramón Jiménez
7336a18443
Fix viewport when using nested scrollables 2025-02-01 01:04:36 +01:00
Héctor Ramón Jiménez
447f5ae494
Discard markdown::Highlighter if language changes 2025-02-01 00:33:05 +01:00
Héctor Ramón Jiménez
095859ed57
Add new constructor for markdown::Content 2025-01-31 20:50:07 +01:00
Héctor Ramón Jiménez
bc2d662af7
Replace println with log calls in markdown module 2025-01-31 20:42:53 +01:00
Héctor Ramón Jiménez
4b8fc23840
Implement markdown incremental code highlighting 2025-01-31 20:37:07 +01:00
Héctor Ramón Jiménez
128058ea94
Draft incremental markdown parsing
Specially useful when dealing with long Markdown
streams, like LLMs.
2025-01-31 17:35:38 +01:00
Héctor Ramón Jiménez
6aab76e3a0
Add min_height and max_height to text_editor 2025-01-30 03:45:14 +01:00
Héctor Ramón Jiménez
fb87c97159
Use Into<Id> for scrollable::Id arguments 2025-01-30 02:52:24 +01:00
Héctor Ramón Jiménez
a7bc1e7da4
Avoid capturing mouse press when text_editor is unfocused 2025-01-30 02:47:59 +01:00
Héctor Ramón Jiménez
ea8696eac2
Use Into<Id> for container::Id arguments 2025-01-30 02:47:14 +01:00
Héctor Ramón Jiménez
aa0f0e73aa
Let markdown::view be Shrink when no code blocks exist 2025-01-30 01:47:10 +01:00
Héctor Ramón Jiménez
d49d4dc3fa
Make spacing configurable in markdown::Settings 2025-01-30 01:46:52 +01:00