mirai/ui/appwindow.slint

27 lines
729 B
Text
Raw Normal View History

2024-08-16 21:35:12 +02:00
import { Backend } from "Backend.slint";
import { Button, VerticalBox, CheckBox, Palette } from "std-widgets.slint";
import { SideBar } from "SideBar.slint";
import { MainView } from "MainView.slint";
import { TaskWindow } from "windows/TaskWindow.slint";
2024-08-16 21:35:12 +02:00
import { EventWindow } from "windows/EventWindow.slint";
export component AppWindow inherits Window {
title: "Mirai";
min-height: 100px;
max-height: 4000px; // needed, otherwise the window wants to fit the content (on Swaywm)
default-font-size: 16px;
in-out property<string> test;
HorizontalLayout {
SideBar {}
MainView {
horizontal-stretch: 1;
}
}
}
export { Backend, TaskWindow, EventWindow } // Export to make it visible to the C++ backend