1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 09:33:51 +03:00

move BasicItem into Abilities.Items

--this way it can be used by ANY plasma applet
This commit is contained in:
Michail Vourlakos 2021-01-31 11:27:57 +02:00
parent 9d0922a203
commit 1d9fe41dd0
9 changed files with 6 additions and 5 deletions

View File

@ -265,7 +265,7 @@ Item{
}
//! Indicator Back Layer
IndicatorLevel{
BasicItemParts.IndicatorLevel{
id: indicatorBackLayer
level.isBackground: true
level.indicator: abilityIndicatorObj
@ -282,10 +282,10 @@ Item{
}
}
ParabolicItem{id: _parabolicItem}
BasicItemParts.ParabolicItem{id: _parabolicItem}
//! Indicator Front Layer
IndicatorLevel{
BasicItemParts.IndicatorLevel{
id: indicatorFrontLayer
level.isForeground: true
level.indicator: abilityIndicatorObj
@ -301,7 +301,7 @@ Item{
width: plasmoid.formFactor === PlasmaCore.Types.Horizontal ? abilityItem.width : abilityItem.abilities.metrics.mask.thickness.zoomedForItems
height: plasmoid.formFactor === PlasmaCore.Types.Horizontal ? abilityItem.abilities.metrics.mask.thickness.zoomedForItems : abilityItem.height
z:10000
sourceComponent: ParabolicEventsArea{}
sourceComponent: BasicItemParts.ParabolicEventsArea{}
readonly property bool isParabolicEnabled: abilityItem.abilities.parabolic.isEnabled
readonly property bool isThinTooltipEnabled: abilityItem.abilities.thinTooltip.isEnabled && abilityItem.thinTooltipText !== ""

View File

@ -1,4 +1,5 @@
module org.kde.latte.abilities.items
BasicItem 0.1 BasicItem.qml
IndicatorLevel 0.1 IndicatorLevel.qml
IndicatorObject 0.1 IndicatorObject.qml

View File

@ -35,7 +35,7 @@ import org.kde.latte.abilities.items 0.1 as AbilityItem
import "animations" as TaskAnimations
BasicItem {
AbilityItem.BasicItem {
id: taskItem
visible: false
objectName: "TaskItem"