slint/examples/printerdemo_old/ui/common.60
Olivier Goffart 5c6e84fa54 Copy the printerdemo to printerdemo_old
We're about to redo the printerdemo so copy the old one as we will
re-use the path for the new one
2021-02-22 11:16:40 +01:00

22 lines
No EOL
674 B
Text

/* LICENSE BEGIN
This file is part of the SixtyFPS Project -- https://sixtyfps.io
Copyright (c) 2020 Olivier Goffart <olivier.goffart@sixtyfps.io>
Copyright (c) 2020 Simon Hausmann <simon.hausmann@sixtyfps.io>
SPDX-License-Identifier: GPL-3.0-only
This file is also available under commercial licensing terms.
Please contact info@sixtyfps.io for more information.
LICENSE END */
export Label := Text {
font-size: 28px;
}
export Page := Rectangle {
background: white;
animate y { duration: 300ms; easing: ease_out; }
}
export Preview := Image {
source: @image-url("images/cat_preview_round.png");
width: self.height * 320/480;
}