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
Héctor Ramón Jiménez
8059c40142
Fix clippy lints
2023-02-24 13:58:17 +01:00
Héctor Ramón Jiménez
a2ab9e9395
Use Pixels for Text::size
2023-02-24 13:34:59 +01:00
Héctor Ramón Jiménez
b29de28d1f
Overhaul Font type to allow font family selection
2023-02-24 13:28:24 +01:00
Héctor Ramón Jiménez
032e860f13
Fix PickList line height
2023-02-24 13:22:56 +01:00
Héctor Ramón Jiménez
3320ac1126
Use f32 for Padding
2023-02-17 16:09:49 +01:00
Héctor Ramón Jiménez
570600ce51
Use Pixels for Text::size
2023-02-17 15:47:51 +01:00
Héctor Ramón Jiménez
7b8b01f560
Use f32 in Length::Units and rename it to Fixed
2023-02-17 15:40:17 +01:00
Héctor Ramón Jiménez
7f1d58aa45
Inline Handle::content for simplicity and efficiency
...
We can avoid downcasting `state` :^)
2023-02-14 07:09:24 +01:00
Héctor Ramón Jiménez
fee1ab69e2
Provide State reference instead of closure to pick_list::draw
2023-02-14 07:05:35 +01:00
Héctor Ramón Jiménez
bbff06b462
Use char instead of String for pick_list::Icon
2023-02-14 07:03:25 +01:00
Héctor Ramón Jiménez
0272cac89e
Move Handle and Icon definitions in pick_list
2023-02-14 07:03:24 +01:00
Héctor Ramón Jiménez
5569e12149
Rename HandleContent to Icon and simplify generics
2023-02-14 07:03:24 +01:00
Casper Storm
efaa80fb44
Extend pick_list::Handle
2023-02-14 07:03:24 +01:00
Héctor Ramón
da1b375579
Merge pull request #1562 from casperstorm/feat/custom-accessory-content
...
Added ability to customize the handle of a `pick_list`
2023-01-02 20:36:40 +01:00
Héctor Ramón Jiménez
39f49186ce
Rename pick_list::AccessoryContent to Handle
...
... and rename `Default` variant to `Arrow`.
2022-12-14 03:31:12 +01:00
Héctor Ramón Jiménez
4029a1cdaa
Merge branch 'master' into non-uniform-border-radius-for-quads
2022-12-02 18:53:21 +01:00
tarkah
f1ada7a803
Allow &mut self in overlay
2022-11-29 12:17:29 -08:00
Casper Rogild Storm
fe5ab1ee87
Added accessory_content_color to appreance.
2022-11-29 12:06:45 +01:00
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
Robert Krahn
c0596179bd
non uniform border radius for quads
2022-11-03 22:48:26 +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