浏览代码

fix: 'ndecorated' typo in window shadow description (#10527)

KV 1 年之前
父节点
当前提交
10e30c5139

+ 1 - 1
core/tauri-config-schema/schema.json

@@ -427,7 +427,7 @@
           ]
         },
         "shadow": {
-          "description": "Whether or not the window has shadow.\n\n ## Platform-specific\n\n - **Windows:**\n   - `false` has no effect on decorated window, shadow are always ON.\n   - `true` will make ndecorated window have a 1px white border,\n and on Windows 11, it will have a rounded corners.\n - **Linux:** Unsupported.",
+          "description": "Whether or not the window has shadow.\n\n ## Platform-specific\n\n - **Windows:**\n   - `false` has no effect on decorated window, shadow are always ON.\n   - `true` will make undecorated window have a 1px white border,\n and on Windows 11, it will have a rounded corners.\n - **Linux:** Unsupported.",
           "default": true,
           "type": "boolean"
         },

+ 1 - 1
core/tauri-runtime/src/window.rs

@@ -360,7 +360,7 @@ pub trait WindowBuilder: WindowBuilderBase {
   ///
   /// - **Windows:**
   ///   - `false` has no effect on decorated window, shadows are always ON.
-  ///   - `true` will make ndecorated window have a 1px white border,
+  ///   - `true` will make undecorated window have a 1px white border,
   ///     and on Windows 11, it will have a rounded corners.
   /// - **Linux:** Unsupported.
   #[must_use]

+ 1 - 1
core/tauri-utils/src/config.rs

@@ -1365,7 +1365,7 @@ pub struct WindowConfig {
   ///
   /// - **Windows:**
   ///   - `false` has no effect on decorated window, shadow are always ON.
-  ///   - `true` will make ndecorated window have a 1px white border,
+  ///   - `true` will make undecorated window have a 1px white border,
   /// and on Windows 11, it will have a rounded corners.
   /// - **Linux:** Unsupported.
   #[serde(default = "default_true")]

+ 2 - 2
core/tauri/src/webview/webview_window.rs

@@ -590,7 +590,7 @@ impl<'a, R: Runtime, M: Manager<R>> WebviewWindowBuilder<'a, R, M> {
   ///
   /// - **Windows:**
   ///   - `false` has no effect on decorated window, shadows are always ON.
-  ///   - `true` will make ndecorated window have a 1px white border,
+  ///   - `true` will make undecorated window have a 1px white border,
   ///     and on Windows 11, it will have a rounded corners.
   /// - **Linux:** Unsupported.
   #[must_use]
@@ -1394,7 +1394,7 @@ impl<R: Runtime> WebviewWindow<R> {
   ///
   /// - **Windows:**
   ///   - `false` has no effect on decorated window, shadow are always ON.
-  ///   - `true` will make ndecorated window have a 1px white border,
+  ///   - `true` will make undecorated window have a 1px white border,
   ///     and on Windows 11, it will have a rounded corners.
   /// - **Linux:** Unsupported.
   pub fn set_shadow(&self, enable: bool) -> crate::Result<()> {

+ 2 - 2
tooling/api/src/window.ts

@@ -1126,7 +1126,7 @@ class Window {
    *
    * - **Windows:**
    *   - `false` has no effect on decorated window, shadows are always ON.
-   *   - `true` will make ndecorated window have a 1px white border,
+   *   - `true` will make undecorated window have a 1px white border,
    * and on Windows 11, it will have a rounded corners.
    * - **Linux:** Unsupported.
    *
@@ -2172,7 +2172,7 @@ interface WindowOptions {
    *
    * - **Windows:**
    *   - `false` has no effect on decorated window, shadows are always ON.
-   *   - `true` will make ndecorated window have a 1px white border,
+   *   - `true` will make undecorated window have a 1px white border,
    * and on Windows 11, it will have a rounded corners.
    * - **Linux:** Unsupported.
    *

+ 1 - 1
tooling/cli/schema.json

@@ -427,7 +427,7 @@
           ]
         },
         "shadow": {
-          "description": "Whether or not the window has shadow.\n\n ## Platform-specific\n\n - **Windows:**\n   - `false` has no effect on decorated window, shadow are always ON.\n   - `true` will make ndecorated window have a 1px white border,\n and on Windows 11, it will have a rounded corners.\n - **Linux:** Unsupported.",
+          "description": "Whether or not the window has shadow.\n\n ## Platform-specific\n\n - **Windows:**\n   - `false` has no effect on decorated window, shadow are always ON.\n   - `true` will make undecorated window have a 1px white border,\n and on Windows 11, it will have a rounded corners.\n - **Linux:** Unsupported.",
           "default": true,
           "type": "boolean"
         },