diff options
Diffstat (limited to 'QtLauncher/DetailViewIcon.qml')
-rw-r--r-- | QtLauncher/DetailViewIcon.qml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/QtLauncher/DetailViewIcon.qml b/QtLauncher/DetailViewIcon.qml new file mode 100644 index 0000000..39f8e8c --- /dev/null +++ b/QtLauncher/DetailViewIcon.qml @@ -0,0 +1,42 @@ +// 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 + + Image { + id: selectedItem + anchors.fill: root.preview + source: "image://QtImageMask/" + sourceSize: Qt.size(width, height) + visible: root.isSelected + } + + Image { + id: glow + anchors.centerIn: root.preview + width: root.preview.width * 2.1 + height: root.preview.height * 2.1 + source: "images/glow.png" + opacity: root.isSelected + z: -1 + + Behavior on opacity { OpacityAnimator { duration: 200; easing.type: Easing.InOutSine }} + } + + Text { + anchors.fill: parent + anchors.margins: root.pageMargin + verticalAlignment: Text.AlignVCenter + horizontalAlignment: Text.AlignHCenter + font.pixelSize: parent.height * 0.1 + text: root.name + font.family: ViewSettings.appFont + color: ViewSettings.pine + wrapMode: Text.WordWrap + visible: root.highlight && !root.isSelected + } +} |