Commit graph

48 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
422568dee4
Introduce black_box and chain in widget::operation 2024-08-08 01:25:00 +02:00
Héctor Ramón Jiménez
ab392cee94
Improve Border ergonomics 2024-07-12 19:10:52 +02:00
Héctor Ramón Jiménez
97e35f7d37
Add on_press_with method for Button
This allows using a closure to produce the message
only when the `Button` is actually pressed. Useful
when generating the message may be expensive.
2024-07-12 12:10:43 +02:00
Héctor Ramón Jiménez
a25b1af456
Replace Command with a new Task API with chain support 2024-06-14 01:47:39 +02:00
Héctor Ramón Jiménez
f0ae9a0c38
Use Catalog approach for all widgets 2024-03-24 05:03:09 +01:00
Héctor Ramón Jiménez
e657dc2ecd
Fine-tune Catalog approach for button, checkbox, and svg 2024-03-24 02:08:20 +01:00
Héctor Ramón Jiménez
999ad2d288
Try catalog theming approach with Button 2024-03-23 19:23:08 +01:00
Héctor Ramón Jiménez
60b5822b67
Use closures for Button::style 2024-03-12 13:31:25 +01:00
Héctor Ramón Jiménez
3e99f39a86
Rename transparentize to scale_alpha 2024-03-08 13:40:10 +01:00
Héctor Ramón Jiménez
1db823b4c5
Make PickList padding consistent with Button 2024-03-08 00:37:00 +01:00
Héctor Ramón Jiménez
1b96868e48
Improve default padding of Button widget 2024-03-08 00:24:49 +01:00
Héctor Ramón Jiménez
8fe7f9e435
Remove obsolete shadow_offset field from button::Appearance 2024-03-07 23:39:19 +01:00
Héctor Ramón Jiménez
1f46fd871b
Fix consistency of with_background for button::Appearance 2024-03-07 21:13:23 +01:00
Héctor Ramón Jiménez
7ece5eea50
Implement additional helpers for Border and container::Appearance 2024-03-07 21:02:17 +01:00
Héctor Ramón Jiménez
b8f05eb8dd
Implement button::DefaultStyle for Color 2024-03-07 20:16:07 +01:00
Héctor Ramón Jiménez
34ca5386b5
Implement with_background for button::Appearance 2024-03-07 20:15:49 +01:00
Héctor Ramón Jiménez
833538ee7f
Leverage DefaultStyle traits instead of Default 2024-03-07 20:11:32 +01:00
Héctor Ramón Jiménez
44f002f64a
Rename positive and destructive to success and danger in button 2024-03-07 15:21:42 +01:00
Héctor Ramón Jiménez
6785a452ee
Fix broken links in documentation 2024-03-07 00:19:24 +01:00
Héctor Ramón Jiménez
905f2160e6
Move Theme type to iced_core 2024-03-07 00:14:41 +01:00
Héctor Ramón Jiménez
34e7c6593a
Use Style struct pattern instead of trait for all widgets 2024-03-06 20:30:58 +01:00
Héctor Ramón Jiménez
f4a4845ddb
Simplify theming for Button widget 2024-03-04 20:42:37 +01:00
Héctor Ramón Jiménez
a73386f68e
Add clip property to Button 2024-02-15 01:35:55 +01:00
Héctor Ramón Jiménez
738aa47547
Remove position from overlay::Element 2024-02-01 01:08:21 +01:00
Héctor Ramón Jiménez
7a50e9e8fb
Convert Renderer::Theme to generic Widget type 2024-01-21 17:56:01 +01:00
Héctor Ramón Jiménez
bf375587aa
Add Shadow to container::Appearance 2024-01-20 13:34:07 +01:00
Héctor Ramón Jiménez
e736038d5f
Add Shadow to button::Appearance 2024-01-20 13:32:19 +01:00
Héctor Ramón Jiménez
25f182f933
Introduce Border struct analogous to Shadow 2024-01-20 13:29:25 +01:00
Héctor Ramón Jiménez
370b2f6df7
Use Default implementation of renderer::Quad 2024-01-20 12:25:07 +01:00
Nick Senger
cc906c83cd
feat: quad shadows 2024-01-20 11:59:37 +01:00
Héctor Ramón Jiménez
03c901d49b
Make Button sizing strategy adaptive 2024-01-11 06:12:19 +01:00
Héctor Ramón Jiménez
d62bb8193c
Introduce useful helpers in layout module 2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
d278bfd21d
Replace width and height with Widget::size 2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
0655a20ad1
Make Shrink have priority over Fill in layout 2024-01-04 06:51:21 +01: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 Jiménez
b8e5693a30
Merge branch 'master' into explicit-text-caching 2023-09-10 00:34:21 +02:00
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 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
e2ba7ece83
Introduce visible_bounds operation for Container 2023-07-27 01:04:18 +02:00
Cory Forsstrom
42c423b4a8 Add viewport to Widget::on_event 2023-07-15 10:04:25 -07:00
Héctor Ramón
f6966268bb
Merge pull request #1845 from bungoboingo/feat/offscreen-rendering
Feat: Offscreen Rendering & Screenshots
2023-06-27 20:37:19 +02:00
Héctor Ramón Jiménez
5c8cfb411e
Take Rectangle by value in Cursor API 2023-06-08 20:16:46 +02:00
Héctor Ramón Jiménez
34451bff18
Implement basic cursor availability 2023-06-08 20:11:59 +02:00
Héctor Ramón Jiménez
5b5000e3ae
Introduce on_press_maybe helper for Button 2023-06-06 16:18:20 +02:00
Casper Storm
1234d52812 clippy 2023-05-23 15:28:45 +02:00
Héctor Ramón Jiménez
cfb8abb6f5
Use no_run for widget doc-tests 2023-03-05 04:19:31 +01:00
Héctor Ramón Jiménez
3a0d34c024
Create iced_widget subcrate and re-organize the whole codebase 2023-03-04 05:37:11 +01:00
Renamed from native/src/widget/button.rs (Browse further)