fix: apply system color scheme for iOS in auto theme mode, closes #1762 (#1767)

This commit is contained in:
Huang Xin 2025-08-08 19:45:04 +08:00 committed by GitHub
parent f2f744a2fe
commit f46be89036
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 156 additions and 29 deletions

View file

@ -112,3 +112,10 @@ pub(crate) async fn iap_restore_purchases<R: Runtime>(
) -> Result<IAPRestorePurchasesResponse> {
app.native_bridge().iap_restore_purchases()
}
#[command]
pub(crate) async fn get_system_color_scheme<R: Runtime>(
app: AppHandle<R>,
) -> Result<GetSystemColorSchemeResponse> {
app.native_bridge().get_system_color_scheme()
}