Commit graph

5085 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
3a70462a72
Fix toggler example 2024-09-04 21:33:07 +02:00
Héctor Ramón Jiménez
529c459c56
Remove unnecessary buffer_mut_from_editor call 2024-09-04 21:28:44 +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
8d826cc662
Merge pull request #2262 from Koranir/text-input-disable-select
Allow disabled `TextInput` to still be interacted with
2024-09-04 20:37:33 +02:00
Héctor Ramón Jiménez
9572bd1e90
Allow interactions on disabled text_input
Co-authored-by: Daniel Yoon <101683475+Koranir@users.noreply.github.com>
2024-09-04 20:27:28 +02:00
Héctor Ramón Jiménez
9628dc20d5
Reconnect Clipboard on window close
Fixes #2564
2024-09-03 11:23:54 +02:00
Héctor Ramón
9957481d41
Merge pull request #2261 from wiiznokes/container-style-colored
Add a colored variant for Container style
2024-09-02 12:11:29 +02:00
Héctor Ramón Jiménez
9d7aa11623
Implement From<Style> for container::StyleFn
Co-authored-by: wiiznokes <78230769+wiiznokes@users.noreply.github.com>
2024-09-02 12:00:55 +02:00
Héctor Ramón Jiménez
feff4d1cba
Introduce container::background style helper 2024-09-02 11:59:35 +02:00
Héctor Ramón
cb94e40b60
Merge pull request #2244 from dtzxporter/separate-image-widget-from-image-codecs
Separate image widget support from image codecs.
2024-09-02 11:57:35 +02:00
Héctor Ramón Jiménez
fa66610f24
Introduce image-without-codecs feature flag
Co-authored-by: dtzxporter <dtzxporter@users.noreply.github.com>
2024-09-02 11:47:55 +02:00
Héctor Ramón Jiménez
0dcec519be
Add get_scale_factor task to window module 2024-08-30 13:02:49 +02:00
Héctor Ramón
043f030214
Merge pull request #2535 from bungoboingo/text-input-alignment
Implement `align_x` for `TextInput`
2024-08-24 02:44:55 +02:00
Shan
6c741923c6
Implement align_x for TextInput
Co-authored-by: Shan <shankern@protonmail.com>
2024-08-24 02:36:18 +02:00
Héctor Ramón
84e766fd00
Merge pull request #2555 from mtkennerly/feature/pane-grid-compact-controls
Add compact variant for pane grid controls
2024-08-24 01:58:53 +02:00
mtkennerly
3a434c9505
Add compact variant for pane grid controls 2024-08-22 12:43:48 -04:00
Héctor Ramón Jiménez
bb6fa42924
Fix ambiguous rich_text link in widget::markdown 2024-08-22 02:30:12 +02:00
Héctor Ramón Jiménez
4c883f12b4
Make RichText generic over data structure
... and decouple `markdown::parse` from theming
2024-08-22 02:24:06 +02:00
Héctor Ramón Jiménez
55764b923e
Decouple markdown widget from built-in Theme 2024-08-21 02:34:03 +02:00
Héctor Ramón Jiménez
9b99b932bc
Produce window::Event::Closed only if window exists 2024-08-15 02:11:17 +02:00
Héctor Ramón Jiménez
7c2abc9b8b
Fix crash when application boots from a URL event in macOS 2024-08-15 01:52:45 +02:00
Héctor Ramón Jiménez
515772c9f8
Rename operation::chain to then
... and make `focus_*` operations generic over
the output type.
2024-08-15 01:30:24 +02:00
Héctor Ramón Jiménez
cfd2e7b116
Short-circuit scrolling passthrough in Stack 2024-08-14 19:06:16 +02:00
Héctor Ramón Jiménez
889d8b891f
Fix scroll event passthrough in Stack widget 2024-08-14 19:04:26 +02:00
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
8b45d620d0
Revert window::close producing a window::Id
Instead, subscribing to `window::close_events` is
preferable; since most use cases will want to react
to the user closing a window as well.
2024-08-12 05:50:22 +02:00
Héctor Ramón Jiménez
22fc5ce0ea
Produce window::Event::Closed on window::close 2024-08-12 05:20:44 +02:00
Héctor Ramón Jiménez
01aa84e41a
Make window::close return and introduce Task::discard 2024-08-12 05:12:42 +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
8e87d664d4
Merge pull request #2547 from meithecatte/do-not-segfault
iced_winit: drop Clipboard before Window
2024-08-12 03:18:48 +02:00
Héctor Ramón Jiménez
afa8ad3b11
Fix integration example 2024-08-12 03:10:46 +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
7decbb3d5d
Fix formatting in iced_winit::clipboard 2024-08-12 03:07:11 +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
373e887a58
Focus text_editor at start-up in editor example 2024-08-12 02:55:49 +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
Maja Kądziołka
f92e01e913
iced_winit: drop Clipboard before Window
Fixes #2482, avoids nasal daemons
2024-08-11 22:33:17 +02:00
Héctor Ramón
1c8850023f
Merge pull request #2544 from iced-rs/display-hover-when-focused
Display top contents in `hover` widget when focused
2024-08-08 01:37:51 +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
d5ffe98ce9
Merge pull request #2539 from iced-rs/feature/row-wrapping
Implement `row::Wrapping` widget
2024-08-06 18:06:42 +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
145c3dc8fc
Merge pull request #2537 from iced-rs/feature/canvas-image-support
`image` and `svg` support for `canvas`
2024-08-04 14:52:29 +02:00
Héctor Ramón Jiménez
cc076903dd
Invert Earth's rotation in solar_system example 2024-08-04 14:38:42 +02:00
Héctor Ramón
9cccaebb04
Merge pull request #2507 from kmoon2437/master
update version of "web-sys" to 0.3.69
2024-08-04 05:17:53 +02:00
Cho Yunjin
5dc668f901
update version of "web-sys" to 0.3.69 2024-08-04 05:08:47 +02:00