60edddac7d
This is actually very easy to do. I added a label and a push button for it, and used the Qt standard dialog QColorDialog for picking colors.
30 lines
553 B
C++
30 lines
553 B
C++
// Copyright 2016 Citra Emulator Project
|
|
// Licensed under GPLv2 or any later version
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <QWidget>
|
|
|
|
namespace Ui {
|
|
class ConfigureGraphics;
|
|
}
|
|
|
|
class ConfigureGraphics : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ConfigureGraphics(QWidget* parent = nullptr);
|
|
~ConfigureGraphics();
|
|
|
|
void applyConfiguration();
|
|
void retranslateUi();
|
|
|
|
private:
|
|
void setConfiguration();
|
|
|
|
private:
|
|
std::unique_ptr<Ui::ConfigureGraphics> ui;
|
|
QColor bg_color;
|
|
};
|