Warning, /plasma/latte-dock/containment/package/contents/ui/colorizer/KirigamiShadowedRectangle.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2020 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 import QtQuick 2.7
0007 
0008 import org.kde.plasma.plasmoid 2.0
0009 import org.kde.plasma.core 2.0 as PlasmaCore
0010 
0011 import org.kde.kirigami 2.12 as Kirigami
0012 
0013 Kirigami.ShadowedRectangle {
0014     radius: painter.radius
0015     color: "transparent"
0016     shadow.size: main.shadowSize
0017     //! WORKAROUND, plasma theme shadow color compared to KirigamiShadowedRectangle drawn shadow has an alpha difference. This way
0018     //! we make sure that when the user uses the same shadow size with plasma theme original one we draw the same shadow compared visually
0019     shadow.color: Qt.rgba(main.shadowColor.r, main.shadowColor.g, main.shadowColor.b, Math.min(1, 0.336 + main.shadowColor.a))
0020 }