2024-08-16 21:35:12 +02:00
|
|
|
import { Backend } from "Backend.slint";
|
2024-10-27 22:11:11 +01:00
|
|
|
import { Button, VerticalBox, CheckBox } from "std-widgets.slint";
|
2024-10-15 16:41:22 +02:00
|
|
|
import { SideBar } from "./components/SideBar.slint";
|
2024-08-16 21:35:12 +02:00
|
|
|
import { MainView } from "MainView.slint";
|
2024-10-27 22:11:11 +01:00
|
|
|
import { Palette } from "@selenite";
|
2024-08-16 21:35:12 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-10-27 22:11:11 +01:00
|
|
|
export { Backend, Palette } // Export to make it visible to the C++ backend
|