From 9e63ca5eb7102408976b08ce263babaf33f38165 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sat, 28 Oct 2023 14:08:51 +0200 Subject: [PATCH] Remove ShimmerGradient It's unused --- src/CMakeLists.txt | 1 - src/qml/ShimmerGradient.qml | 39 ------------------------------------- 2 files changed, 40 deletions(-) delete mode 100644 src/qml/ShimmerGradient.qml diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index adecb56aa..4fea75c8e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -170,7 +170,6 @@ qt_add_qml_module(neochat URI org.kde.neochat NO_PLUGIN qml/NeochatMaximizeComponent.qml qml/FancyEffectsContainer.qml qml/TypingPane.qml - qml/ShimmerGradient.qml qml/QuickSwitcher.qml qml/HoverActions.qml qml/ChatBox.qml diff --git a/src/qml/ShimmerGradient.qml b/src/qml/ShimmerGradient.qml deleted file mode 100644 index 72a7eb4fb..000000000 --- a/src/qml/ShimmerGradient.qml +++ /dev/null @@ -1,39 +0,0 @@ -// SPDX-FileCopyrightText: 2021 Carson Black -// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL - -// Not to be confused with the Shimmer project. -// I like their gradiented GTK themes though. - -import QtQuick -import org.kde.kirigami as Kirigami - -Gradient { - id: root - - orientation: Gradient.Horizontal - - property color color: Kirigami.Theme.textColor - property color translucent: Qt.rgba(color.r, color.g, color.b, 0.2) - property color bright: Qt.rgba(color.r, color.g, color.b, 0.3) - property real pos: 0.5 - property real offset: 0.6 - - property SequentialAnimation ani: SequentialAnimation { - running: true - loops: Animation.Infinite - NumberAnimation { - from: -2.0 - to: 2.0 - duration: 700 - target: root - properties: "pos" - } - PauseAnimation { - duration: 300 - } - } - - GradientStop { position: root.pos-root.offset; color: root.translucent } - GradientStop { position: root.pos; color: root.bright } - GradientStop { position: root.pos+root.offset; color: root.translucent } -}