mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 01:33:19 +00:00
30 lines
811 B
Text
30 lines
811 B
Text
|
import { Backend } from "Backend.slint";
|
||
|
import { Button, VerticalBox, CheckBox } from "std-widgets.slint";
|
||
|
import { SideBar } from "./components/SideBar.slint";
|
||
|
import { MainView } from "MainView.slint";
|
||
|
import { VText, VTextInput, Palette } from "@selenite";
|
||
|
|
||
|
export component SettingsWindow inherits Window {
|
||
|
|
||
|
title: "Mirai - Settings";
|
||
|
min-height: 100px;
|
||
|
max-height: 4000px; // needed, otherwise the window wants to fit the content (on Swaywm)
|
||
|
default-font-size: 16px;
|
||
|
background: Palette.background;
|
||
|
|
||
|
VerticalLayout {
|
||
|
padding: 16px;
|
||
|
spacing: 8px;
|
||
|
for source[source-index] in Backend.sources-selected: VerticalLayout {
|
||
|
VText {
|
||
|
text: source.name;
|
||
|
}
|
||
|
VTextInput {
|
||
|
text: source.path;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export { Backend, Palette } // Export to make it visible to the C++ backend
|