2024-04-10 12:28:43 +00:00
|
|
|
import {DarkPalette} from "../theme.slint";
|
|
|
|
|
2024-04-14 11:33:11 +00:00
|
|
|
export component VerticalSeparator inherits Path {
|
|
|
|
in property <int> p-elevation: 0;
|
|
|
|
|
2024-04-10 12:28:43 +00:00
|
|
|
width: 1px;
|
2024-04-14 11:33:11 +00:00
|
|
|
stroke: DarkPalette.background[root.p-elevation];
|
|
|
|
stroke-width: 1px;
|
|
|
|
commands: "M 0 0 L 0 1 Z";
|
2024-04-09 19:52:34 +00:00
|
|
|
}
|
|
|
|
|
2024-04-14 11:33:11 +00:00
|
|
|
export component HorizontalSeparator inherits Path {
|
|
|
|
in property <int> p-elevation: 0;
|
|
|
|
|
2024-04-10 12:28:43 +00:00
|
|
|
height: 1px;
|
2024-04-14 11:33:11 +00:00
|
|
|
stroke: DarkPalette.background[root.p-elevation];
|
|
|
|
stroke-width: 1px;
|
|
|
|
commands: "M 0 0 L 1 0 Z";
|
2024-04-09 19:52:34 +00:00
|
|
|
}
|