mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-29 06:44:08 +00:00
25 lines
No EOL
964 B
Text
25 lines
No EOL
964 B
Text
// Copyright © SixtyFPS GmbH <info@slint.dev>
|
|
// SPDX-License-Identifier: MIT
|
|
import { AppState } from "../appState.slint";
|
|
|
|
export component Info {
|
|
in property <string> name;
|
|
in property <string> id;
|
|
in property <bool> full-screen: false;
|
|
@children
|
|
|
|
if AppState.graphics-accelerator-available : Rectangle {
|
|
border-width: 3px;
|
|
border-color: @linear-gradient(150deg, white.transparentize(60%) 0%, white.transparentize(85%) 50%, #ffffff.transparentize(95%) 100%);
|
|
border-radius: 25px;
|
|
background: @linear-gradient(150deg, white.transparentize(60%) 0%, white.transparentize(85%) 40%, white.transparentize(85%) 60%, #ffffff.transparentize(60%) 100%);
|
|
}
|
|
if !AppState.graphics-accelerator-available : Image {
|
|
x: -14px;
|
|
y: -12px;
|
|
width: parent.width + 33px;
|
|
height: parent.height + 34px;
|
|
source: @image-url("../images/info-frame.png", nine-slice(30 50 35 30));
|
|
}
|
|
|
|
} |