mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-22 00:02:40 +00:00

* vscode: Add a hello world file template * Update editors/vscode/snippets/slint.json Co-authored-by: Simon Hausmann <hausmann@gmail.com>
21 lines
545 B
JSON
21 lines
545 B
JSON
{
|
|
"Hello World": {
|
|
"prefix": ["hello world window"],
|
|
"isFileTemplate": true,
|
|
"body": [
|
|
"import { AboutSlint, VerticalBox } from \"std-widgets.slint\";",
|
|
"",
|
|
"export component MainWindow inherits Window {",
|
|
" VerticalBox {",
|
|
" Text {",
|
|
" text: \"Hello World!\";",
|
|
" }",
|
|
" AboutSlint {",
|
|
" preferred-height: 150px;",
|
|
" }",
|
|
" }",
|
|
"}"
|
|
],
|
|
"description": "A Hello World window written in Slint"
|
|
}
|
|
}
|