Commit graph

4097 commits

Author SHA1 Message Date
Nick
aed06ac208
Support automatic style type casting for Buttons.
Changes the signature of Button::style to use `impl Into<...>` instead of taking the style sheet itself. (Matches other widgets).
2023-09-03 08:38:49 +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
1a1da6a1f0
Remove unnecessary mutable reference in iced_tiny_skia 2023-09-03 08:11:36 +02:00
Héctor Ramón Jiménez
8129e2c208
Implement draw_paragraph in iced_tiny_skia 2023-09-03 08:08:27 +02:00
Héctor Ramón
3b0d1b1ed4
Merge pull request #2067 from iced-rs/custom-extended-palette-generation
Introduce `theme::Custom::with_fn` to generate completely custom themes
2023-09-03 02:41:56 +02:00
Héctor Ramón Jiménez
624d5c2c64
Update CHANGELOG 2023-09-03 02:31:12 +02:00
Héctor Ramón Jiménez
832d9f1b01
Introduce theme::Custom::with_fn to generate completely custom themes 2023-09-03 01:34:13 +02:00
Héctor Ramón Jiménez
9b9b37e6f8
Fix adapter selection loop in iced_wgpu 2023-09-03 01:14:22 +02:00
Héctor Ramón Jiménez
0b28080d3e
Remove redundant into_iter call in iced_wgpu 2023-09-03 01:05:17 +02:00
Héctor Ramón Jiménez
020fb3c377
Fix iced_wgpu device selection on Wasm 2023-09-03 01:04:23 +02:00
Héctor Ramón
52b3f69e35
Merge pull request #2065 from iced-rs/update-wgpu
Update `wgpu` to `0.17`
2023-09-03 00:44:31 +02:00
Héctor Ramón Jiménez
d518e7d423
Update wgpu for Wasm 2023-09-03 00:28:05 +02:00
Héctor Ramón Jiménez
d4f5dd7c95
Update CHANGELOG 2023-09-03 00:24:09 +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
601e5563d1
Fix Widget::layout for Lazy 2023-09-01 04:15:59 +02:00
Héctor Ramón Jiménez
548b9d0294
Fix Widget::layout for Component 2023-09-01 04:15:09 +02:00
Héctor Ramón Jiménez
6758de2b43
Fix Default implementation for Paragraph 2023-09-01 04:14:06 +02:00
Héctor Ramón Jiménez
51e69d7040
Replace MaybeUninit with Option in paragraph 2023-09-01 04:04:15 +02:00
Héctor Ramón Jiménez
935c722a27
Use Arc::try_unwrap in Paragraph
We use `MaybeUninit` here instead of `Option` to save some cycles, but
I will most likely change it for an `Option` since unsafe code is quite
scary.
2023-09-01 03:59:57 +02:00
Héctor Ramón Jiménez
ce22d661fa
Remove Clone implementation for Paragraph 2023-09-01 03:25:29 +02:00
Héctor Ramón Jiménez
252a05c7f4
Update CHANGELOG 2023-08-30 07:26:48 +02:00
Héctor Ramón Jiménez
b51ffe53ed
Fix unnecessary dereference in widget::text 2023-08-30 06:44:40 +02:00
Héctor Ramón Jiménez
bcd9fdb521
Simplify new logic in TextInput 2023-08-30 06:43:45 +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
301e6e5fdc
Reduce default spacing of Checkbox 2023-08-30 05:34:17 +02:00
Héctor Ramón Jiménez
ffd0f4df45
Add some default spacing for Toggler 2023-08-30 05:34:01 +02:00
Héctor Ramón Jiménez
c44611cc7d
Fix vertical alignment in layout::next_to_each_other 2023-08-30 05:33:39 +02:00
Héctor Ramón Jiménez
89acf0217e
Use min_bounds for cached text 2023-08-30 05:06:08 +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
c9bd48704d
Replace GitHub discussions with Discourse 2023-08-26 19:32:09 +02:00
Héctor Ramón Jiménez
8ed06dc356
Fix clippy lints for Rust 1.72 2023-08-26 01:34:42 +02:00
Héctor Ramón Jiménez
e0eb19d4cd
Fix consistency of Discourse badge in README 2023-08-26 01:32:08 +02:00
Héctor Ramón Jiménez
36120d5685
Run cargo fmt with Rust 1.72 2023-08-26 01:31:11 +02:00
Héctor Ramón Jiménez
96b435488a
Add new Discourse forum badge to README 2023-08-26 01:27:01 +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
7e5be8680b
Replace guide with guidelines in PULL_REQUEST_TEMPLATE 2023-08-21 15:29:22 +02:00
Héctor Ramón Jiménez
fb02040b39
Clarify the CONTRIBUTING guidelines a bit 2023-08-21 15:27:49 +02:00
Héctor Ramón Jiménez
f99f0a3644
Create PULL_REQUEST_TEMPLATE 2023-08-21 15:27:49 +02:00
Héctor Ramón Jiménez
c31a63c1cc
Update CONTRIBUTING guidelines 2023-08-21 15:27:49 +02:00
Héctor Ramón
3bea1f703c
Merge pull request #2041 from lufte/issue-2040
Make the style attribute available on Font
2023-08-20 14:22:46 +02:00
lufte
e86363837d Make the style attribute available on Font 2023-08-18 18:46:22 -03:00
Héctor Ramón
2a3cb0fa7a
Merge pull request #2034 from PolyMeilex/PolyMeilex-patch-1
[docs] Don't use &mut self for view()
2023-08-16 21:06:58 +02:00
Bartłomiej Maryńczak
c9c5be7b01
[docs] Don't use &mut self for view() 2023-08-16 20:21:57 +02:00
Héctor Ramón
aadf6821c9
Merge pull request #2008 from ua-kxie/arc-and-ellipse-documentation
Update arc.rs with improved documentation
2023-08-15 08:07:42 +02:00
Héctor Ramón Jiménez
5dbf5adb0a
Update CHANGELOG 2023-08-15 07:53:32 +02:00
Kxie
76ffbbd06e
Update arc.rs with improved documentation
added units and improved description to field comments of Arc and Ellipse structs.
2023-08-15 07:52:30 +02:00
Andrew Wheeler(Genusis)
f5b9562900
Bounds Contains update. (#2017)
* changed the way contains works to exclude <= for point.y and point.x on width and height check to avoid multiple selects

* update changelog

* Update `CHANGELOG`

---------

Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2023-08-15 07:47:53 +02:00