Loading files
import { Data } from "../../api.slint";
export component PackageEditorPanel inherits Rectangle {
in property <bool> error-state;
out property <bool> has-hover: ta.has-hover;
width: self.preferred-width;
height: self.preferred-height;
background: Data.theme.control;
border-color: error-state ? Data.theme.base-text-error : Data.theme.control-border;
border-width: error-state ? 2px : 1px;
border-radius: 5px;
opacity: has-hover ? 1 : 0.8;
animate opacity { duration: 100ms; }
ta := TouchArea {
VerticalLayout {
padding: 5px;
@children
}
}
}
c730ec352This file is pinned to the selected release. Download the original to open it in your design tool.