Nick Senger
d05ac38159
Revert "provide ID to operation.container in applicable widgets"
...
This reverts commit 8f9550bcf7c1cebbf90e80683761375406ca6139.
2023-02-16 16:15:45 +01:00
Nick Senger
84a6038961
provide ID to operation.container in applicable widgets
2023-02-16 16:15:45 +01:00
Nick Senger
6a683b603d
scrollable: provide ID to operation.container
2023-02-16 16:15:41 +01:00
Héctor Ramón Jiménez
7f1d58aa45
Inline Handle::content for simplicity and efficiency
...
We can avoid downcasting `state` :^)
2023-02-14 07:09:24 +01:00
Héctor Ramón Jiménez
fee1ab69e2
Provide State reference instead of closure to pick_list::draw
2023-02-14 07:05:35 +01:00
Héctor Ramón Jiménez
bbff06b462
Use char instead of String for pick_list::Icon
2023-02-14 07:03:25 +01:00
Héctor Ramón Jiménez
0272cac89e
Move Handle and Icon definitions in pick_list
2023-02-14 07:03:24 +01:00
Héctor Ramón Jiménez
5569e12149
Rename HandleContent to Icon and simplify generics
2023-02-14 07:03:24 +01:00
Casper Storm
efaa80fb44
Extend pick_list::Handle
2023-02-14 07:03:24 +01:00
Cory Forsstrom
7356f2b68d
Refactor image draw to standalone function
2023-01-28 18:41:33 -08:00
Héctor Ramón
dc6f9f432a
Merge pull request #1678 from frey/fix/mapped_operations_missing
...
Mapped operations is missing text_input()
2023-01-28 20:12:33 +01:00
13r0ck
42b1bfe66d
Fix: Clippy lint 'uninlined_format_args'
2023-01-27 14:02:48 -07:00
frey
d2008eed47
Mapped operations is missing text_input()...
...
This fixes a bug where some operations could be dropped.
2023-01-26 22:02:36 -06:00
Cory Forsstrom
b2a3a85acb
Use group overlay for containers w/ children
2023-01-17 10:18:39 -08:00
Héctor Ramón Jiménez
daa3f3324d
Introduce custom method to widget::Operation trait
...
This allows users to write operations for their custom widgets.
2023-01-14 03:20:30 +01:00
Héctor Ramón Jiménez
9fe46de13f
Bump versions 🎉
2023-01-14 01:10:28 +01:00
Héctor Ramón Jiménez
c6d0046102
Use instant instead of wasm-timer in iced_core
2023-01-12 06:25:59 +01:00
Héctor Ramón Jiménez
fc54d6ba31
Use instant to fix Wasm target
2023-01-12 05:26:39 +01:00
Héctor Ramón Jiménez
e2ddef7438
Replace Option<Instant> with RedrawRequest enum
2023-01-12 05:18:25 +01:00
Héctor Ramón Jiménez
502c9bfbf6
Rename Focus::at to Focus::updated_at in text_input
2023-01-12 04:54:34 +01:00
Héctor Ramón Jiménez
c649ec8cf7
Use short-hand field notation in TextInput
2023-01-12 03:22:34 +01:00
Héctor Ramón Jiménez
178bd2d83c
Avoid reblinking cursor when clicking a focused TextInput
2023-01-12 03:21:15 +01:00
Héctor Ramón Jiménez
7354f68b3c
Draft Shell:request_redraw API
...
... and implement `TextInput` cursor blink 🎉
2023-01-12 02:59:08 +01:00
Héctor Ramón
7ccd87c36b
Merge pull request #1550 from bungoboingo/feat/multidirectional-scrolling
...
[Feature] Multidirectional scrolling
2023-01-09 19:23:35 +01:00
Héctor Ramón Jiménez
2d007474dd
Avoid dragging scroll area when touching scrollbars for Scrollable
2023-01-08 20:27:15 +01:00
Héctor Ramón Jiménez
f64e95e246
Remove PartialOrd implementation for Rectangle
...
A `PartialOrd` implementation is unclear for this type, since it has
a position besides its dimensions.
2023-01-08 20:19:36 +01:00
Héctor Ramón Jiménez
19f4373863
Enable horizontal scrolling with Shift+MouseWheel
2023-01-08 20:17:11 +01:00
Héctor Ramón Jiménez
624a4ada79
Introduce RelativeOffset type in scrollable
2023-01-08 20:07:11 +01:00
Héctor Ramón
d29849df79
Merge pull request #1633 from pop-os/standardize-checkbox-functions
...
use same name & order for checkbox::new and helper
2023-01-05 18:35:24 +01:00
13r0ck
2209dbf212
Checkbox: Fix tests with sync'ed helper macro and associated fn
2023-01-04 13:08:53 -07:00
13r0ck
d8536e6248
use same name & order for checkbox::new and helper
...
The helper function for the checkbox widget switched the order
and name of the arguments passed when creating the checkbox
widget. This just standardizes the order whether the dev is using
the helper or the associated function.
Continuation of https://github.com/iced-rs/iced/pull/1616
2023-01-04 12:41:23 -07:00
Cory Forsstrom
b2c81c163d
Make count fields pub
2023-01-04 09:50:56 -08:00
Héctor Ramón
da1b375579
Merge pull request #1562 from casperstorm/feat/custom-accessory-content
...
Added ability to customize the handle of a `pick_list`
2023-01-02 20:36:40 +01:00
Héctor Ramón
54105a24e1
Merge pull request #1622 from rs017991/text_input_shift_click
...
TextInput: SHIFT+Left Click to Select
2023-01-02 19:52:21 +01:00
Héctor Ramón Jiménez
76a2e65c4f
Rename is_checked to is_toggled in Toggler
2023-01-02 19:40:57 +01:00
bungoboingo
9f85e0c721
Reworked Scrollable to account for lack of widget order guarantees.
...
Fixed thumb "snapping" bug on scrollable when cursor is out of bounds.
2022-12-29 18:29:15 -08:00
Bingus
d91f4f6aa7
Add multidirectional scrolling capabilities to the existing Scrollable.
2022-12-29 10:21:23 -08:00
Ryan Scheidter
280ffd26b7
TextInput: SHIFT+Left Click to Select
2022-12-25 12:24:29 -06:00
13r0ck
5b556250be
Use same name & order for toggler::new and helper
...
The helper function for the toggler widget switched the order and
name of the arguments passed when creating the toggler widget.
This just standardizes the order whether the dev is using the
helper or the associated function.
2022-12-22 13:53:56 -07:00
Héctor Ramón Jiménez
0e9c1ab192
Add Renderer argument to operate
2022-12-22 14:29:24 +01:00
Héctor Ramón Jiménez
6bb01b7276
Fix clippy lints for Rust 1.66
2022-12-20 11:31:25 +01:00
Héctor Ramón Jiménez
39f49186ce
Rename pick_list::AccessoryContent to Handle
...
... and rename `Default` variant to `Arrow`.
2022-12-14 03:31:12 +01:00
Casper Storm
bb4161c1ae
Split vertical orientation into VerticalSlider
2022-12-13 10:05:52 +01:00
Casper Storm
2e6d90f141
Merge branch 'master' into feat/slider-orientation
2022-12-13 09:31:57 +01:00
Casper Storm
ba95042fff
Vertical orientation added to Slider.
2022-12-12 15:27:00 +01:00
Héctor Ramón Jiménez
4c61f12768
Bump versions 🎉
2022-12-07 04:44:20 +01:00
Héctor Ramón Jiménez
b205a66347
Remove appearance from Handle
...
... and pass it directly to `Renderer::draw` instead.
2022-12-06 04:34:00 +01:00
Michael Aaron Murphy
75ae0de9bd
feat: SVG styling with icon fill color
2022-12-06 03:59:53 +01:00
Héctor Ramón Jiménez
a2864df098
Fix scroller in Scrollable always being drawn
...
... instead of only drawing it when the mouse is over the `Scrollable`.
2022-12-05 14:44:26 +01:00
Héctor Ramón Jiménez
4029a1cdaa
Merge branch 'master' into non-uniform-border-radius-for-quads
2022-12-02 18:53:21 +01:00