fmeditor-slint/ui/appwindow.slint

45 lines
1.3 KiB
Plaintext
Raw Normal View History

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";
import { VerticalSeparator } from "widgets/separator.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 {
j-padding: Metrics.padding-sm;
j-spacing: Metrics.spacing-sm;
j-alignment: stretch;
background: DarkPalette.background[0];
2024-04-09 19:47:10 +00:00
EditorBar { }
2024-04-10 12:28:43 +00:00
HorizontalBox {
j-alignment: stretch;
background: DarkPalette.background[0];
j-padding: 0px;
j-spacing: Metrics.spacing-sm;
2024-04-09 19:47:10 +00:00
ToolBar { }
2024-04-09 20:56:02 +00:00
ObjectToolPanel { }
Rectangle {
Text {
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
}
}