Commit graph

47 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
996be15f36
Prioritize TextInput and TextEditor commands over text insertion 2024-02-28 09:40:14 +01:00
Héctor Ramón Jiménez
4742f3fef8
Use find(...) instead of filter(...).next() 2024-02-21 13:08:56 +01:00
Héctor Ramón Jiménez
680e8425c3
Prioritize text insertion in TextInput and TextEditor 2024-02-21 13:00:34 +01:00
Héctor Ramón Jiménez
508b3fe1f1
Introduce Kind in core::clipboard 2024-02-13 03:15:21 +01:00
Héctor Ramón Jiménez
2ba73b0faf
Fix wrapped lines not being considered when measuring TextEditor 2024-02-07 21:48:28 +01:00
Dworv YT
8b492a9b44
feat: text-editor can shrink to content 2024-02-07 21:28:45 +01:00
Héctor Ramón Jiménez
719798441d
Fix clippy lints 2024-02-03 14:19:08 +01:00
Héctor Ramón Jiménez
db9ca1a147
Run cargo fmt 2024-02-03 14:18:11 +01:00
Radovan Blažek
79a348464e
Improve TextEditor slow scrolling behavior with touchpads.
If you scroll by only a fraction of a line, the TextEditor
stores this fraction and adds it on the next scroll event.
2024-02-03 14:14:50 +01:00
jhannyj
feccf15e15 Add cut functionality to text editor 2024-01-25 20:55:51 -05:00
Héctor Ramón Jiménez
7a50e9e8fb
Convert Renderer::Theme to generic Widget type 2024-01-21 17:56:01 +01:00
Héctor Ramón Jiménez
25f182f933
Introduce Border struct analogous to Shadow 2024-01-20 13:29:25 +01:00
Héctor Ramón Jiménez
370b2f6df7
Use Default implementation of renderer::Quad 2024-01-20 12:25:07 +01:00
Nick Senger
cc906c83cd
feat: quad shadows 2024-01-20 11:59:37 +01:00
Héctor Ramón Jiménez
64d1ce5532
Refactor KeyCode into Key and Location 2024-01-16 13:28:00 +01:00
Héctor Ramón Jiménez
534c7dd7b0
Merge branch 'master' into update-winit 2024-01-16 12:02:42 +01:00
Héctor Ramón Jiménez
d278bfd21d
Replace width and height with Widget::size 2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
0655a20ad1
Make Shrink have priority over Fill in layout 2024-01-04 06:51:21 +01:00
Héctor Ramón Jiménez
e819c2390b
Update winit to 0.29.4 2023-12-15 13:39:00 +01:00
Bingus
07b0aed5d3
Added the ability to change the style of a TextEditor 2023-12-06 14:52:53 -08:00
Héctor Ramón Jiménez
936d480267
Clip text to viewport bounds instead of layout bounds 2023-12-01 16:04:27 +01:00
Héctor Ramón Jiménez
c8eca4e6bf
Improve TextEditor scroll interaction with a touchpad 2023-10-27 16:37:58 +02:00
Héctor Ramón Jiménez
e579d85530
Implement missing debug implementations in iced_widget 2023-10-27 05:08:06 +02:00
Héctor Ramón Jiménez
625cd745f3
Write documentation for the new text APIs 2023-10-27 05:04:14 +02:00
Héctor Ramón Jiménez
8cc19de254
Add text helper method for text_editor::Content 2023-09-22 06:00:51 +02:00
Héctor Ramón Jiménez
70e49df428
Fix selection clipping out of bounds in TextEditor 2023-09-22 05:50:31 +02:00
Héctor Ramón Jiménez
68d49459ce
Fix vertical scroll for TextEditor 2023-09-21 06:20:41 +02:00
Héctor Ramón Jiménez
7373dd856b
Scroll at least one line on macOS in TextEditor 2023-09-21 06:15:12 +02:00
Héctor Ramón Jiménez
da5dd2526a
Round ScrollDelta::Lines in TextEditor 2023-09-21 06:07:19 +02:00
Héctor Ramón Jiménez
29fb4eab87
Scroll TextEditor only if cursor.is_over(bounds) 2023-09-20 01:23:50 +02:00
Héctor Ramón Jiménez
f806d001e6
Introduce new iced_highlighter subcrate 2023-09-19 20:48:50 +02:00
Héctor Ramón Jiménez
4e757a26d0
Implement Scroll action in text::editor 2023-09-19 01:18:06 +02:00
Héctor Ramón Jiménez
e7326f0af6
Flesh out the editor example a bit more 2023-09-18 19:07:41 +02:00
Héctor Ramón Jiménez
8446fe6de5
Implement theme selector in editor example 2023-09-18 14:38:54 +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
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
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
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
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
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
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