1
0
Fork 0
mirror of https://github.com/HenkKalkwater/sddm-nx synced 2024-11-16 08:25:18 +00:00
sddm-nx/components/Cursor.qml

35 lines
904 B
QML
Raw Permalink Normal View History

// SPDX-FileCopyrightText: 2020 Chris Josten
//
// SPDX-License-Identifier: BSL-1.0
2020-05-14 23:12:55 +00:00
import QtQuick 2.6
import ".."
Rectangle {
id: highlightItem
property Item target
anchors.centerIn: parent
implicitWidth: target.width + Style.highlightGap
implicitHeight: target.height + Style.highlightGap
color: "#00000000"
radius: 3
border.width: Style.highlightBorderSize - 2 * Style.highlightGap
border.color: Style.highlightColor
SequentialAnimation on border.color {
loops: Animation.Infinite
ColorAnimation {
from: Style.highlightColor
to: Style.highlightColor2
easing.type: Easing.InQuad
duration: 3000
}
ColorAnimation {
from: Style.highlightColor2
to: Style.highlightColor
easing.type: Easing.OutQuad
duration: 3000
}
}
}