File indexing completed on 2024-12-01 11:10:30
0001 /* 0002 SPDX-FileCopyrightText: 2021 Michail Vourlakos <mvourlakos@gmail.com> 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef SCHEMESCOMBOBOX_H 0007 #define SCHEMESCOMBOBOX_H 0008 0009 //Qt 0010 #include <QComboBox> 0011 #include <QColor> 0012 #include <QPaintEvent> 0013 0014 namespace Latte { 0015 namespace Settings { 0016 0017 class SchemesComboBox : public QComboBox 0018 { 0019 Q_OBJECT 0020 public: 0021 SchemesComboBox(QWidget *parent = nullptr); 0022 0023 QColor backgroundColor() const; 0024 void setBackgroundColor(const QColor &color); 0025 0026 QColor textColor() const; 0027 void setTextColor(const QColor &color); 0028 0029 protected: 0030 void paintEvent(QPaintEvent *event) override; 0031 0032 private: 0033 QColor m_backgroundColor; 0034 QColor m_textColor; 0035 0036 }; 0037 0038 } 0039 } 0040 0041 #endif