Kirill Chibisov
2496098890
Update wayland-rs to 0.30.0
...
This update rewrites the winit's Wayland backend using new wayland-rs
0.30 API. This fixes long standing issue with the forward compatibility
of the wayland backend, meaning that future updates to the wayland
protocol won't break rust code anymore. like it was before when adding
new shm/enum variants into the protocol.
Fixes #2560 .
Fixes #2164 .
Fixes #2128 .
Fixes #1760 .
Fixes #725 .
2023-04-19 00:56:29 +03:00
Amr Bashir
5e77d70245
Use cfg aliases throught the code base
...
Co-authored-by: Mads Marquart <mads@marquart.dk>
2022-12-25 10:57:27 +03:00
Amr Bashir
28e34c2e1b
Add Window::set_theme ( #2553 )
...
* Add `Window::set_theme`
* typo
* fix linux build
* fix wayland
* review changes
* update docs
* update changelog
* pin `image` dep
* suppport falling back to system default
* fix linux
* default to dark on macOS and x11
* fix `setAppearance` definition
* add macOS notes
* update docs
* Update CHANGELOG.md
Co-authored-by: Markus Siglreithmaier <m.siglreith@gmail.com>
* update doc
* Revert "pin `image` dep"
This reverts commit 7517f7c5065b4089ca146ce8799dab445ec32068.
* Update theme example with Window::set_theme
* Fix Window::theme getter on macOS
Co-authored-by: Markus Siglreithmaier <m.siglreith@gmail.com>
Co-authored-by: Mads Marquart <mads@marquart.dk>
2022-11-29 10:05:51 +01:00
keiya sasaki
92fdf5ba85
Rework theme API
...
This commit adds support for theming on macOS and
also unifies the system theme handling across platforms.
2022-10-18 21:34:36 +03:00
Mads Marquart
1ca8b65e85
Split platform::unix into platform::x11 and platform::wayland
...
This also removes deprecated `WindowExtUnix::is_ready`.
2022-09-01 08:05:32 +03:00