import {Metrics, DarkPalette} from "../theme.slint"; struct BorderStyle { border-width: length, border-color: brush, border-radius: length, } export component HorizontalBox inherits Rectangle { // TODO: border, shadow in property j-elevation: 1; in property j-rounding: Metrics.radius-md; in property j-padding: Metrics.padding-md; in property j-spacing: Metrics.spacing-md; in property j-alignment: stretch; background: DarkPalette.background[j-elevation]; border-radius: j-rounding; clip: true; HorizontalLayout { alignment: j-alignment; padding: j-padding; spacing: j-spacing; @children } } export component VerticalBox inherits Rectangle { // TODO: border, shadow in property j-elevation: 1; in property j-rounding: Metrics.radius-md; in property j-padding: Metrics.padding-md; in property j-spacing: Metrics.spacing-md; in property j-alignment: stretch; background: DarkPalette.background[j-elevation]; border-radius: j-rounding; clip: true; VerticalLayout { alignment: j-alignment; padding: j-padding; spacing: j-spacing; @children } } export component Box inherits Rectangle { in property j-elevation: 1; in property j-rounding: Metrics.radius-md; in property j-padding: Metrics.padding-md; background: DarkPalette.background[j-elevation]; border-radius: j-rounding; clip: true; padding: j-padding; @children }