summaryrefslogtreecommitdiffstats
path: root/widget (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix priority of `Binding::Delete` in `text_editor`Libravatar Héctor Ramón Jiménez2024-09-131-1/+3
| | | | Co-authored-by: Trevor Campbell <trevor@shartrec.com>
* Set `Limits::width` in `TextEditor` layoutLibravatar Héctor Ramón Jiménez2024-09-131-1/+1
|
* Take `Into<Pixels>` in `TextEditor::width`Libravatar Héctor Ramón Jiménez2024-09-131-2/+2
| | | | Since a `Shrink` width would not make sense.
* feat: add width setterLibravatar Samson2024-09-131-0/+6
|
* Add `label` method to `Toggler`Libravatar Héctor Ramón Jiménez2024-09-112-8/+11
|
* Add disabled state and `on_toggle` handler to `Toggler`Libravatar Héctor Ramón Jiménez2024-09-112-14/+48
| | | | Co-authored-by: Your Name here only <krishnsundaram@gmail.com>
* Merge pull request #2450 from breynard0/masterLibravatar Héctor Ramón2024-09-101-14/+35
|\ | | | | Add `on_scroll` handler to `mouse_area` widget
| * Simplify signatures of `on_move` and `on_scroll` for `mouse_area`Libravatar Héctor Ramón Jiménez2024-09-101-10/+7
| |
| * Use `cursor` changes to notify mouse events in `mouse_area`Libravatar Héctor Ramón Jiménez2024-09-101-5/+10
| | | | | | | | Fixes #2433.
| * Add `on_scroll` handler to `mouse_area` widgetLibravatar Siliwolf2024-09-101-3/+22
| |
* | Improve slider widget styling. (#2444)Libravatar B0ney2024-09-102-22/+26
|/ | | | | | | | | | | | * 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
* Render border above active progress for progress_bar widget. (#2443)Libravatar B0ney2024-09-101-2/+6
| | | | | | | * 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.
* Notify all `scrollable::Viewport` changesLibravatar Héctor Ramón Jiménez2024-09-101-14/+44
| | | | Co-authored-by: Daniel Yoon <101683475+Koranir@users.noreply.github.com>
* Implement `scroll_by` operation for `scrollable`Libravatar lufte2024-09-102-31/+60
| | | | | `scroll_by` allows scrolling an absolute offset that is applied to the current scrolling position.
* Add `mouse::Button` to `mouse::Click`Libravatar Isaac Marovitz2024-09-092-2/+6
|
* Enable horizontal scrolling without shift modifierLibravatar Matt Woelfel2024-09-081-6/+20
| | | | Fixes #2359.
* Implement mouse wheel transactions for `scrollable`Libravatar Héctor Ramón Jiménez2024-09-081-9/+34
| | | | | | See https://wiki.mozilla.org/Gecko:Mouse_Wheel_Scrolling#Mouse_wheel_transaction Co-authored-by: Daniel Yoon <101683475+Koranir@users.noreply.github.com>
* Simplify type signature of `TextInput` methodsLibravatar Héctor Ramón Jiménez2024-09-071-21/+11
|
* Add `*_maybe` helper methods for `TextInput`Libravatar JL7102024-09-071-0/+39
|
* Deprecate the `component` widgetLibravatar Héctor Ramón Jiménez2024-09-053-0/+14
|
* Flag `lazy` feature types directlyLibravatar Héctor Ramón Jiménez2024-09-055-5/+6
| | | | Co-authored-by: JL710 <76447362+JL710@users.noreply.github.com>
* Fix `toggler` exampleLibravatar Héctor Ramón Jiménez2024-09-041-1/+1
|
* Add `text::Wrapping` supportLibravatar Héctor Ramón Jiménez2024-09-049-11/+69
| | | | Co-authored-by: Neeraj Jaiswal <neerajj85@gmail.com>
* Allow interactions on disabled `text_input`Libravatar Héctor Ramón Jiménez2024-09-041-19/+28
| | | | Co-authored-by: Daniel Yoon <101683475+Koranir@users.noreply.github.com>
* Implement `From<Style>` for `container::StyleFn`Libravatar Héctor Ramón Jiménez2024-09-021-0/+6
| | | | Co-authored-by: wiiznokes <78230769+wiiznokes@users.noreply.github.com>
* Introduce `container::background` style helperLibravatar Héctor Ramón Jiménez2024-09-021-0/+5
|
* Merge pull request #2535 from bungoboingo/text-input-alignmentLibravatar Héctor Ramón2024-08-241-10/+69
|\ | | | | Implement `align_x` for `TextInput`
| * Implement `align_x` for `TextInput`Libravatar Shan2024-08-241-10/+69
| | | | | | | | Co-authored-by: Shan <shankern@protonmail.com>
* | Merge pull request #2555 from mtkennerly/feature/pane-grid-compact-controlsLibravatar Héctor Ramón2024-08-243-69/+309
|\ \ | | | | | | Add compact variant for pane grid controls
| * | Add compact variant for pane grid controlsLibravatar mtkennerly2024-08-223-69/+309
| |/
* | Fix ambiguous `rich_text` link in `widget::markdown`Libravatar Héctor Ramón Jiménez2024-08-221-1/+1
| |
* | Make `RichText` generic over data structureLibravatar Héctor Ramón Jiménez2024-08-224-83/+212
| | | | | | | | ... and decouple `markdown::parse` from theming
* | Decouple `markdown` widget from built-in `Theme`Libravatar Héctor Ramón Jiménez2024-08-211-4/+19
|/
* Short-circuit scrolling passthrough in `Stack`Libravatar Héctor Ramón Jiménez2024-08-141-1/+1
|
* Fix scroll event passthrough in `Stack` widgetLibravatar Héctor Ramón Jiménez2024-08-141-5/+21
|
* Find `layers_below` only if `Stack` is hoveredLibravatar Héctor Ramón Jiménez2024-08-141-3/+3
|
* Fix cursor passthrough in `Stack` during `draw`Libravatar Héctor Ramón Jiménez2024-08-141-17/+52
|
* Use `clipped_cursor` directly in `text_editor`Libravatar Héctor Ramón Jiménez2024-08-121-6/+1
|
* Merge pull request #2536 from meithecatte/editor-clippingLibravatar Héctor Ramón2024-08-121-20/+13
|\ | | | | text_editor: Avoid rendering text outside the border
| * Fix clipping area of `text_editor` placeholderLibravatar Héctor Ramón Jiménez2024-08-121-1/+1
| |
| * Remove cursor snapping hack in `text_editor`Libravatar Héctor Ramón Jiménez2024-08-121-1/+1
| | | | | | | | | | The `quad` shader now properly takes care of snapping lines to the pixel grid.
| * Make `Padding` affect `text_editor` clippingLibravatar Héctor Ramón Jiménez2024-08-121-17/+10
| |
| * text_editor: Avoid rendering text outside the borderLibravatar Maja Kądziołka2024-08-031-3/+3
| | | | | | | | | | If the height could fit slightly less than an extra line, said line would protrude beyond the border of the text editor.
* | Display top contents in `hover` widget when focusedLibravatar Héctor Ramón Jiménez2024-08-081-4/+26
| |
* | Introduce `black_box` and `chain` in `widget::operation`Libravatar Héctor Ramón Jiménez2024-08-0818-23/+23
| |
* | Implement `row::Wrapping` widgetLibravatar Héctor Ramón Jiménez2024-08-061-0/+200
| | | | | | | | | | | | | | | | | | 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.
* | Fix `hover` widget not relaying events when overlay is activeLibravatar Héctor Ramón Jiménez2024-08-051-0/+1
| |
* | Implement `State::options` for `combo_box`Libravatar Héctor Ramón Jiménez2024-08-051-13/+25
| |
* | Introduce `Svg` struct in `core::svg`Libravatar Héctor Ramón Jiménez2024-08-042-7/+9
| |
* | Introduce `Image` struct in `core::image`Libravatar Héctor Ramón Jiménez2024-08-043-14/+20
| |