mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-05 01:45:05 +01:00
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.
31 lines
553 B
C++
31 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;
|
|
};
|