Commit graph

78 commits

Author SHA1 Message Date
Héctor
4fab450ba9
Merge pull request #2858 from JL710/public-default-padding
Make `button::DEFAULT_PADDING` public
2025-11-21 05:03:25 +01:00
Héctor Ramón Jiménez
5796ba272e
Remove missing_debug_implementations lint 2025-09-12 05:25:09 +02:00
Héctor Ramón Jiménez
9e81c2b9e8
Merge branch 'master' into feature/test-recorder 2025-08-29 04:25:52 +02:00
Héctor Ramón Jiménez
6be707267e
Revert "Make Widget::diff mutable"
This reverts commit 497ebcd0c3.
2025-08-29 04:21:43 +02:00
Héctor Ramón Jiménez
63142d34fc
Introduce new iced_selector subcrate and refactor Operation 2025-08-23 01:44:17 +02:00
Héctor Ramón Jiménez
497ebcd0c3
Make Widget::diff mutable 2025-08-20 23:14:23 +02:00
Héctor Ramón Jiménez
31bc6d48cd
Make Widget::layout and operate mutable
... and bless `responsive`!
2025-08-20 22:42:15 +02:00
Héctor Ramón Jiménez
0857eb3bde
Improve contrast of built-in themes by leveraging Oklch 2025-08-05 10:01:01 +02:00
Héctor Ramón Jiménez
c98f3d525a
Add background styling for button 2025-08-03 21:45:42 +02:00
Héctor Ramón Jiménez
a39e76acba
Add subtle styling for button 2025-08-02 20:52:31 +02:00
Héctor Ramón Jiménez
567b7d9e9f
Add crisp feature for enabling default quad snapping 2025-05-30 00:30:23 +02:00
Héctor Ramón Jiménez
fae95d6095
Draft float widget and simplify image again 🎉 2025-04-29 22:34:09 +02:00
Héctor Ramón Jiménez
6c51a9579d
Make Overlay aware of viewport
... and unify `Image::float` and `Image::translate`
2025-04-26 02:52:57 +02:00
JL710
26642b8724
make DEFAULT_PADDING public 2025-03-25 17:05:05 +01:00
Héctor Ramón Jiménez
954f49d4d7
Add weakest and strongest to Background palette
... and tweak background shade generation logic.
2025-02-22 00:34:55 +01:00
Héctor Ramón Jiménez
9ceb467e6e
Run cargo fmt 2025-02-21 01:37:13 +01:00
Héctor Ramón Jiménez
afef368d8a
Take Event by reference in Widget::update 2025-02-04 01:26:59 +01:00
Héctor Ramón Jiménez
edbb318cbd
Add warning style for button 2025-01-06 21:05:13 +01:00
Héctor Ramón Jiménez
713aa74f4c
Fix widget::button format 2024-12-02 19:58:06 +01:00
T-256
2cab4e6ddb
Call OnPress::get only when button is pressed 2024-12-02 19:58:01 +01:00
Héctor Ramón Jiménez
602661372c
Fix new clippy lints 2024-12-02 19:56:27 +01:00
Héctor Ramón Jiménez
c6af79a1d0
Fix deferred layout on resize after drawing 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
f02bfc3f68
Rename Widget::on_event to update 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
dcc184b01b
Replace event::Status in Widget::on_event with Shell::capture_event 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
752403d70c
Split Shell::request_redraw into two different methods 2024-11-05 23:52:58 +01:00
Héctor Ramón Jiménez
5c33ce18ed
Draft reactive-rendering feature for button 2024-11-05 23:52:56 +01:00
Michelle Granat
ab2adb11be
Update button Catalog and Style documentation (#2590)
* Update button Catalog and Style documentation

* Clarified button documentation

* fix code typo

* Run `cargo fmt`

* Fixed docs to pass tests

---------

Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-10-17 04:29:31 +00:00
bbb651
7a86900a45 Fix various typos
Using https://github.com/crate-ci/typos
2024-09-29 16:37:35 +03:00
Héctor Ramón Jiménez
51f7ce7324
Show checkbox doc example in multiple places 2024-09-19 03:03:11 +02:00
Héctor Ramón Jiménez
0a95af78f4
Add quick example to widget::button module 2024-09-19 02:30:24 +02:00
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