Procházet zdrojové kódy

docs(api): enhance theme api doc

Lucas Nogueira před 3 roky
rodič
revize
95e77e591d
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      tooling/api/src/window.ts

+ 4 - 1
tooling/api/src/window.ts

@@ -663,7 +663,10 @@ class WindowManager extends WebviewWindowHandle {
   /**
    * Gets the window's current theme.
    *
-   * Only implemented on Windows and macOS 10.14+.
+   * #### Platform-specific
+   *
+   * - **Linux:** Not implemented, always returns `light`.
+   * - **macOS:** Theme was introduced on macOS 10.14. Returns `light` on macOS 10.13 and below.
    *
    * @example
    * ```typescript