feat(core): add a new function to set theme dynamically
Closes #5279
Waiting for https://github.com/tauri-apps/tao/pull/937
Package Changes Through bb57d27741c193ec1bf1bda4daf979be9a49f729
There are 8 changes which include tauri with prerelease, tauri-runtime-wry with prerelease, tauri-runtime with prerelease, tauri-utils with prerelease, @tauri-apps/api with prerelease, tauri-cli with prerelease, @tauri-apps/cli with prerelease, tauri-bundler with prerelease
Planned Package Versions
The following package releases are the planned based on the context of changes in this pull request.
| package | current | next |
|---|---|---|
| @tauri-apps/api | 2.0.0-rc.5 | 2.0.0-rc.6 |
| tauri-utils | 2.0.0-rc.12 | 2.0.0-rc.13 |
| tauri-bundler | 2.0.1-rc.13 | 2.0.1-rc.14 |
| tauri-runtime | 2.0.0-rc.12 | 2.0.0-rc.13 |
| tauri-runtime-wry | 2.0.0-rc.13 | 2.0.0-rc.14 |
| tauri-codegen | 2.0.0-rc.12 | 2.0.0-rc.13 |
| tauri-macros | 2.0.0-rc.11 | 2.0.0-rc.12 |
| tauri-plugin | 2.0.0-rc.12 | 2.0.0-rc.13 |
| tauri-build | 2.0.0-rc.12 | 2.0.0-rc.13 |
| tauri | 2.0.0-rc.15 | 2.0.0-rc.16 |
| @tauri-apps/cli | 2.0.0-rc.16 | 2.0.0-rc.17 |
| tauri-cli | 2.0.0-rc.16 | 2.0.0-rc.17 |
Add another change file through the GitHub UI by following this link.
Read about change files or the docs at github.com/jbolda/covector
I need to get some sleep, will get back to this tomorrow
Will the set_theme API be ported to Tauri 1x? It is still very difficult to dynamically change the theme for Tauri 1x, especially on Windows, as we cannot access the Webview instance.
We typically don't backport features this large ourselves but we'll look at community prs doing so. The changes, especially in Tao are not that trivial so i doubt this would be worth it.
p.s. what's the reason you stay with v1?