| 1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
| 2 | // SPDX-License-Identifier: MIT |
| 3 | import { Palette,Measurements,Colors } from "../common.slint" ; |
| 4 | import { AppState } from "../appState.slint" ; |
| 5 | import { HaText } from "general/haText.slint" ; |
| 6 | import { InnerShadowRectangle } from "general/innerShadowRectangle.slint" ; |
| 7 | |
| 8 | export component Info { |
| 9 | in property <string> name; |
| 10 | in property <string> id; |
| 11 | in property <bool> full-screen: false; |
| 12 | @children |
| 13 | |
| 14 | if AppState.graphics-accelerator-available : Rectangle { |
| 15 | border-width: 3px; |
| 16 | border-color: @linear-gradient(150deg, white.transparentize(60%) 0%, white.transparentize(85%) 50%, #ffffff.transparentize(95%) 100%); |
| 17 | border-radius: 25px; |
| 18 | background: @linear-gradient(150deg, white.transparentize(60%) 0%, white.transparentize(85%) 40%, white.transparentize(85%) 60%, #ffffff.transparentize(60%) 100%); |
| 19 | } |
| 20 | if !AppState.graphics-accelerator-available : Image { |
| 21 | x: -14px; |
| 22 | y: -12px; |
| 23 | width: parent.width + 33px; |
| 24 | height: parent.height + 34px; |
| 25 | source: @image-url("../images/info-frame.png" , nine-slice(30 50 35 30)); |
| 26 | } |
| 27 | |
| 28 | } |