Casper Rogild Storm
f727fa09cd
Correctly pass accessory content.
2022-11-29 11:52:52 +01:00
Casper Rogild Storm
0974e9e865
Added ability to customize accessory content.
2022-11-29 11:36:00 +01:00
Héctor Ramón Jiménez
18fb74f200
Introduce Custom variants for every style in the built-in Theme
2022-11-09 04:05:31 +01:00
Cory Forsstrom
f8c363eeac
Fix drop down not closing when inside scrollable
...
and user clicks outside the scrollable. This is because the scrollable
sets -1.0 on cursor.y for any events where cursor is outside it's
bounds. I'm not sure why picklist had this logic to stay open on -1.0 /
-1.0, any click outside the overlay should close it.
2022-10-27 17:40:18 -07:00
Héctor Ramón Jiménez
3e82ab069e
Fix latest clippy lints
2022-09-23 17:51:42 +02:00
Héctor Ramón Jiménez
ff2519b1d4
Replace stateful widgets with new iced_pure API
2022-07-27 06:49:20 +02:00
Héctor Ramón Jiménez
2f76a10a1d
Fix further clippy lints
...
... and explicitly annotate crates as well.
2022-07-09 18:03:59 +02:00
Poly
15f794b7a8
Address Clippy lints
2022-07-09 17:07:38 +02:00
Héctor Ramón Jiménez
396735b682
Implement theme styling for PickList and Menu
2022-06-07 04:51:44 +02:00
Héctor Ramón Jiménez
97555e67af
Implement theme styling for Container
2022-06-07 04:11:24 +02:00
Héctor Ramón Jiménez
de21a651c0
Implement theme styling for Scrollable
2022-06-07 03:26:48 +02:00
Héctor Ramón Jiménez
664251f3f5
Draft first-class Theme support
...
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-05-14 01:56:32 +02:00
Cory Forsstrom
d562c27e8c
Restrict text width & height to prevent overflow
2022-04-27 09:24:04 -07:00
Cory Forsstrom
bc8b4bb182
Manually center top aligned text
2022-04-27 08:56:43 -07:00
Cory Forsstrom
4329f0480b
Use top alignment instead of new layer
2022-04-27 08:49:55 -07:00
Cory Forsstrom
6e70d9ad83
Clip bounds to prevent text overflow
2022-04-25 09:01:04 -07:00
Cory Forsstrom
83171f05d0
Don't wrap picklist label text
2022-04-25 08:52:10 -07:00
Héctor Ramón Jiménez
c35496d80f
Merge branch 'master' into virtual-widgets
2022-03-07 15:29:43 +07:00
Héctor Ramón Jiménez
1313c94e3b
Remove hash_layout method from Widget trait
2022-02-23 21:31:54 +07:00
Héctor Ramón Jiménez
019af8ddbf
Add overlay support in iced_pure and port PickList 🎉
2022-02-16 17:07:25 +07:00
Héctor Ramón Jiménez
810e086728
Introduce Renderer argument to mouse_interaction and on_event
2022-01-11 14:12:28 +07:00
Olivier Pinon
d06e6bfb51
Lower text::Renderer's Font bound from Copy to Clone
2021-12-10 23:34:02 +01:00
Héctor Ramón Jiménez
bbd9355450
Introduce Shell type in iced_native
...
Widgets now can invalidate the current layout of the application on demand.
2021-11-29 16:22:01 +07:00
Héctor Ramón Jiménez
023aded277
Rename fill_rectangle to fill_quad in Renderer
2021-11-04 19:24:11 +07:00
Héctor Ramón Jiménez
631e95ee0b
Move viewport argument to last position in mouse_interaction methods
...
This keeps the order of the arguments consistent with `draw`.
2021-11-02 15:03:29 +07:00
Héctor Ramón Jiménez
6504dca059
Introduce state lifetime for style_sheet in PickList
2021-10-31 17:06:05 +07:00
Héctor Ramón Jiménez
b3a01973c6
Introduce first-class text module in iced_native
2021-10-31 16:14:38 +07:00
Héctor Ramón Jiménez
5a942ee7ee
Implement Widget::mouse_interaction for PickList
2021-10-28 16:42:32 +07:00
Héctor Ramón Jiménez
8740891feb
Implement Widget::draw for PickList
2021-10-28 15:49:05 +07:00
Héctor Ramón Jiménez
fe4dfeafdb
Wire up style to PickList and overlay::Menu
2021-10-28 15:41:12 +07:00
Héctor Ramón Jiménez
e914888f57
Implement Widget::draw for TextInput
2021-10-20 18:40:39 +07:00
Héctor Ramón Jiménez
edea093350
Move Defaults from iced_graphics to iced_native
2021-10-18 15:19:04 +07:00
Héctor Ramón Jiménez
54a9a232f8
Draw scrollbar in Widget::draw for Scrollable
2021-10-18 14:48:33 +07:00
Héctor Ramón Jiménez
03b3493138
Remove trait-specific draw logic in iced_native
2021-10-14 16:07:22 +07:00
Héctor Ramón Jiménez
78b345bc59
Allow PickList selection with mouse scroll only if command is pressed
...
This should avoid unintended interactions when using a `PickList` inside
a `Scrollable`
2021-07-27 12:48:14 +07:00
Héctor Ramón
dc0b96ce40
Merge pull request #872 from 13r0ck/master
...
add scrolling to pick_lists
2021-07-22 21:38:22 +07:00
Héctor Ramón Jiménez
46aab24d91
Enable scroll selection for PickList only when scroll is discrete
2021-07-22 21:28:21 +07:00
Héctor Ramón Jiménez
6069e90c9b
Abstract and improve scroll logic in PickList
2021-07-22 21:15:35 +07:00
Héctor Ramón Jiménez
a866f8742e
Avoid cloning placeholder for PickList unnecessarily during draw
2021-07-22 20:22:38 +07:00
Héctor Ramón Jiménez
26b2a824a9
Remove duplication of measuring logic in PickList
2021-07-22 20:09:13 +07:00
Héctor Ramón Jiménez
45bd685f7c
Hash placeholder in hash_layout implementation for PickList
2021-07-22 19:13:00 +07:00
Jon Pacheco
fa433743b3
feat: add placeholders to pick_list
...
see issue #726
2021-07-22 19:12:56 +07:00
Héctor Ramón
8a3b71df8b
Replace ignored doc-tests with additional documentation for Padding
2021-06-01 19:45:47 +07:00
Ben LeFevre
fe0a27c56d
Add support for asymmetrical padding
2021-06-01 19:05:39 +07:00
13r0ck
fbfb28b8d4
Remove redundant 'on_change'
2021-05-25 08:23:04 -06:00
chiheisen
59f3896392
fix pick_list layouting not respecting fonts
2021-05-18 12:37:23 +02:00
13r0ck
3a9ad89970
cargo fmt
2021-05-10 16:06:39 -06:00
13r0ck
8f319d7c6f
Improve performance using iters
2021-05-10 16:05:50 -06:00
13r0ck
77e6e111e0
add scrolling to pick_lists
2021-05-10 14:29:35 -06:00
Héctor Ramón Jiménez
21971e0037
Make Clipboard argument in Widget trait mutable
2021-03-10 01:59:02 +01:00