fmeditor-slint/ui/appwindow.slint

45 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2024-04-10 12:28:43 +00:00
import { Metrics, DarkPalette } from "theme.slint";
import { VerticalBox, HorizontalBox } from "widgets/components.slint";
2024-04-09 19:47:10 +00:00
import { EditorBar } from "editor_bar.slint";
import { StatusBar } from "status_bar.slint";
2024-04-14 12:02:12 +00:00
import { ToolBar, ToolType } from "tool_bar.slint";
2024-04-09 20:56:02 +00:00
import { ObjectToolPanel } from "object_tool_panel.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 {
p-rounding: 0px;
p-padding: Metrics.padding-sm;
p-spacing: Metrics.spacing-sm;
p-elevation: 0;
2024-04-09 19:47:10 +00:00
EditorBar { }
2024-04-10 12:28:43 +00:00
HorizontalBox {
p-elevation: 0;
p-padding: 0px;
p-spacing: Metrics.spacing-sm;
2024-04-10 12:28:43 +00:00
2024-04-14 12:02:12 +00:00
c-toolbar := ToolBar { }
2024-04-09 20:56:02 +00:00
2024-04-14 12:02:12 +00:00
if (c-toolbar.p-current-tool == ToolType.Object): ObjectToolPanel { }
2024-04-09 20:56:02 +00:00
Rectangle {
Text {
2024-04-10 15:46:36 +00:00
color: DarkPalette.text[4];
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
}
}