mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 12:59:14 +12:00
[Qt] Add separate configuration window for theme
This commit is contained in:
parent
95c1923c37
commit
101cc4d0ac
5 changed files with 136 additions and 107 deletions
29
include/panda_qt/config_window.hpp
Normal file
29
include/panda_qt/config_window.hpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
#pragma once
|
||||
|
||||
#include <QApplication>
|
||||
#include <QComboBox>
|
||||
#include <QDialog>
|
||||
#include <QPalette>
|
||||
#include <QWidget>
|
||||
#include <QtWidgets>
|
||||
|
||||
class ConfigWindow : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
enum class Theme : int {
|
||||
System = 0,
|
||||
Light = 1,
|
||||
Dark = 2,
|
||||
GreetingsCat = 3,
|
||||
};
|
||||
|
||||
Theme currentTheme;
|
||||
QComboBox* themeSelect = nullptr;
|
||||
|
||||
void setTheme(Theme theme);
|
||||
|
||||
public:
|
||||
ConfigWindow(QWidget* parent = nullptr);
|
||||
~ConfigWindow();
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue