Commit graph

951 commits

Author SHA1 Message Date
Héctor Ramón
ba20ac8e49
Merge pull request #1639 from iced-rs/fix/limits-clamp
Stop using `f32::clamp` altogether in `layout::Limits`
2023-01-05 19:05:41 +01:00
Héctor Ramón Jiménez
200cf47fe8
Stop using f32::clamp altogether in layout::Limits 2023-01-05 18:51:48 +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
Héctor Ramón
43374f1f4e
Merge pull request #1637 from iced-rs/fix/layout-resolve-panic
Fix `Layout::resolve` panicking under some circumstances
2023-01-05 17:19:31 +01:00
Héctor Ramón Jiménez
31abc4ce0d
Fix Layout::resolve panicking under some circumstances
When `fill` has a bigger `Size` than `max`.
2023-01-05 16:40:45 +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 Jiménez
dd25e93be0
Rename FocusWindow to GainFocus in window::Action 2023-01-02 21:14:41 +01:00
Night_Hunter
81cd0c45b7
Add FocusWindow to window::Action 2023-01-02 21:14:02 +01: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
Night_Hunter
d95b9bf244
Add RequestUserAttention to window::Action 2023-01-02 20:13:42 +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
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
678de11879
Merge pull request #1611 from iced-rs/fix/clippy-lints
Fix `clippy` lints for Rust 1.66
2022-12-20 11:45:38 +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
b5ab50b2a8
Implement window::close action and remove should_exit 2022-12-15 03:06:04 +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
Héctor Ramón
c35ca2a320
Merge pull request #1596 from casperstorm/feat/slider-orientation
Added a VerticalSlider widget.
2022-12-14 03:21:28 +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
Héctor Ramón
cfcf2017e5
Remove mention of iOS and Android in window::action 2022-12-13 00:13:01 +01:00
Casper Storm
ba95042fff
Vertical orientation added to Slider. 2022-12-12 15:27:00 +01:00
Night_Hunter
750fecd6bc add toggle decorations action 2022-12-10 01:40:53 +13: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
Cory Forsstrom
9a601c0954 Get widget operations working w/ overlay 2022-11-29 12:50:57 -08:00
tarkah
f1ada7a803 Allow &mut self in overlay 2022-11-29 12:17:29 -08:00
Casper Rogild Storm
fe5ab1ee87
Added accessory_content_color to appreance. 2022-11-29 12:06:45 +01:00
Casper Rogild Storm
f727fa09cd
Correctly pass accessory content. 2022-11-29 11:52:52 +01:00
Casper Rogild Storm
0974e9e865
Added ability to customize accessory content. 2022-11-29 11:36:00 +01:00
Héctor Ramón Jiménez
3bd99221cc
Fix padding for TextInput with Length::Units width 2022-11-16 10:01:40 +01:00
Héctor Ramón
042020b016
Merge pull request #1528 from mtkennerly/bugfix/pick-list-transition
#1484, #1527: Fix overlay transition
2022-11-15 17:04:37 +01:00
Héctor Ramón Jiménez
bbd55ff3a9
Invalidate overlay layout when base layer captures an Event 2022-11-14 00:50:18 +01:00
Héctor Ramón
23364bc4a2
Merge pull request #1526 from mtkennerly/feature/find-focused
Add widget operation to find currently focused widget
2022-11-14 00:47:28 +01:00
Héctor Ramón Jiménez
cbb3475d4c
Implement Operation::finish for action::widget::Map 2022-11-14 00:30:45 +01:00
Ryan Scheidter
cfdfec9770
Partially Fixed Mapped Operations 2022-11-14 00:30:28 +01:00
Héctor Ramón
f5c9f63329
Merge pull request #1529 from tarkah/feat/text-input-operations
Add text input operations
2022-11-14 00:24:23 +01:00
Ryan Scheidter
b0678f4c75
Implement Widget::operate for PaneGrid 2022-11-14 00:09:48 +01:00
Cory Forsstrom
c4bca3f2af Add text input operations 2022-11-11 08:43:36 -08:00
mtkennerly
8a5a365be9
#1484, #1527: Fix overlay transition 2022-11-11 20:00:18 +08:00
mtkennerly
e56c45470c
Add widget operation to find currently focused widget 2022-11-11 09:15:35 +08:00
mtkennerly
44aba47b0e
Allow converting from widget-specific IDs to generic ID 2022-11-11 08:44:10 +08:00
Héctor Ramón Jiménez
23299a555f
Bump versions 🎉 2022-11-10 18:15:10 +01:00