21 lines
463 B
Plaintext
21 lines
463 B
Plaintext
import { Theme } from "../theme/theme.slint";
|
|
|
|
export enum Orientation {
|
|
horizontal,
|
|
vertical,
|
|
}
|
|
|
|
export component Separator {
|
|
in property <Orientation> orientation: Orientation.horizontal;
|
|
|
|
if orientation == Orientation.horizontal: Rectangle {
|
|
height: 1px;
|
|
background: Theme.colors.border;
|
|
}
|
|
|
|
if orientation == Orientation.vertical: Rectangle {
|
|
width: 1px;
|
|
background: Theme.colors.border;
|
|
}
|
|
}
|