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.
58 lines
1.6 KiB
QML
58 lines
1.6 KiB
QML
/*
|
|
SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com>
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
import QtQuick 2.0
|
|
|
|
import org.kde.latte.abilities.definition 0.1 as AbilityDefinition
|
|
|
|
import "./indicators" as LocalIndicator
|
|
|
|
AbilityDefinition.Indicators {
|
|
property Item bridge: null
|
|
|
|
isEnabled: ref.indicators.isEnabled
|
|
type: ref.indicators.type
|
|
info: ref.indicators.info
|
|
configuration: ref.indicators.configuration
|
|
resources: ref.indicators.resources
|
|
indicatorComponent: ref.indicators.indicatorComponent
|
|
|
|
Item {
|
|
id: ref
|
|
readonly property Item indicators: bridge ? bridge.indicators : local
|
|
}
|
|
|
|
readonly property AbilityDefinition.Indicators local: AbilityDefinition.Indicators {
|
|
isEnabled: false
|
|
type: "org.kde.latte.default"
|
|
|
|
info.needsIconColors: false
|
|
info.needsMouseEventCoordinates: false
|
|
info.providesFrontLayer: false
|
|
info.providesHoveredAnimation: false
|
|
info.providesClickedAnimation: false
|
|
info.extraMaskThickness: 0
|
|
info.lengthPadding: 0.08
|
|
info.minThicknessPadding: 0
|
|
info.minLengthPadding:0
|
|
|
|
configuration: localLatteConfiguration
|
|
resources: null
|
|
|
|
indicatorComponent: isEnabled ? latteLocalIndicator : null
|
|
|
|
//! Local Latte Indicator Configuration
|
|
LocalIndicator.LatteConfiguration{
|
|
id: localLatteConfiguration
|
|
}
|
|
|
|
//! Local Latte Indicator implementation
|
|
Component {
|
|
id: latteLocalIndicator
|
|
LocalIndicator.LatteIndicator{}
|
|
}
|
|
}
|
|
}
|