Héctor Ramón Jiménez
bb07d017e8
Add Style variant support to application::StyleSheet
2022-07-08 20:07:33 +02:00
Héctor Ramón Jiménez
7f3b7075db
Rename theme::Definition to application::StyleSheet
2022-05-26 19:02:15 +02:00
Héctor Ramón Jiménez
03eda9b162
Let a Theme control the background color of an application
...
... and remove `Application::background_color`
2022-05-25 05:01:18 +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
Héctor Ramón Jiménez
aecbd46123
Replace hecrj in links with iced-rs
2022-05-02 20:26:59 +02:00
Héctor Ramón Jiménez
ac35fe3edf
Point repository links to 0.4 branch in documentation
2022-04-30 13:54:07 +02:00
Héctor Ramón Jiménez
825c7749ff
Replace iced_web with WebGL support in wgpu 🎉
2022-01-28 21:37:16 +07:00
Héctor Ramón Jiménez
2f50d11461
Improve documentation of Application::run
2021-11-29 14:44:19 +07:00
Andreas Hofstadler
08c771fa70
Allow Application::run to return on native platforms
2021-11-29 14:41:05 +07:00
Héctor Ramón Jiménez
c0ab988842
Revert system menus support
...
The current implementation has some important issues on Windows. We will reintroduce the feature once we figure them out!
I have kept some of the changes in #945 , like the new `keyboard::Modifiers` powered by `bitflags`.
2021-09-15 15:31:40 +07:00
Héctor Ramón Jiménez
f0686eae0e
Remove Clipboard export in iced
2021-09-02 13:47:03 +07:00
Héctor Ramón Jiménez
76698ff2b5
Make Command implementations platform-specific
...
This allows us to introduce a platform-specific `Action` to both `iced_native`
and `iced_web` and remove the `Clipboard` from `Application::update` to maintain
purity.
Additionally, this should let us implement further actions to let users query
and modify the shell environment (e.g. window, clipboard, and more!)
2021-09-02 13:29:34 +07:00
Héctor Ramón
a2b1ba522a
Merge pull request #914 from yusdacra/feat/expose_draw_cache_multithread
...
feat: expose draw_cache_multithread as a feature
2021-07-22 18:39:37 +07:00
Héctor Ramón Jiménez
357a8a95c9
Introduce text_multithreading to Settings
2021-07-22 18:27:33 +07:00
Héctor Ramón Jiménez
c8ac77e4e9
Write documentation for menu method in Application
2021-07-19 21:05:16 +07:00
Héctor Ramón Jiménez
5df2a92f28
Force Application::Message to implement Clone
...
A `Message` should represent an application event (e.g. user
interactions, command results, subscription results...). Therefore, it
should always consist of pure, cloneable data.
2021-07-13 21:15:07 +02:00
Richard
9fc5ad23ed
Initial menu implementation
2021-07-05 16:24:10 -03:00
Yusuf Bera Ertan
83d19689c8
docs: update all 0.2 github links to 0.3
2021-06-14 21:01:37 +03:00
Cory Forsstrom
84c0c9bc7a
use Mode::Hidden instead
2021-04-09 09:04:30 -07:00
Cory Forsstrom
cdab8f90fb
add window visibility
2021-04-08 12:58:08 -07:00
Héctor Ramón Jiménez
67db13ff7c
Add support for graceful exits in Application
...
- `Settings` now contains an `exit_on_close_request` field
- `Application` has a new `should_exit` method
2021-03-30 21:44:19 +02:00
Héctor Ramón Jiménez
883c7e71ae
Introduce internal_backend to iced_wgpu::Settings
2021-03-25 11:29:40 +01:00
Héctor Ramón Jiménez
7da3fb1b22
Implement stub Clipboard in iced_web
...
We need to figure out browser permissions and use of unstable `web-sys`
APIs
2021-03-11 03:52:41 +01:00
Héctor Ramón Jiménez
ae517b9fa0
Add clipboard argument to Application::update
2021-03-11 03:38:20 +01:00
Héctor Ramón Jiménez
745aa49025
Update example links to point to 0.2 branch
2020-11-26 16:37:33 +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
ae5a2502d6
Remove executor::Null from the root public API
...
Using an `Application` with `executor::Null` does not make sense, as the
whole purpose of an `Application` is to allow executing async actions.
When async actions are not needed, `Sandbox` should be used instead.
2020-10-17 08:46:16 +02:00
Héctor Ramón Jiménez
c1f79b40cf
Make Application and Sandbox return a Result
2020-09-08 00:44:59 +02:00
Héctor Ramón
eec65a055f
Merge pull request #415 from hecrj/feature/configurable-scale-factor
...
Add `scale_factor` to `Application` and `Sandbox`
2020-06-20 19:20:37 +02:00
Héctor Ramón Jiménez
c9696ca687
Add scale_factor to Application and Sandbox
2020-06-19 19:17:05 +02:00
Héctor Ramón Jiménez
b3c192a2e4
Make default text size configurable in Settings
2020-06-19 00:16:22 +02:00
Héctor Ramón Jiménez
4c0286e8ac
Add background_color to Application and Sandbox
2020-06-12 22:12:15 +02:00
Héctor Ramón Jiménez
b96d87ff69
Revert "Merge pull request #371 from myfreeweb/window-alpha"
...
This reverts commit 2ba9598f80 , reversing
changes made to d34f8e06c8 .
2020-06-01 22:07:29 +02:00
Greg V
a65d6a11cb
Add custom window background/clear color (incl. transparency) support, fixes #272
...
wgpu would currently ignore the alpha: https://github.com/gfx-rs/wgpu/issues/687
glow (and naively patched wgpu) requires premultiplied alpha, so if you don't
multiply the RGB by the A right now, the semi-transparent color would be wrong
(too bright).
winit with_transparent doesn't seem necessary.
2020-06-01 21:31:19 +03:00
Héctor Ramón Jiménez
22ced3485e
Introduce feature flags to enable iced_glow
...
Also keep `iced_wgpu` as the default renderer for the time being.
2020-05-27 05:05:13 +02:00
Héctor Ramón Jiménez
ae5e2c6c73
Introduce Program and State
2020-05-21 04:27:31 +02:00
Héctor Ramón Jiménez
e0e4ee73fe
Implement iced_glutin 🎉
2020-05-21 00:44:35 +02:00
Héctor Ramón Jiménez
4aed0fa4b6
Rename window::Backend to Compositor
2020-05-19 20:01:55 +02:00
Héctor Ramón Jiménez
8c8325d0cf
Write documentation for the debug feature
2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
f5e7e0625e
Improve docs for Sandbox and Application
2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
26a35b7d7e
Clarify return policy of Application::run
2020-04-02 03:44:14 +02:00
Héctor Ramón Jiménez
c4c5216e3b
Allow passing external state to Application::new
2020-03-30 18:10:15 +02:00
Héctor Ramón Jiménez
be14aca075
Make output format of iced_wgpu configurable
2020-02-24 20:08:40 +01:00
Héctor Ramón Jiménez
6f7247ca13
Rename Settings::use_antialiasing to antialiasing
2020-02-18 09:54:24 +01:00
Héctor Ramón Jiménez
9c067562fa
Write documentation for new canvas module
2020-02-18 08:48:54 +01:00
Héctor Ramón Jiménez
570f769744
Rename Settings::antialiasing to use_antialiasing
2020-02-15 10:50:07 +01:00
Héctor Ramón Jiménez
dadae12253
Implement MSAA for triangle pipeline in iced_wgpu
2020-02-15 10:08:27 +01:00
Héctor Ramón Jiménez
f1e20a61f1
Allow iced_wgpu to render to any TextureView
2020-02-09 03:25:13 +01:00
Héctor Ramón Jiménez
6d46833eb2
Support event subscriptions in iced_web
...
Also improves the overall web runtime, avoiding nested update loops.
2020-02-04 03:28:47 +01:00
Héctor Ramón Jiménez
90690702e1
Add Application::Executor associated type
2020-01-20 04:47:36 +01:00