// Copyright © SixtyFPS GmbH // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.1 OR LicenseRef-Slint-commercial // cSpell: ignore lumino import { Message } from "@lumino/messaging"; import { Widget } from "@lumino/widgets"; export class WelcomeWidget extends Widget { static createNode(): HTMLElement { const node = document.createElement("div"); const content = document.createElement("div"); content.innerHTML = `

Welcome to SlintPad

Slint is a toolkit to efficiently develop fluid graphical user interfaces for any display: embedded devices and desktop applications. It comes with a custom markup language for user interfaces. This language is easy to learn, to read and write, and provides a powerful way to describe graphical elements. For more details, check out the Slint Language Documentation.

Use SlintPad to quickly try out Slint code snippets, with auto-completion, code navigation, and live-preview.

The same features are also available in the Visual Studio Code extension, which runs in your local VS code installation as well as in the Visual Studio Code for the Web.

SlintPad is licensed under the GNU GPLv3. The source code is located in our GitHub repository.

`; node.appendChild(content); return node; } constructor() { super({ node: WelcomeWidget.createNode() }); this.setFlag(Widget.Flag.DisallowLayout); this.addClass("content"); this.addClass("welcome".toLowerCase()); this.title.label = "Welcome"; this.title.closable = true; this.title.caption = `Welcome to Slint`; } protected onCloseRequest(msg: Message): void { super.onCloseRequest(msg); this.dispose(); } }