slint/tools/lsp/ui/components/spreadsheet-dialog.slint
Tobias Hunger 5fcf6da7d2 live-preview: Spreadsheet UI files
... bring back the spreadsheet UI files.
2025-03-06 09:02:33 +01:00

31 lines
892 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
import { Button } from "std-widgets.slint";
import { EditorSpaceSettings } from "../components/styling.slint";
import { Spreadsheet } from "../components/spreadsheet.slint";
import { WindowGlobal } from "../windowglobal.slint";
export component SpreadsheetDialog inherits Dialog {
width: Math.min(self.preferred-width, WindowGlobal.window-width * 0.9);
height: Math.min(self.preferred-height, WindowGlobal.window-height * 0.9);
title: "Edit Values";
VerticalLayout {
Spreadsheet {
}
HorizontalLayout {
alignment: end;
padding: 8px;
Button {
text: "Close";
clicked => {
}
}
}
}
}