Warning, /plasma/latte-dock/indicators/org.kde.latte.plasmatabstyle/package/ui/BackLayer.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.0
0007 
0008 import org.kde.plasma.core 2.0 as PlasmaCore
0009 
0010 PlasmaCore.FrameSvgItem {    id: frame
0011     property string basePrefix: "normal"
0012 
0013     imagePath: "widgets/tabbar"
0014     rotation: 0
0015 
0016     opacity: 1
0017 
0018     prefix: {
0019         if (!indicator.isActive) {
0020             return "";
0021         }
0022 
0023         if (plasmoid.location === PlasmaCore.Types.LeftEdge) {
0024             return "west-active-tab";
0025         }
0026 
0027         if (plasmoid.location === PlasmaCore.Types.TopEdge) {
0028             return "north-active-tab";
0029         }
0030 
0031         if (plasmoid.location === PlasmaCore.Types.RightEdge) {
0032             return "east-active-tab";
0033         }
0034 
0035         if (plasmoid.location === PlasmaCore.Types.BottomEdge) {
0036             return "south-active-tab";
0037         }
0038 
0039         return  "south-active-tab";
0040     }
0041 
0042     states: [
0043         State {
0044             name: "launcher"
0045             when: indicator.isLauncher || (indicator.isApplet && !indicator.isActive)
0046 
0047             PropertyChanges {
0048                 target: frame
0049                 basePrefix: ""
0050             }
0051         },
0052         State {
0053             name: "hovered"
0054             when: indicator.isHovered && frame.hasElementPrefix("hover")
0055 
0056             PropertyChanges {
0057                 target: frame
0058                 basePrefix: "hover"
0059             }
0060         },
0061         State {
0062             name: "attention"
0063             when: indicator.inAttention
0064 
0065             PropertyChanges {
0066                 target: frame
0067                 basePrefix: "attention"
0068             }
0069         },
0070         State {
0071             name: "minimized"
0072             when: indicator.isMinimized
0073 
0074             PropertyChanges {
0075                 target: frame
0076                 basePrefix: "minimized"
0077             }
0078         },
0079         State {
0080             name: "active"
0081             when: indicator.isActive
0082 
0083             PropertyChanges {
0084                 target: frame
0085                 basePrefix: "focus"
0086             }
0087         }
0088     ]
0089 }