Héctor Ramón Jiménez
5d7d74ffa4
Find layers_below only if Stack is hovered
2024-08-14 18:07:26 +02:00
Héctor Ramón Jiménez
9ed7fb8866
Fix cursor passthrough in Stack during draw
2024-08-14 18:02:33 +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
0ce81a0e0e
Display top contents in hover widget when focused
2024-08-08 01:25:15 +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
Héctor Ramón Jiménez
6fbbc30f5c
Implement row::Wrapping widget
...
If you have a `Row`, simply call `Row::wrap` at
the end to turn it into a `Row` that will wrap its
contents.
The original alignment of the `Row` is preserved
per row wrapped.
2024-08-06 03:22:44 +02:00
Héctor Ramón Jiménez
ff0da4dc81
Fix hover widget not relaying events when overlay is active
2024-08-05 23:27:40 +02:00
Héctor Ramón Jiménez
3a3fda83cd
Implement State::options for combo_box
2024-08-05 23:12:26 +02:00
Héctor Ramón Jiménez
d4b08462e5
Introduce Svg struct in core::svg
2024-08-04 04:52:55 +02:00
Héctor Ramón Jiménez
92bd3ecd6b
Introduce Image struct in core::image
2024-08-04 04:30:12 +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
e84070acef
Implement From<&Handle> for image::Handle
2024-08-03 16:20:12 +02:00
Héctor Ramón Jiménez
9be509d3b3
Reintroduce Scrollable::with_direction
2024-07-30 22:21:52 +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
ca8ebb16a6
Implement strikethrough support for rich_text spans
2024-07-28 17:45:11 +02:00
Héctor Ramón Jiménez
9ce55eb511
Make underline positioning aware of line_height
2024-07-28 15:40:22 +02:00
Héctor Ramón Jiménez
ca31dcadd5
Underline rich_text links when hovered
2024-07-28 15:10:33 +02:00
Héctor Ramón Jiménez
bf16d1ddcd
Implement underline support for rich_text spans
2024-07-28 15:09:54 +02:00
Héctor Ramón Jiménez
41a7318e5d
Remove comment in text::Rich::draw
2024-07-28 14:19:24 +02:00
Héctor Ramón Jiménez
2d69464846
Make markdown::parse take a Palette value
2024-07-28 13:59:40 +02:00
Héctor Ramón Jiménez
2796a6bc97
Add padding to text::Span
2024-07-28 13:58:14 +02:00
Héctor Ramón Jiménez
f7fe1edcbb
Improve ergonomics of span background highlighting
2024-07-28 13:44:08 +02:00
Héctor Ramón Jiménez
4dc7b9b961
Use dark background for inline code in markdown widget
2024-07-28 13:15:04 +02:00
Cory Forsstrom
ddcf02f9d0
Add background styling to span / rich text
2024-07-28 13:06:57 +02:00
Héctor Ramón Jiménez
23a7e9f981
Use container::dark style for markdown code blocks
2024-07-27 18:23:12 +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
555ee3e9c6
Fix lints for Rust 1.80
2024-07-26 11:01:33 +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
faa5d0c58d
Unify Link and Message generics in text::Rich
2024-07-24 10:12:33 +02:00
Héctor Ramón Jiménez
c47844ca2b
Fix span widget helper missing Link generic
2024-07-23 18:15:15 +02:00
Héctor Ramón Jiménez
dcdf130700
Use horizontal scrollable for code blocks in markdown widget
2024-07-21 20:07:58 +02:00
Héctor Ramón Jiménez
65b525af7f
Introduce markdown::Settings
2024-07-21 20:00:02 +02:00
Héctor Ramón Jiménez
f830454ffa
Use url for markdown links
2024-07-21 18:16:32 +02:00
Héctor Ramón Jiménez
78c4f7e646
Use latest spans to retreive Link in rich_text
2024-07-21 14:01:54 +02:00
Héctor Ramón Jiménez
7072c696a0
Rename on_link_click to on_link
2024-07-21 13:12:38 +02:00
Héctor Ramón Jiménez
9bfaf2840c
Add Link support to rich_text widget
2024-07-21 12:45:05 +02:00
Héctor Ramón Jiménez
4b44079f34
Use from_iter in rich_text! macro
2024-07-20 19:54:25 +02:00
Héctor Ramón Jiménez
68c8d913ef
Support nested lists in markdown widget
2024-07-20 19:00:54 +02:00
Héctor Ramón Jiménez
7b0945729a
Make container::dark darker and rounded
2024-07-20 15:57:58 +02:00
Héctor Ramón Jiménez
58f361d680
Introduce container::dark style
2024-07-20 15:54:02 +02:00
Héctor Ramón Jiménez
05884870fc
Make container::Style API more consistent
2024-07-20 15:53:50 +02:00