@nodegui/os-utils
Advanced tools
Comparing version 1.0.2 to 1.1.2
@@ -14,2 +14,3 @@ cmake_minimum_required(VERSION 3.1) | ||
"${PROJECT_SOURCE_DIR}/src/cpp/AboutPanel/about_panel.mm" | ||
"${PROJECT_SOURCE_DIR}/src/cpp/Info/info.mm" | ||
) | ||
@@ -20,2 +21,3 @@ else() | ||
"${PROJECT_SOURCE_DIR}/src/cpp/AboutPanel/about_panel.cpp" | ||
"${PROJECT_SOURCE_DIR}/src/cpp/Info/info.cpp" | ||
) | ||
@@ -29,2 +31,3 @@ endif() | ||
"${PROJECT_SOURCE_DIR}/src/cpp/AboutPanel/about_panel_wrap.cpp" | ||
"${PROJECT_SOURCE_DIR}/src/cpp/Info/info_wrap.cpp" | ||
"${OS_SPECIFIC_SRC}" | ||
@@ -31,0 +34,0 @@ ) |
export { Dock } from "./lib/dock"; | ||
export { AboutPanel } from "./lib/aboutPanel"; | ||
export { Info } from "./lib/info"; |
@@ -7,1 +7,3 @@ "use strict"; | ||
exports.AboutPanel = aboutPanel_1.AboutPanel; | ||
var info_1 = require("./lib/info"); | ||
exports.Info = info_1.Info; |
{ | ||
"name": "@nodegui/os-utils", | ||
"version": "1.0.2", | ||
"version": "1.1.2", | ||
"description": "A helper module which contains OS specific native features.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -23,2 +23,3 @@ # os-utils | ||
``` | ||
```js | ||
@@ -33,2 +34,8 @@ import { AboutPanel } from "@nodegui/os-utils"; | ||
```js | ||
import { Info } from "@nodegui/os-utils"; | ||
console.log("isDarkMode: " + Info.isDarkMode()); | ||
``` | ||
## Supported APIs | ||
@@ -39,2 +46,3 @@ | ||
- Dock | ||
- `show()` - static method - Shows the Dock icon on macOS. Does nothing on other platforms. | ||
@@ -44,6 +52,10 @@ - `hide()` - static method - Hides the Dock icon on macOS. Does nothing on other platforms. | ||
- AboutPanel | ||
- `open(options?: object)` - static method - Opens the about panel on macOS. Does nothing on other platforms. `options` is optional and can contain the following strings: `name`, `version`, `applicationVersion`, and `copyright`. The default values are derived from `Info.plist`. | ||
- Info | ||
- `isDarkMode` - static method - Checks if the OS theme is dark mode in macOS. Does nothing on other platforms and returns false. Returns a boolean. | ||
## License | ||
MIT |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14433
31
73
58