import { AppWindowModels } from "../AppWindow/Models.slint";
import { Button, VerticalBox, CheckBox } from "std-widgets.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)
	background: Palette.background;

    VerticalLayout {
		padding: 16px;
		spacing: 8px;
		for source[source-index] in AppWindowModels.sources-selected: VerticalLayout {
			VText {
				text: source.name;
			}
			VTextInput {
				text: source.path;
			}
		}
     }
}

export { AppWindowModels, Palette } // Export to make it visible to the C++ backend
