Commit graph

3846 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
86d396cf8b
Avoid adding unnecessary spans when syntax highlighting 2023-09-17 23:15:38 +02:00
Héctor Ramón Jiménez
790c0dabcf
Implement syntax highlighting cache in editor example 2023-09-17 21:46:19 +02:00
Héctor Ramón Jiménez
2897986f2d
Notify Highlighter of topmost line change 2023-09-17 19:27:51 +02:00
Héctor Ramón Jiménez
23d00445ff
Use saturating_sub for last_visible_line in text::Editor 2023-09-17 19:06:20 +02:00
Héctor Ramón Jiménez
d3011992a7
Implement basic syntax highlighting with syntect in editor example 2023-09-17 19:04:23 +02:00
Héctor Ramón Jiménez
76dc82e8e8
Draft Highlighter API 2023-09-17 15:29:14 +02:00
Héctor Ramón Jiménez
723111bb0d
Remove unnecessary into_iter call in graphics::text 2023-09-16 19:09:31 +02:00
Héctor Ramón Jiménez
45c5cfe577
Avoid drag on double or triple click for now in TextEditor 2023-09-16 19:05:31 +02:00
Héctor Ramón Jiménez
c9dbccba46
Use fork of cosmic-text with some minor fixes 2023-09-16 16:27:02 +02:00
Héctor Ramón Jiménez
d051f21597
Implement Copy and Paste actions for text::Editor 2023-09-16 15:40:16 +02:00
Héctor Ramón Jiménez
c6d0443627
Implement methods to query the contents of a TextEditor 2023-09-16 15:27:25 +02:00
Héctor Ramón Jiménez
f7fc13d98c
Fix Copy action being triggered without any modifiers 2023-09-14 22:56:28 +02:00
Héctor Ramón Jiménez
8e6e37e0ce
Fix broken intra-doc links 2023-09-14 19:05:50 +02:00
Héctor Ramón Jiménez
3afac11784
Remove min_bounds field in graphics::text::Editor 2023-09-14 18:58:52 +02:00
Héctor Ramón Jiménez
c7d02e24e6
Remove Editor::min_bounds and use bounds instead 2023-09-14 18:57:09 +02:00
Héctor Ramón Jiménez
8cad1d682a
Implement Action::SelectLine in text::Editor 2023-09-14 15:23:20 +02:00
Héctor Ramón Jiménez
f7d66899f1
Implement Action::SelectWord in text::Editor 2023-09-14 15:20:23 +02:00
Héctor Ramón Jiménez
edd5918475
Implement motion selection in text::Editor 2023-09-14 14:25:46 +02:00
Héctor Ramón Jiménez
b24b94d827
Handle motions when a selection is present in text::Editor 2023-09-14 14:18:49 +02:00
Héctor Ramón Jiménez
e6c2db8a93
Fix Cursor::Caret position on lines that wrap on whitespace 2023-09-14 00:47:04 +02:00
Héctor Ramón Jiménez
ab020383b9
Fix scrolling offset for Cursor::Selection 2023-09-14 00:41:15 +02:00
Héctor Ramón Jiménez
c829b4b04e
Fix unused import in iced_renderer 2023-09-13 17:55:33 +02:00
Héctor Ramón Jiménez
f14ef7a606
Fix clippy lints 2023-09-13 16:31:56 +02:00
Héctor Ramón Jiménez
f4c51a96d5
Introduce Motion concept in core::text::editor 2023-09-13 16:11:43 +02:00
Héctor Ramón Jiménez
52b36a9574
Use Theme::Dark in editor example 2023-09-13 15:17:04 +02:00
Héctor Ramón Jiménez
d502c9f16f
Unify Focus and Click updates in widget::text_editor 2023-09-13 15:16:47 +02:00
Héctor Ramón Jiménez
40eb648f1e
Implement Cursor::Selection calculation in Editor::cursor 2023-09-13 15:00:33 +02:00
Héctor Ramón Jiménez
a28ed825c1
Fix subline positioning in Editor::cursor 2023-09-12 20:57:46 +02:00
Héctor Ramón Jiménez
4389ab9865
Fix cursor offset with Affinity::After at the end of lines in Editor::cursor 2023-09-12 18:27:30 +02:00
Héctor Ramón Jiménez
abab144857
Return Cursor::Caret if selection matches cursor position in Editor::cursor 2023-09-12 18:20:02 +02:00
Héctor Ramón Jiménez
1455911b63
Add Enter variant to Action in text::Editor 2023-09-12 15:03:23 +02:00
Héctor Ramón Jiménez
6448429103
Draft Editor API and TextEditor widget 2023-09-12 14:51:00 +02:00
Héctor Ramón Jiménez
346af3f8b0
Make FontSystem global and simplify Paragraph API 2023-09-11 02:47:24 +02:00
Héctor Ramón Jiménez
9245423c5d
Fix link in CONTRIBUTING guide 2023-09-11 01:10:31 +02:00
Héctor Ramón
4fe69c83f2
Merge pull request #2078 from Nisatru/fix-combo-box
Fix `ComboBox` widget panic on wasm
2023-09-11 00:20:04 +02:00
Thomas
90bd581d8e Fix ComboBox widget panic on wasm 2023-09-10 10:18:58 +02:00
Héctor Ramón Jiménez
bc1bde0d5c
Fix ComboBox widget not displaying selection text 2023-09-10 03:36:31 +02:00
Héctor Ramón Jiménez
6d379b7fce
Fix unnecessary dereference in Tooltip 2023-09-10 03:16:55 +02:00
Héctor Ramón Jiménez
b329950a42
Fix Tooltip widget state management 2023-09-10 03:15:31 +02:00
Héctor Ramón Jiménez
df72fd1095
Fix Widget::layout implementation of MouseArea 2023-09-10 03:04:02 +02:00
Héctor Ramón
1af5ff41ab
Merge pull request #2058 from iced-rs/explicit-text-caching
Explicit text caching
2023-09-10 01:14:39 +02:00
Héctor Ramón Jiménez
1cc5bf59d7
Fix CHANGELOG 2023-09-10 00:59:54 +02:00
Héctor Ramón Jiménez
b42b24b79a
Fix (more) broken intradoc links
Good thing I just set up CI earlier for this 😅
2023-09-10 00:55:46 +02:00
Héctor Ramón Jiménez
c692845744
Fix broken intradoc link in widget::keyed module 2023-09-10 00:44:58 +02:00
Héctor Ramón Jiménez
8aa7874ba9
Fix Wasm build of todos example 2023-09-10 00:43:38 +02:00
Héctor Ramón Jiménez
b8e5693a30
Merge branch 'master' into explicit-text-caching 2023-09-10 00:34:21 +02:00
Héctor Ramón
a3489e4af9
Merge pull request #2076 from Nisatru/run-web
Get web examples running again
2023-09-09 23:24:54 +02:00
Héctor Ramón Jiménez
9565123389
Remove unused unicode-segmentation dependency from iced_graphics 2023-09-09 23:06:06 +02:00
Héctor Ramón Jiménez
bbb9c2d928
Count grapheme clusters in Paragraph::grapheme_position 2023-09-09 23:05:44 +02:00
Thomas
fbc9ef74c4 Change init_with_level to init in examples 2023-09-09 22:42:41 +02:00