mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-02 17:23:20 +00:00
Switch from Qt6 to Slint
This commit is contained in:
parent
f8be14bcf8
commit
63bf267a22
107 changed files with 27532 additions and 2896 deletions
26
ui/appwindow.slint
Normal file
26
ui/appwindow.slint
Normal file
|
@ -0,0 +1,26 @@
|
|||
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 { TaskEdit } from "windows/TaskEdit.slint";
|
||||
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, TaskEdit, EventWindow } // Export to make it visible to the C++ backend
|
Loading…
Add table
Add a link
Reference in a new issue