Update dependencies and adapt code

This commit is contained in:
Vyn 2024-10-27 22:11:11 +01:00
parent f11f4bf1c9
commit a80515ff90
9 changed files with 72 additions and 29 deletions

View file

@ -1,24 +0,0 @@
import { Backend } from "Backend.slint";
import { Button, VerticalBox, CheckBox, Palette } from "std-widgets.slint";
import { SideBar } from "./components/SideBar.slint";
import { MainView } from "MainView.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 } // Export to make it visible to the C++ backend