Warning, /plasma/latte-dock/indicators/org.kde.latte.plasma/package/ui/AppletBackLayer.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     SPDX-FileCopyrightText: 2022 Michail Vourlakos <mvourlakos@gmail.com>
0003     SPDX-License-Identifier: GPL-2.0-or-later
0004 */
0005 
0006 import QtQuick 2.0
0007 
0008 import org.kde.plasma.plasmoid 2.0
0009 import org.kde.plasma.core 2.0 as PlasmaCore
0010 
0011 PlasmaCore.FrameSvgItem {
0012     id: frame
0013     imagePath: "widgets/tabbar"
0014     opacity: indicator.isActive ? 1 : 0
0015     visible: indicator.isApplet
0016 
0017     prefix: {
0018         let prefix;
0019         switch (Plasmoid.location) {
0020         case PlasmaCore.Types.LeftEdge:
0021             prefix = "west-active-tab";
0022             break;
0023         case PlasmaCore.Types.TopEdge:
0024             prefix = "north-active-tab";
0025             break;
0026         case PlasmaCore.Types.RightEdge:
0027             prefix = "east-active-tab";
0028             break;
0029         default:
0030             prefix = "south-active-tab";
0031         }
0032         if (!hasElementPrefix(prefix)) {
0033             prefix = "active-tab";
0034         }
0035         return prefix;
0036     }
0037 
0038     Behavior on opacity {
0039         NumberAnimation {
0040             duration: PlasmaCore.Units.shortDuration
0041             easing.type: Easing.InOutQuad
0042         }
0043     }
0044 }