mirror of https://github.com/PCSX2/pcsx2.git
31 lines
487 B
C++
31 lines
487 B
C++
// SPDX-FileCopyrightText: 2002-2023 PCSX2 Dev Team
|
|
// SPDX-License-Identifier: LGPL-3.0+
|
|
|
|
#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;
|
|
};
|