Commit graph

910 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
624a4ada79
Introduce RelativeOffset type in scrollable 2023-01-08 20:07:11 +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
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
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
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
a6298ba12c
Fix outdated links in documentation 2022-11-10 18:14:40 +01:00
Héctor Ramón Jiménez
bec1f5bbe0
Remove unnecessary into call in operation::scoped 2022-11-10 00:17:27 +01:00
Héctor Ramón Jiménez
1480ab2030
Fix broken documentation links 2022-11-10 00:10:53 +01:00
Héctor Ramón Jiménez
335df2028d
Introduce scoped in widget::operation 2022-11-09 23:53:26 +01:00
Héctor Ramón Jiménez
11ec80dee2
Implement Operation::scrollable for widget::action::Map 2022-11-09 23:51:42 +01:00
Héctor Ramón Jiménez
1283f2153c
Implement Overlay::operate for overlay::element::Map 2022-11-09 23:50:23 +01:00
Héctor Ramón Jiménez
397f2910e0
Implement Operation::scrollable for element::Map 2022-11-09 23:48:54 +01:00
Héctor Ramón Jiménez
925b78a75d
Fix redundant references in slider 2022-11-09 04:23:55 +01:00
Héctor Ramón Jiménez
18fb74f200
Introduce Custom variants for every style in the built-in Theme 2022-11-09 04:05:31 +01:00
Héctor Ramón
d9f408d1c2
Merge pull request #1504 from tarkah/feat/pane-grid-maximize
Add pane maximize / restore for `PaneGrid`
2022-11-08 18:12:06 +01:00
Cory Forsstrom
7de9d2475d Couple layout & content to avoid desync 2022-11-08 08:49:26 -08:00
Héctor Ramón Jiménez
676d8efe03
Rename QuadBorderRadius to BorderRadius 2022-11-08 04:59:34 +01:00
Héctor Ramón
ac737cb6e9
Merge pull request #1494 from tarkah/fix/padding
Constrain padding to resolved inner / outer widget sizes
2022-11-08 04:39:55 +01:00
Héctor Ramón Jiménez
914f099342
Rearrange layout code to improve readability 2022-11-08 04:04:01 +01:00
Héctor Ramón Jiménez
7476663069
Rename Padding::constrain to fit 2022-11-08 03:56:05 +01:00
Héctor Ramón Jiménez
438f97a6d0
Use RGBA texture for image and svg pipelines 2022-11-05 03:20:00 +01:00
Héctor Ramón Jiménez
8ce8d374b1
Refactor some image traits a bit
- Use `Size<u32>` were applicable.
- Rename `TextureStore` to `image::Storage`.
- Rename `TextureStoreEntry` to `image::storage::Entry`.
- Wire up `viewport_dimensions` to `iced_glow` for `Svg`.
2022-11-05 03:19:38 +01:00
Héctor Ramón
7b12991728
Merge pull request #1453 from ids1024/cow
Use `Cow<'static, [u8]>` in image/svg, add constructors taking &[u8]`
2022-11-05 02:19:13 +01:00