Commit graph

739 commits

Author SHA1 Message Date
Dan Mishin
f10e936f00
Introduce disabled state for TextInput 2023-04-12 03:55:18 +02:00
Héctor Ramón Jiménez
0ed54346b0
Use Result::is_err in websocket example 2023-04-11 07:53:26 +02:00
Héctor Ramón Jiménez
5908205a62
Use 127.0.0.1 instead of localhost in websocket example 2023-04-11 07:48:30 +02:00
Héctor Ramón Jiménez
ae7e6b3d48
Implement subscription::channel and simplify unfold 2023-04-11 07:46:54 +02:00
Héctor Ramón Jiménez
45015e37d4
Fix current step in tour 2023-04-11 05:57:31 +02:00
Héctor Ramón Jiménez
aa0be30656
Move ICON_FONT constant in tour to text_input helper 2023-04-11 05:57:01 +02:00
Héctor Ramón Jiménez
c794d8ba78
Collapse Font import in tour example 2023-04-11 05:56:34 +02:00
Héctor Ramón Jiménez
cf9d8e0104
Rename IconPosition to Side in text_input 2023-04-11 05:54:51 +02:00
Héctor Ramón Jiménez
9852b4b364
Move Icon layout logic to layout in text_input
Also add `Icon::spacing` field.
2023-04-11 05:46:14 +02:00
Héctor Ramón Jiménez
0e2fc99eb8
Use f32 for Icon::size and remove unnecessary conversions 2023-04-11 05:13:56 +02:00
Casper Storm
898307e9ac
Removed text_input example in favor for Tour 2023-04-11 05:11:23 +02:00
Casper Storm
d24a4a4689
Changed Handle to Icon to be consistent 2023-04-11 05:11:23 +02:00
Casper Storm
7b36984295
feat: added handle to text_input 2023-04-11 05:11:19 +02:00
Héctor Ramón
4e409bb383
Merge pull request #1669 from GyulyVGC/master
Added scrollable style `focused` to be displayed when mouse is over the scrollable area
2023-03-27 16:17:02 +02:00
Héctor Ramón Jiménez
c407b4504c
Introduce is_mouse_over_scrollbar to StyleSheet::hovered for Scrollable 2023-03-27 15:51:32 +02:00
Héctor Ramón Jiménez
1816c985fa
Fix clippy lints for Rust 1.68 2023-03-14 11:11:17 +01:00
lupd
782c080bd0 Use correct package name in checkbox example docs 2023-03-08 12:55:52 -05:00
Héctor Ramón Jiménez
12781c717a
Expose window commands for Wasm builds 2023-03-03 20:45:49 +01:00
Bingus
a9ca89ca55
Added example of toggling fullscreen to TODOs. 2023-03-02 10:54:03 -08:00
Héctor Ramón Jiménez
9e815cb749
Remove Fill variant for Alignment
Implementing this generically in our `flex` logic has an exponential
cost. Let's explore other options!
2023-02-27 16:54:28 +01:00
Héctor Ramón Jiménez
7b8b01f560
Use f32 in Length::Units and rename it to Fixed 2023-02-17 15:40:17 +01:00
Sebastian Dröge
d2996f3ed8
image: Allow any kind of data that implements AsRef<[u8]> for the image data
It's not required anywhere for it to be a plain slice or a `Vec` and
this makes it possible to use data allocated in a different way without
copying.
2023-02-17 14:23:13 +01:00
Héctor Ramón
27ba0be783
Merge pull request #1665 from Jedsek/patch-2
Minor update: `example/qr_code`
2023-02-17 14:12:56 +01:00
Héctor Ramón Jiménez
ac1945404e
Run cargo fmt 2023-02-17 13:57:04 +01:00
Casper Storm
4fb0be1793
Added the ability to change checkbox icon 2023-02-16 14:13:04 +01:00
13r0ck
42b1bfe66d Fix: Clippy lint 'uninlined_format_args' 2023-01-27 14:02:48 -07:00
Héctor Ramón
2dea5fe058
Merge pull request #1655 from tarkah/feat/group-overlay
Group Overlay
2023-01-24 02:14:50 +01:00
Jedsek
06fb7e0b51
Update main.rs 2023-01-20 13:56:02 +08:00
Jedsek
ccd02c525b
Update main.rs
The app should not render qr_code when data is empty
2023-01-20 13:46:09 +08:00
Héctor Ramón
8acf7c41fc
Fix #[default] in preset for game_of_life example 2023-01-19 20:20:13 +01:00
Jedsek
e80c7dff8d
Update preset.rs 2023-01-19 19:09:45 +08:00
Cory Forsstrom
be860508a9
Rename method to is_over 2023-01-17 17:20:53 -08:00
Cory Forsstrom
d470467718
Add toast example 2023-01-17 17:10:58 -08:00
Héctor Ramón
597af315af
Merge pull request #1647 from iced-rs/feature/widget-request-redraw
Widget-driven animations
2023-01-13 20:33:59 +01:00
Héctor Ramón Jiménez
0b86c4a299
Implement window::frames subscription
... and use it in the `solar_system` example 🎉
2023-01-12 04:35:41 +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
Nick Senger
58bcc4404e feat: provide &Dependency to Lazy widget View 2023-01-11 11:37:56 -08:00
Nick Senger
c7c5611087 clippy 2023-01-10 22:00:42 -08:00
Nick Senger
45dda41c4c add overlays to Lazy example 2023-01-10 21:35:55 -08:00
Nick Senger
4066f89ce7 cleanup Lazy examples 2023-01-10 21:35:55 -08:00
Héctor Ramón Jiménez
0c2bcecd44
Add some missing spacing to scrollable example 2023-01-08 20:09:47 +01:00
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 Jiménez
6bb01b7276
Fix clippy lints for Rust 1.66 2022-12-20 11:31:25 +01:00
Casper Storm
55f36bc865
updated README for slider example 2022-12-13 10:13:27 +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