2024-07-30 11:42:36 +00:00
|
|
|
// SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
|
|
|
|
// SPDX-License-Identifier: GPL-3.0+
|
2023-01-15 07:00:52 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common/Pcsx2Defs.h"
|
|
|
|
#include <QtWidgets/QPushButton>
|
|
|
|
|
|
|
|
class ColorPickerButton : public QPushButton
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
ColorPickerButton(QWidget* parent);
|
|
|
|
|
|
|
|
Q_SIGNALS:
|
|
|
|
void colorChanged(quint32 new_color);
|
|
|
|
|
|
|
|
public Q_SLOTS:
|
|
|
|
quint32 color();
|
|
|
|
void setColor(quint32 rgb);
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void onClicked();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void updateBackgroundColor();
|
|
|
|
|
|
|
|
u32 m_color = 0;
|
|
|
|
};
|