Warning, /multimedia/audiotube/src/contents/ui/RoundedImage.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2022 Mathis BrĂ¼chert <mbb@kaidan.im>
0002 //
0003 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0004
0005 import QtQuick 2.15
0006 import QtQuick.Window 2.15
0007
0008 import org.kde.kirigami as Kirigami
0009
0010 Item {
0011 id: icon
0012
0013 property int radius
0014 property alias source: image.source
0015
0016 Image {
0017 id: image
0018
0019 source: source
0020 anchors.fill: parent
0021 fillMode: Image.PreserveAspectCrop
0022 asynchronous: true
0023 sourceSize.width: parent.implicitWidth * Screen.devicePixelRatio
0024
0025 layer {
0026 enabled: true
0027 effect: Kirigami.ShadowedTexture {
0028 id: mask
0029 radius: icon.radius
0030 }
0031 }
0032 }
0033 }
0034