mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 05:14:48 +00:00

* Update api/node/README.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
16 lines
421 B
JavaScript
Executable file
16 lines
421 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import * as slint from "slint-ui";
|
|
|
|
let demo = slint.loadFile("../ui/printerdemo.slint");
|
|
let window = new demo.MainWindow();
|
|
|
|
window.ink_levels = [
|
|
{ color: "#00ffff", level: 0.30 },
|
|
{ color: "#ff00ff", level: 0.80 },
|
|
{ color: "#ffff00", level: 0.60 },
|
|
{ color: "#000000", level: 0.90 }];
|
|
|
|
window.run();
|