Commit graph

63 commits

Author SHA1 Message Date
PgBiel
76f5bc2cce
add SelectAll to TextEditor 2024-07-08 01:16:31 +02:00
Héctor Ramón Jiménez
6c1027af8d
Fix text_editor always capturing scroll events 2024-06-17 03:37:00 +02:00
Héctor Ramón Jiménez
3312dc8080
Create jump and macos_command methods in keyboard::Modifiers 2024-05-31 16:23:09 +02:00
Héctor Ramón Jiménez
8cfa8149f5
Keep unary motion function in text_editor 2024-05-31 16:14:55 +02:00
BradySimon
bd48946b02
Add Command + ArrowLeft/Right input behavior for macos 2024-05-31 16:11:33 +02:00
Héctor Ramón Jiménez
73088a6fc1
Fix out of bounds caret in TextEditor in some circumstances 2024-04-26 15:17:35 +02:00
mtkennerly
f962c6ce06
Allow checking whether a TextEditor is focused 2024-04-15 08:41:29 -04:00
Bingus
385a4490fb
Expose line_height & text_size fields for the text_editor widget 2024-03-29 16:58:11 -07:00
Héctor Ramón Jiménez
f0ae9a0c38
Use Catalog approach for all widgets 2024-03-24 05:03:09 +01:00
Héctor Ramón Jiménez
3e190b9ee0
Use closures for TextEditor::style 2024-03-12 15:47:37 +01:00
Héctor Ramón Jiménez
77bf93c32f
Use integer coordinates for input caret
This should stop the caret from changing thickness
in screens with an integral scale factor.
2024-03-10 12:41:53 +01:00
Héctor Ramón Jiménez
833538ee7f
Leverage DefaultStyle traits instead of Default 2024-03-07 20:11:32 +01:00
Héctor Ramón Jiménez
6785a452ee
Fix broken links in documentation 2024-03-07 00:19:24 +01:00
Héctor Ramón Jiménez
905f2160e6
Move Theme type to iced_core 2024-03-07 00:14:41 +01:00
Héctor Ramón Jiménez
34e7c6593a
Use Style struct pattern instead of trait for all widgets 2024-03-06 20:30:58 +01:00
Héctor Ramón Jiménez
68c8f23f02
Simplify theming for TextEditor widget 2024-03-06 15:20:17 +01:00
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