Set program version depending on own version
This commit is contained in:
@@ -57,10 +57,14 @@ export component MainWindow inherits Window {
|
||||
}
|
||||
Tab {
|
||||
title: "About";
|
||||
AboutTab {}
|
||||
about_tab := AboutTab {}
|
||||
}
|
||||
}
|
||||
|
||||
public function set_version(version: string) {
|
||||
about_tab.version = version;
|
||||
}
|
||||
|
||||
public function change_to_load_file() {
|
||||
file_tab.state = State.ConvertImage;
|
||||
tab_widget.current-index = 0;
|
||||
|
@@ -1,14 +1,19 @@
|
||||
import { AboutSlint } from "std-widgets.slint";
|
||||
export component AboutTab {
|
||||
in property <string> version;
|
||||
y: 0px;
|
||||
VerticalLayout {
|
||||
padding: 8px;
|
||||
alignment: start;
|
||||
Text {
|
||||
font-size: 24pt;
|
||||
text: "TIM_Tool Version 0.1.0";
|
||||
text: "TIM_Tool Version " + root.version;
|
||||
horizontal-alignment: center;
|
||||
}
|
||||
Image {
|
||||
source: @image-url("../assets/TimTool64x64.png");
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
Text {
|
||||
font-size: 20pt;
|
||||
text: "Part of JabyEngine";
|
||||
|
Reference in New Issue
Block a user