mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-27 02:50:22 +03:00
provide Metrics.MarginsArea
This commit is contained in:
parent
a67656c2f2
commit
1fa48b00eb
@ -22,6 +22,7 @@ import QtQuick 2.0
|
||||
import "./metrics" as MetricsTypes
|
||||
|
||||
Item {
|
||||
id: _metrics
|
||||
property int iconSize: 48
|
||||
property int maxIconSize: 48
|
||||
property int backgroundThickness: 16
|
||||
@ -33,18 +34,25 @@ Item {
|
||||
screenEdge: 0
|
||||
}
|
||||
|
||||
property MetricsTypes.MarginsArea marginsArea: MetricsTypes.MarginsArea{
|
||||
property int marginThickness: 4
|
||||
//readonly property int iconSize: _metrics.iconSize - thicknessEdges
|
||||
//readonly property int thicknessEdges: 2*marginThickness
|
||||
}
|
||||
|
||||
property MetricsTypes.Padding padding: MetricsTypes.Padding{
|
||||
length: 0
|
||||
lengthApplet: 0
|
||||
}
|
||||
|
||||
property MetricsTypes.Totals totals: MetricsTypes.Totals{
|
||||
//readonly property int length;
|
||||
//readonly property int lengthEdge;
|
||||
//readonly property int lengthEdges;
|
||||
//readonly property int lengthPaddings;
|
||||
//readonly property int thickness;
|
||||
//readonly property int thicknessEdges;
|
||||
//readonly property int length: iconSize + lengthEdges
|
||||
//readonly property int lengthEdge: margin.length + padding.length
|
||||
//readonly property int lengthEdges: 2 * lengthEdge
|
||||
//readonly property int lengthPaddings: 2 * padding.length
|
||||
//readonly property int marginsAreaThicknessEdges: 2 * margin.marginsAreaThickness
|
||||
//readonly property int thickness: iconSize + thicknessEdges
|
||||
//readonly property int thicknessEdges: 2 * margin.thickness
|
||||
}
|
||||
|
||||
property MetricsTypes.Mask mask: MetricsTypes.Mask{
|
||||
|
@ -0,0 +1,26 @@
|
||||
/*
|
||||
* Copyright 2021 Michail Vourlakos <mvourlakos@gmail.com>
|
||||
*
|
||||
* This file is part of Latte-Dock
|
||||
*
|
||||
* Latte-Dock is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* Latte-Dock is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import QtQuick 2.0
|
||||
|
||||
Item {
|
||||
property int marginThickness: 4
|
||||
readonly property int iconSize: _metrics.iconSize - thicknessEdges
|
||||
readonly property int thicknessEdges: 2*marginThickness
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user