kavita-upload-helper/ui/appwindow.slint

31 lines
1,012 B
Text

import { Button, VerticalBox, HorizontalBox } from "std-widgets.slint";
import { SideBar } from "sidebar.slint";
import { AboutPage } from "pages/about_page.slint";
import { SettingsPage, SettingsPageInterface, JNCSettingsInterface } from "pages/settings_page.slint";
import { UploadPage, UploadPageInterface } from "pages/upload_page.slint";
export { SettingsPageInterface, JNCSettingsInterface, UploadPageInterface }
export component AppWindow inherits Window {
title: "Kavita Upload Tool";
preferred-width: 1024px;
preferred-height: 720px;
HorizontalLayout {
VerticalBox {
padding-right: 0px;
side-bar := SideBar {
title: "Kavita Upload Tool";
model: [
"Upload Tool",
"Settings",
"About"
];
}
}
if (side-bar.current-item == 0) : UploadPage {}
if (side-bar.current-item == 1) : SettingsPage {}
if (side-bar.current-item == 2) : AboutPage {}
}
}