Merge pull request #1217 from SynergyBest/master

Fix links
This commit is contained in:
Héctor Ramón 2022-02-08 01:32:40 +07:00 committed by GitHub
commit 313aff5734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 42 additions and 779 deletions

View file

@ -108,7 +108,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[qr_code]: https://github.com/iced-rs/iced/pull/622 [qr_code]: https://github.com/iced-rs/iced/pull/622
[#193]: https://github.com/iced-rs/iced/pull/193 [#193]: https://github.com/iced-rs/iced/pull/193
[`glutin`]: https://github.com/rust-windowing/glutin [`glutin`]: https://github.com/rust-windowing/glutin
[`wgpu`]: https://github.com/gfx-rs/wgpu-rs [`wgpu`]: https://github.com/gfx-rs/wgpu
[`glow`]: https://github.com/grovesNL/glow [`glow`]: https://github.com/grovesNL/glow
[the `qrcode` crate]: https://docs.rs/qrcode/0.12.0/qrcode/ [the `qrcode` crate]: https://docs.rs/qrcode/0.12.0/qrcode/
[integration with existing applications]: https://github.com/iced-rs/iced/pull/183 [integration with existing applications]: https://github.com/iced-rs/iced/pull/183
@ -207,7 +207,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[`wasm-bindgen-futures`]: https://github.com/rustwasm/wasm-bindgen/tree/master/crates/futures [`wasm-bindgen-futures`]: https://github.com/rustwasm/wasm-bindgen/tree/master/crates/futures
[`resvg`]: https://github.com/RazrFalcon/resvg [`resvg`]: https://github.com/RazrFalcon/resvg
[`raqote`]: https://github.com/jrmuizel/raqote [`raqote`]: https://github.com/jrmuizel/raqote
[`iced_wgpu`]: https://github.com/iced-rs/iced/tree/master/wgpu [`iced_wgpu`]: wgpu/
## [0.1.0-beta] - 2019-11-25 ## [0.1.0-beta] - 2019-11-25

View file

@ -87,7 +87,7 @@ Finally, [`iced`] unifies everything into a simple abstraction to create cross-p
[`iced`]: .. [`iced`]: ..
[`futures`]: https://github.com/rust-lang/futures-rs [`futures`]: https://github.com/rust-lang/futures-rs
[`glow`]: https://github.com/grovesNL/glow [`glow`]: https://github.com/grovesNL/glow
[`wgpu`]: https://github.com/gfx-rs/wgpu-rs [`wgpu`]: https://github.com/gfx-rs/wgpu
[`winit`]: https://github.com/rust-windowing/winit [`winit`]: https://github.com/rust-windowing/winit
[`glutin`]: https://github.com/rust-windowing/glutin [`glutin`]: https://github.com/rust-windowing/glutin
[`dodrio`]: https://github.com/fitzgen/dodrio [`dodrio`]: https://github.com/fitzgen/dodrio

View file

@ -43,23 +43,23 @@ Inspired by [Elm].
__iced is currently experimental software.__ [Take a look at the roadmap], __iced is currently experimental software.__ [Take a look at the roadmap],
[check out the issues], and [feel free to contribute!] [check out the issues], and [feel free to contribute!]
[Cross-platform support]: https://github.com/hecrj/iced/blob/master/docs/images/todos_desktop.jpg?raw=true [Cross-platform support]: https://raw.githubusercontent.com/iced-rs/iced/master/docs/images/todos_desktop.jpg
[the Web]: https://iced.rs/ [the Web]: https://iced.rs/
[text inputs]: https://gfycat.com/alertcalmcrow-rust-gui [text inputs]: https://gfycat.com/alertcalmcrow-rust-gui
[scrollables]: https://gfycat.com/perkybaggybaboon-rust-gui [scrollables]: https://gfycat.com/perkybaggybaboon-rust-gui
[Debug overlay with performance metrics]: https://gfycat.com/incredibledarlingbee [Debug overlay with performance metrics]: https://gfycat.com/incredibledarlingbee
[Modular ecosystem]: https://github.com/hecrj/iced/blob/master/ECOSYSTEM.md [Modular ecosystem]: ECOSYSTEM.md
[renderer-agnostic native runtime]: https://github.com/hecrj/iced/tree/master/native [renderer-agnostic native runtime]: native/
[`wgpu`]: https://github.com/gfx-rs/wgpu-rs [`wgpu`]: https://github.com/gfx-rs/wgpu
[`glow`]: https://github.com/grovesNL/glow [`glow`]: https://github.com/grovesNL/glow
[`iced_wgpu`]: https://github.com/hecrj/iced/tree/master/wgpu [`iced_wgpu`]: wgpu/
[`iced_glow`]: https://github.com/hecrj/iced/tree/master/glow [`iced_glow`]: glow/
[built-in renderers]: https://github.com/hecrj/iced/blob/master/ECOSYSTEM.md#Renderers [built-in renderers]: ECOSYSTEM.md#Renderers
[windowing shell]: https://github.com/hecrj/iced/tree/master/winit [windowing shell]: winit/
[`dodrio`]: https://github.com/fitzgen/dodrio [`dodrio`]: https://github.com/fitzgen/dodrio
[web runtime]: https://github.com/hecrj/iced/tree/master/web [web runtime]: https://github.com/iced-rs/iced_web
[Take a look at the roadmap]: https://github.com/hecrj/iced/blob/master/ROADMAP.md [Take a look at the roadmap]: ROADMAP.md
[check out the issues]: https://github.com/hecrj/iced/issues [check out the issues]: https://github.com/iced-rs/iced/issues
[feel free to contribute!]: #contributing--feedback [feel free to contribute!]: #contributing--feedback
## Installation ## Installation
@ -72,7 +72,7 @@ iced = "0.3"
__iced moves fast and the `master` branch can contain breaking changes!__ If __iced moves fast and the `master` branch can contain breaking changes!__ If
you want to learn about a specific release, check out [the release list]. you want to learn about a specific release, check out [the release list].
[the release list]: https://github.com/hecrj/iced/releases [the release list]: https://github.com/iced-rs/iced/releases
## Overview ## Overview
Inspired by [The Elm Architecture], iced expects you to split user interfaces Inspired by [The Elm Architecture], iced expects you to split user interfaces
@ -188,17 +188,17 @@ Since then, the focus has shifted towards providing a batteries-included,
end-user-oriented GUI library, while keeping [the ecosystem] modular: end-user-oriented GUI library, while keeping [the ecosystem] modular:
<p align="center"> <p align="center">
<a href="https://github.com/hecrj/iced/blob/master/ECOSYSTEM.md"> <a href="ECOSYSTEM.md">
<img alt="iced ecosystem" src="docs/graphs/ecosystem.png" width="80%"> <img alt="iced ecosystem" src="docs/graphs/ecosystem.png" width="80%">
</a> </a>
</p> </p>
[this pull request]: https://github.com/hecrj/coffee/pull/35 [this pull request]: https://github.com/hecrj/coffee/pull/35
[The first alpha version]: https://github.com/hecrj/iced/tree/0.1.0-alpha [The first alpha version]: https://github.com/iced-rs/iced/tree/0.1.0-alpha
[a renderer-agnostic GUI library]: https://www.reddit.com/r/rust/comments/czzjnv/iced_a_rendereragnostic_gui_library_focused_on/ [a renderer-agnostic GUI library]: https://www.reddit.com/r/rust/comments/czzjnv/iced_a_rendereragnostic_gui_library_focused_on/
[tour example]: https://github.com/hecrj/iced/blob/master/examples/README.md#tour [tour example]: examples/README.md#tour
[`ggez`]: https://github.com/ggez/ggez [`ggez`]: https://github.com/ggez/ggez
[the ecosystem]: https://github.com/hecrj/iced/blob/master/ECOSYSTEM.md [the ecosystem]: ECOSYSTEM.md
## Common problems ## Common problems

View file

@ -20,15 +20,15 @@ Once a step is completed, it is collapsed and added to this list:
* [x] Canvas for 2D graphics ([#193]) * [x] Canvas for 2D graphics ([#193])
* [x] Basic overlay support ([#444]) * [x] Basic overlay support ([#444])
[#24]: https://github.com/hecrj/iced/issues/24 [#24]: https://github.com/iced-rs/iced/issues/24
[#25]: https://github.com/hecrj/iced/issues/25 [#25]: https://github.com/iced-rs/iced/issues/25
[#26]: https://github.com/hecrj/iced/issues/26 [#26]: https://github.com/iced-rs/iced/issues/26
[#28]: https://github.com/hecrj/iced/issues/28 [#28]: https://github.com/iced-rs/iced/issues/28
[#52]: https://github.com/hecrj/iced/pull/52 [#52]: https://github.com/iced-rs/iced/pull/52
[#122]: https://github.com/hecrj/iced/pull/122 [#122]: https://github.com/iced-rs/iced/pull/122
[#146]: https://github.com/hecrj/iced/pull/146 [#146]: https://github.com/iced-rs/iced/pull/146
[#193]: https://github.com/hecrj/iced/pull/193 [#193]: https://github.com/iced-rs/iced/pull/193
[#444]: https://github.com/hecrj/iced/pull/444 [#444]: https://github.com/iced-rs/iced/pull/444
### Multi-window support ([#27]) ### Multi-window support ([#27])
Open and control multiple windows at runtime. Open and control multiple windows at runtime.
@ -37,7 +37,7 @@ I think this could be achieved by implementing an additional trait in `iced_wini
This approach should also allow us to perform custom optimizations for this particular use case. This approach should also allow us to perform custom optimizations for this particular use case.
[#27]: https://github.com/hecrj/iced/issues/27 [#27]: https://github.com/iced-rs/iced/issues/27
### Animations ([#31]) ### Animations ([#31])
Allow widgets to request a redraw at a specific time. Allow widgets to request a redraw at a specific time.
@ -46,7 +46,7 @@ This is a necessary feature to render loading spinners, a blinking text cursor,
[`winit`] allows flexible control of its event loop. We may be able to use [`ControlFlow::WaitUntil`](https://docs.rs/winit/0.20.0-alpha3/winit/event_loop/enum.ControlFlow.html#variant.WaitUntil) for this purpose. [`winit`] allows flexible control of its event loop. We may be able to use [`ControlFlow::WaitUntil`](https://docs.rs/winit/0.20.0-alpha3/winit/event_loop/enum.ControlFlow.html#variant.WaitUntil) for this purpose.
[#31]: https://github.com/hecrj/iced/issues/31 [#31]: https://github.com/iced-rs/iced/issues/31
### Canvas widget for 3D graphics ([#32]) ### Canvas widget for 3D graphics ([#32])
A widget to draw freely in 3D. It could be used to draw charts, implement a Paint clone, a CAD application, etc. A widget to draw freely in 3D. It could be used to draw charts, implement a Paint clone, a CAD application, etc.
@ -55,7 +55,7 @@ As a first approach, we could expose the underlying renderer directly here, and
In the long run, we could expose a renderer-agnostic abstraction to perform the drawing. In the long run, we could expose a renderer-agnostic abstraction to perform the drawing.
[#32]: https://github.com/hecrj/iced/issues/32 [#32]: https://github.com/iced-rs/iced/issues/32
### Text shaping and font fallback ([#33]) ### Text shaping and font fallback ([#33])
[`wgpu_glyph`] uses [`glyph_brush`], which in turn uses [`rusttype`]. While the current implementation is able to layout text quite nicely, it does not perform any [text shaping]. [`wgpu_glyph`] uses [`glyph_brush`], which in turn uses [`rusttype`]. While the current implementation is able to layout text quite nicely, it does not perform any [text shaping].
@ -66,7 +66,7 @@ The only available library that does a great job at shaping is [HarfBuzz], which
This feature will probably imply rewriting [`wgpu_glyph`] entirely, as caching will be more complicated and the API will probably need to ask for more data. This feature will probably imply rewriting [`wgpu_glyph`] entirely, as caching will be more complicated and the API will probably need to ask for more data.
[#33]: https://github.com/hecrj/iced/issues/33 [#33]: https://github.com/iced-rs/iced/issues/33
[`rusttype`]: https://github.com/redox-os/rusttype [`rusttype`]: https://github.com/redox-os/rusttype
[text shaping]: https://en.wikipedia.org/wiki/Complex_text_layout [text shaping]: https://en.wikipedia.org/wiki/Complex_text_layout
[HarfBuzz]: https://github.com/harfbuzz/harfbuzz [HarfBuzz]: https://github.com/harfbuzz/harfbuzz
@ -77,7 +77,7 @@ Currently, `iced_native` only supports flexbox items. For instance, it is not po
We will need to enhance the layouting engine to support different strategies and improve the way we measure text to lay it out in a more flexible way. We will need to enhance the layouting engine to support different strategies and improve the way we measure text to lay it out in a more flexible way.
[#34]: https://github.com/hecrj/iced/issues/34 [#34]: https://github.com/iced-rs/iced/issues/34
## Ideas that may be worth exploring ## Ideas that may be worth exploring
@ -121,6 +121,6 @@ This could be very useful to build very performant user interfaces with a lot of
[Elm]: https://elm-lang.org/ [Elm]: https://elm-lang.org/
[`winit`]: https://github.com/rust-windowing/winit [`winit`]: https://github.com/rust-windowing/winit
[`wgpu`]: https://github.com/gfx-rs/wgpu-rs [`wgpu`]: https://github.com/gfx-rs/wgpu
[`wgpu_glyph`]: https://github.com/hecrj/wgpu_glyph [`wgpu_glyph`]: https://github.com/hecrj/wgpu_glyph
[`glyph_brush`]: https://github.com/alexheretic/glyph-brush [`glyph_brush`]: https://github.com/alexheretic/glyph-brush

Binary file not shown.

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 3 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 KiB

After

Width:  |  Height:  |  Size: 302 KiB

Before After
Before After

View file

@ -1,14 +1 @@
<svg width="68" height="68" viewBox="0 0 68 68" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg" width="68" height="68" fill="none" viewBox="0 0 68 68"><rect width="68" height="68" fill="url(#paint0_linear)" rx="18"/><path fill="url(#paint1_linear)" fill-rule="evenodd" d="M52.2952 16.986L43.0273 26.4088L41.0081 24.4228L50.2761 15L52.2952 16.986ZM43.6175 17.0578L29.7156 31.192L27.6964 29.206L41.5983 15.0718L43.6175 17.0578ZM23.3109 24.9347C25.065 23.1615 26.8188 21.3887 30.4157 17.7317L32.4348 19.7177C28.8353 23.3774 27.0795 25.1523 25.3241 26.9267C23.8744 28.3921 22.425 29.8572 19.9355 32.3857L30.4685 35.1388L39.0223 26.442L41.0414 28.428L32.4876 37.1247L35.4218 47.6353L49.3019 33.7718L51.3033 35.7756L35.1269 51.9327L20.0283 47.7728L15.6165 32.7371L16.2 32.1438C19.7995 28.4842 21.5555 26.7091 23.3109 24.9347ZM32.6721 48.3186L29.7581 37.8804L19.2731 35.1398L22.3017 45.4614L32.6721 48.3186ZM48.3953 29.7021L50.7414 27.3561L48.7387 25.3535L46.3844 27.7078L36.4462 37.812L38.4654 39.7979L48.3953 29.7021Z" clip-rule="evenodd"/><defs><linearGradient id="paint0_linear" x1="34" x2="34" y1="0" y2="68" gradientUnits="userSpaceOnUse"><stop stop-color="#00A3FF"/><stop offset="1" stop-color="#30F"/></linearGradient><linearGradient id="paint1_linear" x1="20.5" x2="60" y1="47.466" y2="6.966" gradientUnits="userSpaceOnUse"><stop stop-color="#fff"/><stop offset="1" stop-color="#fff" stop-opacity=".65"/></linearGradient></defs></svg>
<rect width="68" height="68" rx="18" fill="url(#paint0_linear)"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M52.2952 16.986L43.0273 26.4088L41.0081 24.4228L50.2761 15L52.2952 16.986ZM43.6175 17.0578L29.7156 31.192L27.6964 29.206L41.5983 15.0718L43.6175 17.0578ZM23.3109 24.9347C25.065 23.1615 26.8188 21.3887 30.4157 17.7317L32.4348 19.7177C28.8353 23.3774 27.0795 25.1523 25.3241 26.9267C23.8744 28.3921 22.425 29.8572 19.9355 32.3857L30.4685 35.1388L39.0223 26.442L41.0414 28.428L32.4876 37.1247L35.4218 47.6353L49.3019 33.7718L51.3033 35.7756L35.1269 51.9327L20.0283 47.7728L15.6165 32.7371L16.2 32.1438C19.7995 28.4842 21.5555 26.7091 23.3109 24.9347ZM32.6721 48.3186L29.7581 37.8804L19.2731 35.1398L22.3017 45.4614L32.6721 48.3186ZM48.3953 29.7021L50.7414 27.3561L48.7387 25.3535L46.3844 27.7078L36.4462 37.812L38.4654 39.7979L48.3953 29.7021Z" fill="url(#paint1_linear)"/>
<defs>
<linearGradient id="paint0_linear" x1="34" y1="0" x2="34" y2="68" gradientUnits="userSpaceOnUse">
<stop stop-color="#00A3FF"/>
<stop offset="1" stop-color="#3300FF"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="20.5" y1="47.4656" x2="60" y2="6.96558" gradientUnits="userSpaceOnUse">
<stop stop-color="white"/>
<stop offset="1" stop-color="white" stop-opacity="0.65"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before After
Before After

View file

@ -20,7 +20,7 @@ The __[`main`](tour/src/main.rs)__ file contains all the code of the example! Al
[`iced_wgpu`]: ../wgpu [`iced_wgpu`]: ../wgpu
[`iced_web`]: https://github.com/iced-rs/iced_web [`iced_web`]: https://github.com/iced-rs/iced_web
[`winit`]: https://github.com/rust-windowing/winit [`winit`]: https://github.com/rust-windowing/winit
[`wgpu`]: https://github.com/gfx-rs/wgpu-rs [`wgpu`]: https://github.com/gfx-rs/wgpu
You can run the native version with `cargo run`: You can run the native version with `cargo run`:
``` ```

View file

@ -4,7 +4,7 @@ A color palette generator, based on a user-defined root color.
<div align="center"> <div align="center">
<a href="https://gfycat.com/dirtylonebighornsheep"> <a href="https://gfycat.com/dirtylonebighornsheep">
<img src="https://github.com/hecrj/iced/raw/1a8d253611d3796b0a32b2f096bb54565a5292e0/examples/color_palette/screenshot.png"> <img src="screenshot.png">
</a> </a>
</div> </div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 103 KiB

After

Width:  |  Height:  |  Size: 44 KiB

Before After
Before After

View file

@ -4,8 +4,8 @@ An example showcasing the various size and style options for the Scrollable.
All the example code is located in the __[`main`](src/main.rs)__ file. All the example code is located in the __[`main`](src/main.rs)__ file.
<div align="center"> <div align="center">
<a href="./screenshot.png"> <a href="screenshot.png">
<img src="./screenshot.png" height="640px"> <img src="screenshot.png" height="640px">
</a> </a>
</div> </div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 145 KiB

After

Width:  |  Height:  |  Size: 102 KiB

Before After
Before After

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before After
Before After

View file

@ -21,7 +21,7 @@ Currently, `iced_wgpu` supports the following primitives:
[documentation]: https://docs.rs/iced_wgpu [documentation]: https://docs.rs/iced_wgpu
[`iced_native`]: ../native [`iced_native`]: ../native
[`wgpu`]: https://github.com/gfx-rs/wgpu-rs [`wgpu`]: https://github.com/gfx-rs/wgpu
[WebGPU API]: https://gpuweb.github.io/gpuweb/ [WebGPU API]: https://gpuweb.github.io/gpuweb/
[`wgpu_glyph`]: https://github.com/hecrj/wgpu_glyph [`wgpu_glyph`]: https://github.com/hecrj/wgpu_glyph

View file

@ -26,4 +26,4 @@ iced_winit = "0.3"
__Iced moves fast and the `master` branch can contain breaking changes!__ If __Iced moves fast and the `master` branch can contain breaking changes!__ If
you want to learn about a specific release, check out [the release list]. you want to learn about a specific release, check out [the release list].
[the release list]: https://github.com/hecrj/iced/releases [the release list]: https://github.com/iced-rs/iced/releases