From 5c1b613b395dc8e9f59ae9858112888bc0bb4b8d Mon Sep 17 00:00:00 2001 From: amrbashir Date: Fri, 25 Oct 2024 15:52:22 +0300 Subject: [PATCH] fix iOS --- crates/tauri/src/window/mod.rs | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/crates/tauri/src/window/mod.rs b/crates/tauri/src/window/mod.rs index bdc56e581..0816ede2a 100644 --- a/crates/tauri/src/window/mod.rs +++ b/crates/tauri/src/window/mod.rs @@ -656,17 +656,6 @@ impl<'a, R: Runtime, M: Manager> WindowBuilder<'a, R, M> { self } - /// Set the window and webview background color. - /// - /// ## Platform-specific: - /// - /// - **Windows**: alpha channel is ignored. - #[must_use] - pub fn background_color(mut self, color: Color) -> Self { - self.window_builder = self.window_builder.background_color(color); - self - } - /// Sets a parent to the window to be created. /// /// ## Platform-specific @@ -846,6 +835,18 @@ impl<'a, R: Runtime, M: Manager> WindowBuilder<'a, R, M> { } } +impl<'a, R: Runtime, M: Manager> WindowBuilder<'a, R, M> { + /// Set the window and webview background color. + /// + /// ## Platform-specific: + /// + /// - **Windows**: alpha channel is ignored. + #[must_use] + pub fn background_color(mut self, color: Color) -> Self { + self.window_builder = self.window_builder.background_color(color); + self + } +} /// A wrapper struct to hold the window menu state /// and whether it is global per-app or specific to this window. #[cfg(desktop)]