Loading files
import { Palette } from "std-widgets.slint";
import { Constants } from "../api.slint";
export component ProgressBar inherits Rectangle {
in property <float> progress: 0;
height: 5px;
min-width: 50px;
border-radius: self.height / 2;
background: #505050;
// 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: Constants.librepcb-color;
}
}
2955876e1This file is pinned to the selected release. Download the original to open it in your design tool.