mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-03 17:10:34 +00:00

These are showing off use-cases for Slint, but they're not examples showing individual Slint features. Also removed the old printerdemo while at it.
19 lines
No EOL
430 B
Text
19 lines
No EOL
430 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import { Theme } from "../theme.slint";
|
|
|
|
export component BarBackground inherits Rectangle {
|
|
border-radius: 2px;
|
|
background: Theme.palette.bar-background-gradient;
|
|
opacity: 0.25;
|
|
}
|
|
|
|
export component ChartPattern {
|
|
in property <int> count;
|
|
|
|
HorizontalLayout {
|
|
spacing: 1px;
|
|
for _ in count : BarBackground {}
|
|
}
|
|
} |