Commit graph

5514 commits

Author SHA1 Message Date
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
91f94f3b6e
Merge pull request #2776 from iced-rs/fix/markdown
Incremental `markdown` parsing and various fixes
2025-02-01 03:14:08 +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
Héctor Ramón Jiménez
cfbeb05e32
Fix code block merging with previous spans in markdown widget 2025-01-30 01:46:04 +01:00
Héctor Ramón Jiménez
30ee9d024d
Update dependencies in Cargo.lock 2025-01-29 05:13:04 +01:00
Héctor
9606df57b3
Merge pull request #2764 from iced-rs/wasm/enable-animation
Enable `animation` module for Wasm target
2025-01-29 05:10:25 +01:00
Héctor Ramón Jiménez
a56c2f3d81
Enable animation module for Wasm target 2025-01-29 04:55:51 +01:00
Héctor
9b959d3e80
Merge pull request #2758 from airstrike/mouse-transformation
Implement `Mul<Transformation>` for `mouse::Cursor` and `mouse::Click`
2025-01-28 18:47:28 +01:00
Héctor
12c9277c7c
Merge pull request #2761 from rhysd/replace-directories-next
Replace unmaintained `directories-next` crate with `directories` crate
2025-01-28 18:29:58 +01:00
Héctor
ce7eafcd63
Merge pull request #2760 from rhysd/remove-winapi
Remove unused `winapi` crate from dependencies
2025-01-28 18:28:38 +01:00
Andy Terra
6576184bae Move cursor Transformation to mouse::cursor module 2025-01-28 11:34:36 -05:00
rhysd
f51ce47f37 Replace unmaintained directories-next crate with directories crate
[`directories-next`][1] crate is no longer maintained and
[`directories`][2] crate is still maintained. `directories-next`
had been forked from `directories` but it died because the original
`directories` crate revived the maintenance.

[1]: https://crates.io/crates/directories-next
[2]: https://crates.io/crates/directories
2025-01-29 00:45:14 +09:00
rhysd
bf3b40839b Remove unused winapi crate from dependencies 2025-01-28 21:41:37 +09:00
Héctor
ce4ee9323d
Merge pull request #2759 from iced-rs/fix/respect-editor-line-endings
Introduce `LineEnding` to `editor` and fix inconsistencies
2025-01-28 06:36:19 +01:00
Héctor Ramón Jiménez
87165ccd29
Introduce LineEnding to editor and fix inconsistencies 2025-01-28 06:23:38 +01:00
Andy Terra
34673fc54f Implement Mul<Transformation> for mouse::Click 2025-01-27 23:05:51 -05:00
Andy Terra
0802ed3b3a Implement Mul<Transformation> for mouse::Cursor 2025-01-27 23:05:24 -05:00
Héctor
00a048677f
Merge pull request #2757 from iced-rs/feature/animation-api
`Animation` API for application code
2025-01-28 03:47:13 +01:00
Héctor Ramón Jiménez
cd445f758f
Display grid placeholder when loading gallery example 2025-01-28 03:25:18 +01:00
Héctor Ramón Jiménez
ae35992048
Add repeat, repeat_forever, and auto_reverse to Animation 2025-01-28 03:24:48 +01:00
Héctor Ramón Jiménez
23d42d2827
Rename Animation::in_progress to is_animating 2025-01-28 03:04:31 +01:00
Héctor Ramón Jiménez
086b06553b
Remove unnecessary endpoint function in gallery example 2025-01-27 20:47:59 +01:00
Héctor Ramón Jiménez
e1ad0910f0
Change period to Week in gallery example 2025-01-27 20:46:47 +01:00
Héctor Ramón Jiménez
8fd87f94eb
Make animation module only available in native 2025-01-27 05:32:18 +01:00
Héctor Ramón Jiménez
2753103942
Fix broken intra-doc link in animation 2025-01-27 05:22:37 +01:00
Héctor Ramón Jiménez
e2c52c9728
Implement AI gallery example 🎉
It displays the most popular daily images of Civitai!
2025-01-27 05:01:43 +01:00
Héctor Ramón Jiménez
890d852e05
Implement Animation::value 2025-01-27 05:01:24 +01:00
Héctor Ramón Jiménez
bf600a0811
Draft basic Animation API in iced_core 2025-01-27 02:50:51 +01:00
Héctor
da1726b134
Merge pull request #2749 from rhysd/const-from-rgb8
Make `Color::from_rgb8` and `Color::from_rgba8` const
2025-01-27 01:27:26 +01:00
Héctor Ramón Jiménez
81f05f00c2
Use color! macro in Palette definitions 2025-01-27 01:17:45 +01:00
Héctor Ramón Jiménez
ce07acf6fe
Make all Color constructors const 🎉 2025-01-27 01:09:16 +01:00
Héctor Ramón Jiménez
d9a454ac4d
Bump MSRV to 1.82 2025-01-27 00:59:17 +01:00