Héctor Ramón
|
6bed89973d
|
Merge pull request #2586 from lufte/master
Set the text color determined by the style function
|
2024-09-19 06:59:27 +02:00 |
|
Héctor Ramón Jiménez
|
184ebebfe1
|
Show text_editor example in multiple places
|
2024-09-19 06:14:56 +02:00 |
|
lufte
|
8c6caefd9f
|
Set the text color determined by the style function
Fixes: https://github.com/iced-rs/iced/issues/2557
|
2024-09-18 23:34:45 -03:00 |
|
Héctor Ramón Jiménez
|
73ae2b4dbe
|
Fix priority of Binding::Delete in text_editor
Co-authored-by: Trevor Campbell <trevor@shartrec.com>
|
2024-09-13 01:26:29 +02:00 |
|
Héctor Ramón Jiménez
|
7c7e94c8d1
|
Set Limits::width in TextEditor layout
|
2024-09-13 01:10:36 +02:00 |
|
Héctor Ramón Jiménez
|
4081e2b192
|
Take Into<Pixels> in TextEditor::width
Since a `Shrink` width would not make sense.
|
2024-09-13 01:08:23 +02:00 |
|
Samson
|
ac1d98aa9b
|
feat: add width setter
|
2024-09-13 01:03:35 +02:00 |
|
Isaac Marovitz
|
9edd805c02
|
Add mouse::Button to mouse::Click
|
2024-09-09 23:45:15 +02:00 |
|
Héctor Ramón Jiménez
|
f98328f4f1
|
Add text::Wrapping support
Co-authored-by: Neeraj Jaiswal <neerajj85@gmail.com>
|
2024-09-04 21:26:47 +02:00 |
|
Héctor Ramón Jiménez
|
7740c35a2a
|
Use clipped_cursor directly in text_editor
|
2024-08-12 03:25:28 +02:00 |
|
Héctor Ramón
|
6d6f354b42
|
Merge pull request #2536 from meithecatte/editor-clipping
text_editor: Avoid rendering text outside the border
|
2024-08-12 03:07:36 +02:00 |
|
Héctor Ramón Jiménez
|
3e59d824f8
|
Fix clipping area of text_editor placeholder
|
2024-08-12 02:57:45 +02:00 |
|
Héctor Ramón Jiménez
|
be7d175388
|
Remove cursor snapping hack in text_editor
The `quad` shader now properly takes care of
snapping lines to the pixel grid.
|
2024-08-12 02:54:22 +02:00 |
|
Héctor Ramón Jiménez
|
03472dfd4f
|
Make Padding affect text_editor clipping
|
2024-08-12 02:53:23 +02:00 |
|
Héctor Ramón Jiménez
|
422568dee4
|
Introduce black_box and chain in widget::operation
|
2024-08-08 01:25:00 +02:00 |
|
Maja Kądziołka
|
4d849aaf0b
|
text_editor: Avoid rendering text outside the border
If the height could fit slightly less than an extra line, said line
would protrude beyond the border of the text editor.
|
2024-08-03 20:32:51 +02:00 |
|
Héctor Ramón Jiménez
|
6734d18359
|
Simplify focus method in text_editor
|
2024-07-29 00:54:23 +02:00 |
|
Héctor Ramón Jiménez
|
695721e120
|
Implement blinking cursor for text_editor
|
2024-07-29 00:52:26 +02:00 |
|
Héctor Ramón Jiménez
|
d1fa9537f6
|
Fix unused core import in text_editor module
|
2024-07-29 00:02:34 +02:00 |
|
Héctor Ramón Jiménez
|
16212eaf52
|
Simplify highlight method for text_editor widget
|
2024-07-28 23:59:51 +02:00 |
|
Héctor Ramón Jiménez
|
e73c8b0413
|
Reduce KeyPress duplication in text_editor
|
2024-07-26 11:02:04 +02:00 |
|
Héctor Ramón Jiménez
|
28d8b73846
|
Implement custom key binding support for text_editor
|
2024-07-26 11:02:04 +02:00 |
|
Héctor Ramón Jiménez
|
f18f08bd61
|
Fix broken doc link in text_editor
|
2024-07-24 14:57:32 +02:00 |
|
Héctor Ramón Jiménez
|
e9e06c8fe2
|
Add placeholder support to text_editor widget
|
2024-07-24 14:52:01 +02:00 |
|
Héctor Ramón Jiménez
|
904704d7c1
|
Flesh out the markdown example a bit more
|
2024-07-18 13:14:56 +02:00 |
|
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 |
|