Loading files
import { Data } from "../api.slint";
export component ProgressBar inherits Rectangle {
in property <float> progress: 0;
height: 7px;
min-width: 50px;
border-radius: self.height / 2;
background: Data.theme.control-checked;
// Accessibility
accessible-role: progress-indicator;
accessible-value-maximum: 1;
accessible-value-minimum: 0;
accessible-value: progress;
Rectangle {
x: 0;
y: 0;
width: root.width * progress;
height: 100%;
border-radius: self.height / 2;
background: Data.theme.accent;
}
}
0e185510cThis file is pinned to the selected release. Download the original to open it in your design tool.