Ver código fonte

docs(api): enhance theme api doc

Lucas Nogueira 3 anos atrás
pai
commit
95e77e591d
1 arquivos alterados com 4 adições e 1 exclusões
  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