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