Commit graph

452 commits

Author SHA1 Message Date
Héctor Ramón
c822ea753e
Merge pull request #130 from hecrj/fix/resize-measure-cache
Resize text measure cache to avoid panic
2019-12-19 17:07:09 +01:00
Héctor Ramón
441c6730e9
Merge pull request #128 from Gohla/fix_unnecessary_bound
Remove unnecessary bound in iced_web Container
2019-12-18 23:20:48 +01:00
Héctor Ramón
6f9de4130f
Merge pull request #127 from Gohla/web_styling
Add several missing style attributes in iced_web
2019-12-18 23:20:19 +01:00
Héctor Ramón Jiménez
0d7e236039 Resize text measure cache to avoid panic
This should not be really necessary, as we are not really drawing
anything with the measure brush... But we are using `glyph_brush`
in an unconventional way, so that may be the cause. We need to redesign
`wgpu_glyph` or come up with an alternative.
2019-12-18 23:14:54 +01:00
Gabriel Konat
7bb1b81e79 Fix unnecessary bound in web. 2019-12-18 12:02:22 +01:00
Gabriel Konat
95988e8e25 Add several missing style attributes in iced_web. 2019-12-18 11:30:51 +01:00
Héctor Ramón
0f2e20f5e5
Merge pull request #122 from hecrj/feature/event-subscriptions
Event subscriptions
2019-12-16 21:38:56 +01:00
Héctor Ramón
3702b10997
Merge pull request #111 from Maldela/svg
Svg and icon support
2019-12-16 21:38:33 +01:00
Héctor Ramón Jiménez
514ccf8a72 Cache Svg load result properly
This avoids trying to reload the file constantly on every frame.
2019-12-15 07:07:49 +01:00
Héctor Ramón Jiménez
232d4873ba Put svg rendering behind a feature gate
This reduces binary size when SVG supoprt is not needed.
2019-12-15 06:45:20 +01:00
Héctor Ramón Jiménez
aa29849976 Add svg example 2019-12-15 06:31:53 +01:00
Héctor Ramón Jiménez
6ba2461445 Update Svg documentation 2019-12-15 06:28:44 +01:00
Héctor Ramón Jiménez
09707f29fc Rerasterize SVGs when resized and refactor a bit 2019-12-15 06:19:07 +01:00
Héctor Ramón Jiménez
430ab6e444 Port todos to async_std 2019-12-14 20:48:32 +01:00
Héctor Ramón Jiménez
5185d6a0f3 Fix Widget::width for Checkbox 2019-12-14 07:09:37 +01:00
Héctor Ramón Jiménez
3daa9c2cc8 Log broadcast error as an error instead of a warning 2019-12-14 06:42:26 +01:00
Héctor Ramón Jiménez
d6c3da21f7 Write docs for subscriptions and reorganize a bit 2019-12-14 05:56:46 +01:00
Héctor Ramón Jiménez
293314405f Make iced_native subscription input opaque 2019-12-14 04:49:13 +01:00
Héctor Ramón Jiménez
ba06d458d3 Move native events subscription to iced_native 2019-12-14 04:12:42 +01:00
Héctor Ramón Jiménez
e71978456a Remove unnecessary clone in subscription::Map 2019-12-14 03:57:04 +01:00
Héctor Ramón Jiménez
c13ef73e8b Hash Duration of time::Every in stopwatch 2019-12-14 02:20:45 +01:00
Héctor Ramón Jiménez
7715486906 Use generic Hasher in stopwatch 2019-12-14 02:12:25 +01:00
Héctor Ramón Jiménez
65ff3744a0 Remove unnecessary event loop proxy Mutex
I am not sure why I had to use it in the first place...
2019-12-14 01:33:31 +01:00
Héctor Ramón Jiménez
c688452d7b Consume Recipe when building a Stream 2019-12-14 01:13:01 +01:00
Héctor Ramón Jiménez
69ed631d44 Rename timer example to stopwatch 2019-12-14 00:45:38 +01:00
Héctor Ramón Jiménez
f0381a7fb3 Use surf in pokedex example 2019-12-14 00:32:05 +01:00
Héctor Ramón Jiménez
ffa46898d9 Add timer example 2019-12-13 23:58:23 +01:00
Malte Veerman
27717bc70c Renamed Icon widget to Svg and gave it separate width and height.
The aspect ratio is now preserved like in the `Image` widget.
2019-12-12 01:25:18 +01:00
Malte Veerman
895eaef99b Merged svg pipeline into image 2019-12-12 01:14:54 +01:00
Malte Veerman
f737c6da24 Improved dpi handling 2019-12-12 00:20:06 +01:00
Malte Veerman
5696afcadd Ran cargo_fmt over changed files. 2019-12-11 22:13:29 +01:00
Malte Veerman
a88aae5e04 Added an Icon widget to native. 2019-12-11 21:34:40 +01:00
Malte Veerman
8032428428 Implemented SVG support in iced_wgpu. 2019-12-11 20:02:43 +01:00
Héctor Ramón Jiménez
e06a4d1ce4 Simplify events example 2019-12-10 04:06:12 +01:00
Héctor Ramón Jiménez
cdb7acf6c2 Implement Subscription::map and from_recipe 2019-12-10 03:43:00 +01:00
Héctor Ramón Jiménez
e189c22bb0 Rename clock example to events 2019-12-09 22:39:28 +01:00
Héctor Ramón Jiménez
c1b9f66525 Add Button::height and Button::min_height 2019-12-09 21:59:31 +01:00
Héctor Ramón Jiménez
98160406f7 Allow listening to runtime events in subscriptions 2019-12-08 08:21:26 +01:00
Héctor Ramón Jiménez
9b84b6e403 Merge branch 'master' into feature/event-subscriptions 2019-12-08 06:53:54 +01:00
Héctor Ramón
f942fc3b68
Merge pull request #113 from hecrj/feature/password-input
Password input
2019-12-08 06:42:39 +01:00
Héctor Ramón Jiménez
a7694e0112 Update native CHANGELOG 2019-12-08 06:24:47 +01:00
Héctor Ramón Jiménez
48145ba51e Use oneshot and future::select to cancel streams 2019-12-07 08:51:44 +01:00
Héctor Ramón Jiménez
f5d3164908 Simplify custom_widget example 2019-12-07 07:46:31 +01:00
Héctor Ramón Jiménez
c59ff69473 Change TextInput word-jump modifier key on macOS 2019-12-07 07:24:55 +01:00
Héctor Ramón Jiménez
cdee847cea Showcase new TextInput::password in tour 2019-12-07 07:19:05 +01:00
Héctor Ramón Jiménez
34bdfe9416 Implement TextInput::password for secure data 2019-12-07 07:18:15 +01:00
Héctor Ramón Jiménez
749722fca6 Add custom_widget example
It showcases how to build a simple native custom widget that draws a
circle.
2019-12-07 05:47:14 +01:00
Héctor Ramón
05a2a619c1
Merge pull request #108 from hecrj/feature/text-input-behavior
Improve text input behavior
2019-12-06 20:42:25 +01:00
Héctor Ramón Jiménez
4268556edb Update CHANGELOG 2019-12-06 06:13:22 +01:00
Héctor Ramón Jiménez
69590bcf72 Consider word bounds in TextInput cursor jumps 2019-12-06 05:45:06 +01:00