Commit graph

89 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
0d3c9ef7bd
Reintroduce Box for style_sheet in TextInput 2021-10-31 17:45:57 +07:00
Héctor Ramón Jiménez
0c76e0307f
Reintroduce Box for style_sheet in Slider 2021-10-31 17:42:43 +07:00
Héctor Ramón Jiménez
eed19dcf81
Reintroduce Box for style_sheet in Scrollable 2021-10-31 17:39:24 +07:00
Héctor Ramón Jiménez
bd7b086ec1
Reintroduce Box for style_sheet in Radio 2021-10-31 17:14:10 +07:00
Héctor Ramón Jiménez
d758006ee9
Introduce state lifetime for style_sheet in ProgressBar 2021-10-31 17:08:19 +07:00
Héctor Ramón Jiménez
40a5de5811
Reintroduce Box for style_sheet in Container 2021-10-31 17:02:59 +07:00
Héctor Ramón Jiménez
fcc282bd76
Reintroduce Box for style_sheet in Checkbox 2021-10-31 16:58:02 +07:00
Héctor Ramón Jiménez
d36ce33a95
Reintroduce Box for style_sheet in Button 2021-10-31 16:53:18 +07:00
Héctor Ramón Jiménez
7c08c6bd13
Remove Renderer trait for Checkbox 2021-10-21 18:50:27 +07:00
Héctor Ramón Jiménez
d39ad717ed
Wire up styling to Radio in iced_native 2021-10-20 19:18:40 +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
11bcb13427
Wire up styling to Slider in iced_native 2021-10-20 15:50:42 +07:00
Héctor Ramón Jiménez
3140cdc4ba
Wire up styling to Button in iced_native 2021-10-18 16:02:30 +07:00
Héctor Ramón Jiménez
d61cb58d92
Wire up container styling to iced_native 2021-10-18 15:36:32 +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
a0ad399622
Refactor alignment types into an alignment module 2021-09-20 15:14:08 +07:00
Héctor Ramón
dcd362813a
Merge pull request #788 from Liamolucko/web-in-memory-image
feat(web): Support in-memory image data
2021-09-01 13:41:59 +07:00
Héctor Ramón
587dbbca42
Merge pull request #776 from AldoMX/master
Added `select_all` method to `TextInput`.
2021-07-22 20:48:03 +07:00
Héctor Ramón Jiménez
29cc840cfa
Add empty select_all implementation for TextInput in iced_web 2021-07-22 20:32:54 +07:00
Héctor Ramón
d46dd67a91 Update disabled example of Button in docs 2021-06-10 18:58:40 +07:00
Jonas Matser
e66120b9c1 Fix failing doctests 2021-06-10 18:28:38 +07:00
Jonas Matser
dbc1181011 Adds doc comment for disabled button
Makes disabled button behavior consistent in web
2021-06-10 18:28:37 +07:00
Kaiden42
2a5aa69024 Fix format 2021-06-03 20:21:55 +07:00
Kaiden42
e00fca6372 Add Toggler widget to iced_web 2021-06-03 20:21:55 +07:00
Héctor Ramón
8a3b71df8b Replace ignored doc-tests with additional documentation for Padding 2021-06-01 19:45:47 +07:00
Héctor Ramón
2e17d7860b Fix unused variable warning in iced_web::text_input 2021-06-01 19:14:04 +07:00
Ben LeFevre
fe0a27c56d Add support for asymmetrical padding 2021-06-01 19:05:39 +07:00
Liam Murphy
11f29bca86
Use data urls instead of blob URLs
I didn't do this originally because I was half doing it in the first place to mess with Blob URLs, and it feels kinda wrong to be encoding it as base64 when that option is available. But not having memory leaks is more important.
2021-04-10 17:18:04 +10:00
Liam Murphy
99c56b9bff
fix: Don't rely on image handle not being dropped
It now causes a memory leak, though. :/
2021-03-21 15:34:20 +11:00
Liam Murphy
1d85b6e887
feat(web): Support in-memory image data
I had to create two methods which basically do the same thing, `from_memory` and `from_slice`, but `from_memory` takes ownership of the bytes to be compatible with `iced_native`.

Also, `Data` is incompatible, because if I stored the bytes in `Data` and created a new object URL every render, it would have caused a memory leak because bumpalo doesn't call destructors and there'd be no way to call URL.revokeObjectUrl on it. It's also more efficient this way.
2021-03-21 14:36:06 +11:00
Héctor Ramón Jiménez
9ba9558429 Allow dead code explicitly in iced_web 2021-02-16 00:03:20 +01:00
Héctor Ramón Jiménez
01322f69a4 Use recently stabilized intra-doc links
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
2020-11-26 02:05:43 +01:00
Héctor Ramón Jiménez
75464ad894 Use String::from_str_in in iced_web 2020-07-01 07:36:42 +02:00
Héctor Ramón
08e13e00f1
Merge pull request #292 from TomPridham/feature/accessibility-web
add some accessibility features to web widgets
2020-07-01 07:09:27 +02:00
Héctor Ramón Jiménez
ffd195cdb5 Fix empty id and name attributes in iced_web 2020-07-01 06:52:13 +02:00
Héctor Ramón Jiménez
f5e16312bf Update Slider docs in iced_web 2020-06-13 15:04:49 +02:00
Héctor Ramón Jiménez
6b4a4655c1 Make Slider value generic in iced_web 2020-06-13 14:59:09 +02:00
Sebastian Zivota
c3643eaf6d Add step member to slider widgets
Both the native and the web slider now have a member `step` to control
the least possible change of the slider's value. It defaults to 1.0
for all sliders and can be adjusted with the step method.
2020-06-11 00:18:24 +02:00
Tom Pridham
852d59752e add some accessibility features to web widgets 2020-04-21 22:35:32 -06:00
Héctor Ramón Jiménez
f7825fd936 Fix Checkbox and Radio API in iced_web 2020-04-14 07:41:35 +02:00
Héctor Ramón Jiménez
749a9588d7 Implement padding support for Container 2020-03-31 01:21:51 +02:00
Héctor Ramón Jiménez
99b5212550 Implement Column and Row changes in iced_web 2020-03-17 00:53:51 +01:00
Rowun Giles
ae123d8f14 Instantiate Column and Row with children 2020-03-16 10:08:37 +00:00
Héctor Ramón Jiménez
f719ba3f4e Add font-family to Text style in iced_web 2020-02-06 05:03:11 +01:00
Héctor Ramón Jiménez
57aed1d5c6 Implement TextInput::on_submit support in iced_web 2020-02-06 03:06:06 +01:00
Héctor Ramón Jiménez
282ae1dc9e Implement TextInput styling in iced_web 2020-02-06 02:37:49 +01:00
Héctor Ramón Jiménez
07e62ae5da Fix ProgressBar doc example in iced_web 2020-02-06 02:29:19 +01:00
Héctor Ramón Jiménez
cf3ca44210 Implement Container styling in iced_web 2020-02-06 02:24:18 +01:00
Héctor Ramón Jiménez
e953733323 Add style to TextInput in iced_web 2020-02-06 01:26:08 +01:00
Héctor Ramón Jiménez
8e83f3632c Fix Column and Row styling for iced_web 2020-02-06 01:25:46 +01:00