mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
18 lines
437 B
Text
18 lines
437 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
import { Palette } from "std-widgets.slint";
|
|
|
|
export component Label inherits Text {
|
|
font-size: 28px;
|
|
horizontal-stretch: 1;
|
|
}
|
|
|
|
export component Page inherits Rectangle {
|
|
background: Palette.background;
|
|
animate y { duration: 300ms; easing: ease-out; }
|
|
}
|
|
|
|
export component Preview inherits Image {
|
|
source: @image-url("images/cat.jpg");
|
|
}
|