slint/tools/lsp/ui/components/status-line.slint
2024-09-13 13:51:31 +02:00

34 lines
915 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 { HorizontalBox, Palette } from "std-widgets.slint";
export global StatusLineApi {
in-out property <string> help-text;
}
export component StatusLine {
background-layer := Rectangle {
background: Palette.alternate-background;
HorizontalLayout {
padding-left: 10px;
padding-bottom: 6px;
padding-top: 4px;
Text {
text <=> StatusLineApi.help-text;
height: 1.5rem;
font-italic: true;
font-weight: 300;
vertical-alignment: TextVerticalAlignment.center;
}
}
Rectangle {
y: 0;
height: 1px;
background: Palette.border;
}
}
}