Commit graph

889 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
b277625546
Revert "Chore: Apply clippy map transformations"
This reverts commit c997aad85d.
2023-09-20 16:26:43 +02:00
Héctor Ramón Jiménez
33d780f691
Run cargo fmt 2023-09-20 05:37:20 +02:00
Héctor Ramón Jiménez
432d9f5f97
Fix clippy::unused_async 2023-09-20 05:36:11 +02:00
Héctor Ramón Jiménez
f8f1a86344
Fix clippy::manual_let_else 2023-09-20 05:30:08 +02:00
Héctor Ramón Jiménez
caed50b277
Fix clippy::match-wildcard-for-single-variants 2023-09-20 05:03:25 +02:00
Héctor Ramón Jiménez
42ed90bc6f
Fix clippy::default_trait_access 2023-09-20 04:51:08 +02:00
Héctor Ramón Jiménez
6c386e90a1
Fix clippy::trivially-copy-pass-by-ref 2023-09-20 04:33:48 +02:00
Héctor Ramón Jiménez
34f07b6027
Fix clippy::semicolon_if_nothing_returned 2023-09-20 04:11:52 +02:00
Héctor Ramón
e8b01eb543
Merge pull request #2092 from nyurik/clippy
Chore: Apply some minor clippy fixes
2023-09-19 13:30:51 +02:00
Héctor Ramón
582da10ae2
Merge pull request #2090 from nyurik/mapping
Chore: Apply clippy map transformations
2023-09-19 13:22:21 +02:00
Yuri Astrakhan
efd0ff6ded Chore: Apply some minor clippy fixes
* Use `.elapsed()` for duration
* Use direct iteration without calling `.iter()` and the like
* order fields in the `Text` struct creation as declared
2023-09-19 01:52:25 -04:00
Yuri Astrakhan
c997aad85d Chore: Apply clippy map transformations
Convert `.map().unwrap_or()` to `.map_or()` and similar transformations.
2023-09-19 01:46:46 -04:00
Yuri Astrakhan
3d6b9637c3 Chore: Inline format args for ease of reading
A minor cleanup to inline all simple cases of format arguments. Makes the format strings just a bit easier to read.
2023-09-19 01:32:56 -04:00
Héctor Ramón Jiménez
bebb2b0252
Fix styling of horizontal scrollbar in scrollable example 2023-09-14 19:37:15 +02:00
Héctor Ramón Jiménez
8aa7874ba9
Fix Wasm build of todos example 2023-09-10 00:43:38 +02:00
Héctor Ramón Jiménez
b8e5693a30
Merge branch 'master' into explicit-text-caching 2023-09-10 00:34:21 +02:00
Thomas
fbc9ef74c4 Change init_with_level to init in examples 2023-09-09 22:42:41 +02:00
Thomas
052fe0edae Dont use tracing-subscriber dependency on web 2023-09-09 14:15:11 +02:00
Thomas
52da89ac53 Add instructions to run web examples 2023-09-09 14:11:40 +02:00
Thomas
e562544807 Add logging for web in tour example 2023-09-09 14:09:48 +02:00
Thomas
9c2ad457d8 Add webgl feature for web examples 2023-09-09 13:59:18 +02:00
Héctor Ramón Jiménez
d2294737c2
Use Radians as a number directly in gradient example 2023-09-08 01:58:52 +02:00
Héctor Ramón Jiménez
c1139898c5
Remove unnecessary centering in gradient example 2023-09-07 07:55:54 +02:00
Héctor Ramón Jiménez
d6be3ab682
Use horizontal_space instead of empty text widget in gradient example 2023-09-07 07:55:09 +02:00
Héctor Ramón Jiménez
6ff2e48feb
Use Default for container::Appearance in gradient example 2023-09-07 07:53:34 +02:00
Héctor Ramón Jiménez
fc261a539b
Fix name of gradient example package 2023-09-07 07:53:26 +02:00
Héctor Ramón Jiménez
f83fb9b6cd
Use Color::WHITE in gradient example 2023-09-07 07:48:44 +02:00
Héctor Ramón Jiménez
21259ee745
Rename gradients example to gradient 2023-09-07 07:48:44 +02:00
Héctor Ramón Jiménez
adfcd8c727
Simplify gradients example 2023-09-07 07:48:44 +02:00
Matthias Vogelgesang
2b746c7b25
Add gradient picker example 2023-09-07 07:45:42 +02:00
Héctor Ramón
b5e7fb240c
Merge pull request #2070 from ripytide/master
Added a Frame::scale_nonuniform method
2023-09-07 06:03:41 +02:00
Héctor Ramón Jiménez
09965b686e
Make scale methods in Frame generic over f32 and Vector 2023-09-07 05:51:39 +02:00
Héctor Ramón Jiménez
6fd2c15527
Host GIFs and video examples in iced.rs
RIP Gfycat
2023-09-07 05:05:43 +02:00
Héctor Ramón
d1822ad811
Merge pull request #2069 from iced-rs/use-workspace-dependencies
Use workspace dependencies and package inheritance
2023-09-07 03:30:35 +02:00
Héctor Ramón Jiménez
d315e27451
Update example dependencies 2023-09-07 03:15:02 +02:00
Héctor Ramón Jiménez
d21f0698b5
Add hotkey support for stopwatch example 2023-09-07 02:58:43 +02:00
Héctor Ramón Jiménez
08a031cbe5
Introduce keyboard::on_key_press and on_key_release
Also rename `subscription::events*` to `event::listen*`.
2023-09-07 02:45:15 +02:00
Héctor Ramón Jiménez
f468e25d0c
Use workspace dependencies and package inheritance
We are also taking this as a chance to synchronize
the versions of all the crates! Because of this, we
will skip the `0.11` version.
2023-09-04 13:08:17 +02:00
Héctor Ramón Jiménez
837529bc99
Fix Wasm build of todos example 2023-09-04 03:02:46 +02:00
Héctor Ramón Jiménez
34495bba1c
Introduce keyed::Column widget 2023-09-04 02:55:09 +02:00
Héctor Ramón
20bf01a551
Use Length::Fill instead of fixed length in styling example 2023-09-03 08:33:02 +02:00
Akshay Raina
3a44ad3c73
fix(examples-styling): fixed checkbox and toggler getting hidden behind scrollbar
Column inside scrollable is having Length::Fill so it is taking entire width thus hiding check box and toggler.
Added fixed width to scrollable so Lenth::Fill will be relative to fixed width
2023-09-03 08:33:02 +02:00
Héctor Ramón Jiménez
6cc354fdc4
Update wgpu to 0.17 2023-09-03 00:21:04 +02:00
Héctor Ramón Jiménez
a026e917d3
Make widget::Tree mutable in Widget::layout 2023-08-30 06:36:24 +02:00
Héctor Ramón Jiménez
ed3454301e
Implement explicit text caching in the widget state tree 2023-08-30 04:31:21 +02:00
Héctor Ramón Jiménez
8830554e4d
Update vulnerable async-tungstenite dependency in websocket example 2023-08-23 21:01:44 +02:00
Héctor Ramón Jiménez
0ae136b573
Update vulnerable env_logger dependency in examples 2023-08-23 21:01:15 +02:00
Héctor Ramón Jiménez
398a3f0897
Use Dark theme in stopwatch example 2023-08-23 20:50:31 +02:00
Héctor Ramón Jiménez
cbb5fcc882
Fetch bounds on window resize in visible_bounds example 2023-07-27 01:29:20 +02:00
Héctor Ramón Jiménez
8961fcd501
Highlight container bounds on hover in visible_bounds example 2023-07-27 01:21:50 +02:00