blob: d8c53173428619b2e33d1ceb3cdeb950fbaa7b22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
pragma ComponentBehavior: Bound
import QtQuick
ApplicationIcon {
id: root
hoverSource: "image://QtImageMask/hover"
Image {
id: glow
anchors.centerIn: root.preview
width: root.preview.width * 2.1
height: root.preview.height * 2.1
source: "images/glow.png"
sourceSize: Qt.size(width, height)
opacity: root.highlight ? 1 : 0
z: -100
Behavior on opacity { OpacityAnimator { duration: 200; easing.type: Easing.InOutSine }}
}
Text {
anchors.fill: parent
anchors.margins: root.pageMargin * 2
font.pixelSize: parent.height * 0.08
verticalAlignment: Text.AlignVCenter
horizontalAlignment: Text.AlignHCenter
text: root.name
font.family: ViewSettings.appFont
font.styleName: "SemiBold"
color: ViewSettings.pine
wrapMode: Text.WordWrap
visible: root.highlight
}
}
|