Loading files
ce705b508This file is pinned to the selected release. Download the original to open it in your design tool.
import {
Button,
MessageBanner,
} from "../widgets.slint";
import { Data } from "../api.slint";
export component BreakingChangesMessageBanner inherits MessageBanner {
text: @tr("Attention").to-uppercase() + ": " + @tr("You have changed some important properties of this library element. This is a serious issue as it breaks all dependent library elements! If this library element is already used somewhere, it is highly recommended to create a new one instead of modifying this one.");
}
export component CheckErrorsMessageBanner inherits MessageBanner {
text: @tr("Attention").to-uppercase() + ": " + @tr("This library element contains serious errors. Please review them in the rule check panel.");
}
export component FilesModifiedMessageBanner inherits MessageBanner {
background: Data.theme.info;
callback reload-clicked <=> reload-btn.clicked;
HorizontalLayout {
spacing: 5px;
VerticalLayout {
horizontal-stretch: 1;
alignment: center;
Text {
color: Data.theme.info-text;
horizontal-alignment: left;
wrap: word-wrap;
text: @tr("The files have been modified on disk. It is recommended to close and reopen this tab to see the modifications.");
}
Text {
color: Data.theme.info-text;
font-weight: 700;
horizontal-alignment: left;
wrap: word-wrap;
text: @tr("Note that the reload feature is currently considered experimental.");
}
}
reload-btn := Button {
y: (parent.height - self.height) / 2;
horizontal-stretch: 0;
text: @tr("Reload");
status-tip: @tr("Discard modifications (if any) and reload the modified files from disk");
}
}
}