import { HorizontalBox, Button, StandardButton, Palette } from "std-widgets.slint"; export component NavBar inherits Rectangle { in property back-text; in property back-enabled; in property next-text; callback back-clicked <=> back.clicked; callback next-clicked <=> next.clicked; pure callback cancel(); background: Palette.alternate-background; HorizontalBox { alignment: end; back := Button { text: root.back-text; enabled: root.back-enabled; } next := Button { text: root.next-text; } StandardButton { kind: StandardButtonKind.cancel; clicked => { cancel(); } } } }