27 lines
843 B
Plaintext
27 lines
843 B
Plaintext
import { AboutSlint, Button, ScrollView, VerticalBox } from "std-widgets.slint";
|
|
|
|
export component AboutWindow inherits Window {
|
|
title: "TeamsPeach";
|
|
preferred-width: 640px;
|
|
preferred-height: 480px;
|
|
min-width: 360px;
|
|
min-height: 320px;
|
|
background: #222a3c;
|
|
default-font-family: "Noto Sans";
|
|
default-font-size: 15px;
|
|
in property <string> build-description;
|
|
callback close-requested();
|
|
VerticalBox {
|
|
padding: 20px;
|
|
spacing: 12px;
|
|
Text { text: "TeamsPeach"; color: white; font-size: 24px; font-weight: 700; }
|
|
ScrollView {
|
|
VerticalBox {
|
|
Text { text: root.build-description; color: white; wrap: word-wrap; }
|
|
AboutSlint { }
|
|
}
|
|
}
|
|
Button { text: "Close"; clicked => { root.close-requested(); } }
|
|
}
|
|
}
|