Warning, /plasma/latte-dock/declarativeimports/abilities/definition/Metrics.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 "./metrics" as MetricsTypes
0009 
0010 Item {
0011     id: _metrics
0012     property int iconSize: 48
0013     property int maxIconSize: 48
0014     property int backgroundThickness: 16
0015 
0016     property MetricsTypes.Margin margin: MetricsTypes.Margin{
0017         tailThickness: 4
0018         maxTailThickness: 4
0019         headThickness: 4
0020         maxHeadThickness: 4
0021         length: 4
0022         screenEdge: 0
0023     }
0024 
0025     property MetricsTypes.MarginsArea marginsArea: MetricsTypes.MarginsArea{
0026         tailThickness: 8 //margin.thickness + 4
0027         headThickness: 8 //margin.thickness + 4
0028         //readonly property int iconSize: _metrics.totals.thickness - thicknessEdges
0029         //readonly property int thicknessEdges: 2*marginThickness
0030     }
0031 
0032     property MetricsTypes.Padding padding: MetricsTypes.Padding{
0033         length: 0
0034         lengthApplet: 0
0035     }
0036 
0037     property MetricsTypes.Totals totals: MetricsTypes.Totals{
0038         //readonly property int length: iconSize + lengthEdges
0039         //readonly property int lengthEdge: margin.length + padding.length
0040         //readonly property int lengthEdges: 2 * lengthEdge
0041         //readonly property int lengthPaddings: 2 * padding.length
0042         //readonly property int marginsAreaThicknessEdges: 2 * margin.marginsAreaThickness
0043         //readonly property int thickness: iconSize + thicknessEdges
0044         //readonly property int thicknessEdges: 2 * margin.thickness
0045     }
0046 
0047     property MetricsTypes.Mask mask: MetricsTypes.Mask{
0048         screenEdge: 0
0049         maxScreenEdge: 0
0050 
0051         thickness {
0052             hidden: 1
0053             normal: 48
0054             medium: 48
0055             zoomed: 48
0056 
0057             maxNormal: 48
0058             maxMedium: 48
0059             maxZoomed: 48
0060 
0061             normalForItems: 48
0062             mediumForItems: 48
0063             zoomedForItems: 48
0064 
0065             maxNormalForItems: 48
0066             maxMediumForItems: 48
0067             maxZoomedForItems: 48
0068 
0069             maxNormalForItemsWithoutScreenEdge: 48
0070             maxZoomedForItemsWithoutScreenEdge: 48
0071         }
0072     }
0073 }