You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
latte-dock/containment/package/contents/ui/abilities/MyView.qml

56 lines
2.1 KiB
QML

/*
SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.7
import org.kde.plasma.plasmoid 2.0
import org.kde.latte.core 0.2 as LatteCore
import "./privates" as Ability
Ability.MyViewPrivate {
view: latteView
isReady: latteView
inNormalState: ((animations.needBothAxis.count === 0) && (animations.needLength.count === 0))
|| (view && view.visibility.isHidden && !view.visibility.containsMouse && animations.needThickness.count === 0)
isHidden: isReady && view.visibility.isHidden
isShownPartially: isReady && (inSlidingIn || inSlidingOut)
isShownFully: isReady && !isHidden && !inSlidingIn && !inSlidingOut
isHidingBlocked: isHidingBlockedFromApplet || (view && view.contextMenuIsShown)
inEditMode: root.editMode
inConfigureAppletsMode: root.inConfigureAppletsMode
inSlidingIn: visibilityManager.inSlidingIn
inSlidingOut: visibilityManager.inSlidingOut
inRelocationAnimation: view && view.positioner && view.positioner.inRelocationAnimation
inRelocationHiding: visibilityManager.inRelocationHiding
badgesIn3DStyle: universalSettings ? universalSettings.badges3DStyle : true
alignment: plasmoid.configuration.alignment
visibilityMode: view ? view.visibility.mode : LatteCore.Types.None
backgroundOpacity: background.currentOpacity
lastUsedActivity: view && view.layout ? view.layout.lastUsedActivity : ""
appletsLayoutGeometry: view && view.effects ? view.effects.appletsLayoutGeometry : Qt.rect(0, 0, -1, -1)
screenGeometry: view ? view.screenGeometry : plasmoid.screenGeometry
containmentActions: isReady ? view.containmentActions : []
itemShadow.isEnabled: plasmoid.configuration.appletShadowsEnabled
itemShadow.size: itemShadow.isEnabled ? (0.5*metrics.iconSize) * (plasmoid.configuration.shadowSize/100) : 0
itemShadow.shadowColor: "#" + myView.decimalToHex(myView.itemShadowOpacity) + myView.itemShadowCurrentColor
itemShadow.shadowSolidColor: "#" + myView.itemShadowCurrentColor
}