mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 21:04:47 +00:00
17 lines
485 B
JavaScript
Executable file
17 lines
485 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
const path = require("path");
|
|
let slint = require("slint-ui");
|
|
|
|
let demo = require("../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();
|