Warning, /plasma/latte-dock/declarativeimports/components/IndicatorItem.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * Copyright 2019 Michail Vourlakos <mvourlakos@gmail.com> 0003 * 0004 * This file is part of Latte-Dock 0005 * 0006 * Latte-Dock is free software; you can redistribute it and/or 0007 * modify it under the terms of the GNU General Public License as 0008 * published by the Free Software Foundation; either version 2 of 0009 * the License, or (at your option) any later version. 0010 * 0011 * Latte-Dock is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 * GNU General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU General Public License 0017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0018 */ 0019 0020 import QtQuick 2.7 0021 0022 Item { 0023 readonly property Item level: parent && parent.hasOwnProperty("level") ? parent.level : null 0024 readonly property Item indicator: parent && parent.hasOwnProperty("level") ? parent.level.bridge : null 0025 0026 //! indicator is using main colors from icon e.g. unity style 0027 property bool needsIconColors: false 0028 //! indicator is using the mouse events coordinates e.g. for animations 0029 property bool needsMouseEventCoordinates: false 0030 //! indicator provides also foreground layer that should be drawn on top of the Items icons 0031 property bool providesFrontLayer: false 0032 //! indicator provides its own hovering animations. Latte should not provide 0033 //! any hovering animation in that case 0034 property bool providesHoveredAnimation: false 0035 //! indicator provides its own clicked animations. Latte should not provide 0036 //! any clicked animation in that case 0037 property bool providesClickedAnimation: false 0038 0039 //! this indicator visuals go out of the regular mask thickness and this variable sets 0040 //! the pixels needed outside of the mask thickness e.g. a glow 0041 property int extraMaskThickness: 0 0042 0043 //! this indicator specifies a minimum thickness padding in order to be drawn correctly. 0044 //! Values below the specified value are ignored. This value is a percentage, 0045 //! e.g 0.06 -> 6% 0046 property real minThicknessPadding: 0 0047 //! this indicator specifies a minimum length padding in order to be drawn correctly. 0048 //! Values below the specified value are ignored. This value is a percentage, 0049 //! e.g 0.06 -> 6% 0050 property real minLengthPadding: 0 0051 0052 //! this indicator specifies a different padding value for applets. This value is a percentage, 0053 //! -1, means disabled and the regular padding is used 0054 //! 0.06 -> 6% 0055 //! [since v0.9.2] 0056 property real appletLengthPadding: -1 0057 0058 //! svg image paths either from plasma theme or local files relevant to indicator "ui" directory 0059 //! in order to reduce resources usage 0060 property var svgImagePaths: [] 0061 }