// Copyright © SixtyFPS GmbH // SPDX-License-Identifier: MIT import { Theme } from "../theme.slint"; import { StateLayer } from "../components/state_layer.slint"; export component MenuButton { callback clicked <=> i-state-layer.clicked; min-width: 100px; min-height: 32px; opacity: root.visible ? 1.0 : 0.0; animate opacity { duration: Theme.durations.fast; } i-container := Rectangle { background: Theme.palette.heliotrope-gradient; border-radius: root.height / 2; Rectangle { width: 55px; height: 5px; background: Theme.palette.white; border-radius: 3px; } } i-state-layer := StateLayer { border-radius: i-container.border-radius; } }