File indexing completed on 2024-12-08 04:34:37

0001 /*
0002    SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QWidget>
0010 
0011 class SelectedMessageBackgroundAnimationLabel : public QWidget
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit SelectedMessageBackgroundAnimationLabel(QWidget *parent = nullptr);
0016     ~SelectedMessageBackgroundAnimationLabel() override;
0017     void setBackgroundColor(const QColor &col);
0018 
0019 protected:
0020     void paintEvent(QPaintEvent *event) override;
0021 
0022 private:
0023     QColor mBackgroundColor;
0024 };
0025 
0026 class SelectedMessageBackgroundAnimationWidget : public QWidget
0027 {
0028     Q_OBJECT
0029 public:
0030     explicit SelectedMessageBackgroundAnimationWidget(QWidget *parent = nullptr);
0031     ~SelectedMessageBackgroundAnimationWidget() override;
0032 
0033 private:
0034     SelectedMessageBackgroundAnimationLabel *const mLabel;
0035 };