2024-04-10 12:28:43 +00:00
|
|
|
import { Metrics, DarkPalette } from "theme.slint";
|
2024-04-09 19:47:10 +00:00
|
|
|
import { EditorBar } from "editor_bar.slint";
|
|
|
|
import { StatusBar } from "status_bar.slint";
|
|
|
|
import { ToolBar } from "tool_bar.slint";
|
2024-04-09 20:56:02 +00:00
|
|
|
import { ObjectToolPanel } from "object_tool_panel.slint";
|
2024-04-10 12:28:43 +00:00
|
|
|
import { VerticalBox, HorizontalBox } from "widgets/layout.slint";
|
2024-04-09 19:47:10 +00:00
|
|
|
|
2024-04-09 16:01:21 +00:00
|
|
|
export component AppWindow inherits Window {
|
2024-04-09 19:47:10 +00:00
|
|
|
title: @tr("FM Editor");
|
|
|
|
preferred-width: 1280px;
|
|
|
|
preferred-height: 720px;
|
2024-04-10 12:28:43 +00:00
|
|
|
VerticalBox {
|
2024-04-10 15:50:54 +00:00
|
|
|
p-rounding: 0px;
|
|
|
|
p-padding: Metrics.padding-sm;
|
|
|
|
p-spacing: Metrics.spacing-sm;
|
2024-04-10 12:28:43 +00:00
|
|
|
background: DarkPalette.background[0];
|
2024-04-09 19:47:10 +00:00
|
|
|
EditorBar { }
|
|
|
|
|
2024-04-10 12:28:43 +00:00
|
|
|
HorizontalBox {
|
|
|
|
background: DarkPalette.background[0];
|
2024-04-10 15:50:54 +00:00
|
|
|
p-padding: 0px;
|
|
|
|
p-spacing: Metrics.spacing-sm;
|
2024-04-10 12:28:43 +00:00
|
|
|
|
2024-04-09 19:47:10 +00:00
|
|
|
ToolBar { }
|
2024-04-09 20:56:02 +00:00
|
|
|
|
|
|
|
ObjectToolPanel { }
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
Text {
|
2024-04-10 15:46:36 +00:00
|
|
|
color: DarkPalette.text[4];
|
2024-04-10 10:34:47 +00:00
|
|
|
font-size: Metrics.font-lg;
|
2024-04-09 20:56:02 +00:00
|
|
|
text: "INSERT VIEWPORT HERE";
|
|
|
|
vertical-alignment: center;
|
|
|
|
horizontal-alignment: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ObjectToolPanel { }
|
2024-04-09 19:47:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
StatusBar { }
|
2024-04-09 16:01:21 +00:00
|
|
|
}
|
|
|
|
}
|