slint/tools/lsp/ui/components/out-of-date-box.slint
Tobias Hunger c44a0f0a1d live-preview: Show popup when preview is outdated
... but keep the old preview visible otherwise.
2024-12-09 13:26:41 +01:00

24 lines
690 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 { Palette } from "std-widgets.slint";
export component OutOfDateBox {
Rectangle {
background: Palette.accent-background;
border-radius: self.height / 2;
HorizontalLayout {
padding-top: 5px;
padding-bottom: 5px;
padding-left: 15px;
padding-right: 15px;
Text {
color: Palette.accent-foreground;
text: "Preview is out of date";
vertical-alignment: center;
}
}
}
}