Héctor Ramón Jiménez
6e4970c01a
Add label method to Toggler
2024-09-11 00:22:39 +02:00
Héctor Ramón Jiménez
c741688b4c
Add disabled state and on_toggle handler to Toggler
...
Co-authored-by: Your Name here only <krishnsundaram@gmail.com>
2024-09-11 00:22:13 +02:00
Héctor Ramón
f7bca570c3
Merge pull request #2450 from breynard0/master
...
Add `on_scroll` handler to `mouse_area` widget
2024-09-10 23:51:16 +02:00
Héctor Ramón Jiménez
25e54a9acb
Simplify signatures of on_move and on_scroll for mouse_area
2024-09-10 23:41:07 +02:00
Héctor Ramón Jiménez
c711750be7
Use cursor changes to notify mouse events in mouse_area
...
Fixes #2433 .
2024-09-10 23:39:49 +02:00
Siliwolf
bf4796bbeb
Add on_scroll handler to mouse_area widget
2024-09-10 23:32:16 +02:00
B0ney
abd323181d
Improve slider widget styling. ( #2444 )
...
* Overhaul slider styling
* Add `border` attribute to `Rail`
* Replace `color` attribute with `background` for handle
* Replace `colors` with `backgrounds` for the Rail.
* code consistency
* remove unused import
2024-09-10 21:30:37 +00:00
B0ney
ae58a40398
Render border above active progress for progress_bar widget. ( #2443 )
...
* Render border above active progress for progress_bar widget.
* Fix gap showing between border and background.
* Include border style in active bar and make the border color transparent.
2024-09-10 20:59:00 +00:00
Héctor Ramón Jiménez
716a11cc48
Notify all scrollable::Viewport changes
...
Co-authored-by: Daniel Yoon <101683475+Koranir@users.noreply.github.com>
2024-09-10 22:39:56 +02:00
lufte
e102e89c6a
Implement scroll_by operation for scrollable
...
`scroll_by` allows scrolling an absolute offset
that is applied to the current scrolling position.
2024-09-10 22:09:03 +02:00
Isaac Marovitz
9edd805c02
Add mouse::Button to mouse::Click
2024-09-09 23:45:15 +02:00
Matt Woelfel
0a0ea30059
Enable horizontal scrolling without shift modifier
...
Fixes #2359 .
2024-09-08 19:03:31 +02:00
Héctor Ramón Jiménez
502c5fdfbc
Implement mouse wheel transactions for scrollable
...
See https://wiki.mozilla.org/Gecko:Mouse_Wheel_Scrolling#Mouse_wheel_transaction
Co-authored-by: Daniel Yoon <101683475+Koranir@users.noreply.github.com>
2024-09-08 16:00:22 +02:00
Héctor Ramón Jiménez
09174d5a25
Simplify type signature of TextInput methods
2024-09-07 23:00:48 +02:00
JL710
827ba5b16c
Add *_maybe helper methods for TextInput
2024-09-07 22:57:15 +02:00
Héctor Ramón Jiménez
9426418adb
Deprecate the component widget
2024-09-05 15:08:31 +02:00
Héctor Ramón Jiménez
7cb12e3c3b
Flag lazy feature types directly
...
Co-authored-by: JL710 <76447362+JL710@users.noreply.github.com>
2024-09-05 14:49:18 +02:00
Héctor Ramón Jiménez
3a70462a72
Fix toggler example
2024-09-04 21:33:07 +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
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
Kiëd Llaentenn
0d298b70d2
slider: handle mouse wheel events
2024-09-02 09:03:48 -04: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
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
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
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