diff --git a/qt6/src/qml/private/ButtonPanel.qml b/qt6/src/qml/private/ButtonPanel.qml index 58446a534..8dd9dfebd 100644 --- a/qt6/src/qml/private/ButtonPanel.qml +++ b/qt6/src/qml/private/ButtonPanel.qml @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2022 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: LGPL-3.0-or-later @@ -49,30 +49,4 @@ BoxPanel { GradientStop { position: 0.0; color: control.D.ColorSelector.color1 } GradientStop { position: 0.96; color: control.D.ColorSelector.color2 } } - - CicleSpreadAnimation { - id: hoverAnimation - anchors.fill: parent - visible: enableAnimation - - Rectangle { - anchors.fill: parent - radius: control.radius - // gradient: control.D.ColorSelector.color1 === control.D.ColorSelector.color2 ? null : hoverBackgroundGradient - color: control.D.ColorSelector.color1 - } - function triggle() { - if (button.hovered) { - var pos = D.DTK.cursorPosition() - hoverAnimation.centerPoint = hoverAnimation.mapFromGlobal(pos.x, pos.y) - hoverAnimation.start() - } else { - hoverAnimation.stop() - } - } - - Component.onCompleted: { - button.hoveredChanged.connect(hoverAnimation.triggle) - } - } }