Warning, /plasma/latte-dock/containment/package/contents/ui/background/BackgroundProperties.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 "./types" as BackgroundTypes
0009 import org.kde.plasma.plasmoid 2.0
0010 import org.kde.plasma.core 2.0 as PlasmaCore
0011 
0012 Item{
0013     property bool isShown: false
0014 
0015     property bool hasAllBorders: false
0016     property bool hasLeftBorder: false
0017     property bool hasRightBorder: false
0018     property bool hasTopBorder: false
0019     property bool hasBottomBorder: false
0020     readonly property bool hasBothLengthShadows:{
0021         if (plasmoid.formFactor === PlasmaCore.Types.Vertical) {
0022             return (hasTopBorder && hasBottomBorder);
0023         }
0024 
0025         return (hasLeftBorder && hasRightBorder);
0026     }
0027 
0028     property real offset: 0
0029     property real length: 0
0030     property int thickness: 0
0031     property int screenEdgeMargin: 0
0032     property real currentOpacity: 0
0033 
0034     readonly property BackgroundTypes.Shadows shadows: BackgroundTypes.Shadows{}
0035     readonly property BackgroundTypes.Paddings paddings: BackgroundTypes.Paddings{}
0036     readonly property BackgroundTypes.Totals totals: BackgroundTypes.Totals{}
0037 }