mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
[Qt] Add pink theme
This commit is contained in:
parent
b0261234a6
commit
7571e58ce5
2 changed files with 25 additions and 0 deletions
|
@ -23,6 +23,7 @@ class MainWindow : public QMainWindow {
|
||||||
System = 0,
|
System = 0,
|
||||||
Light = 1,
|
Light = 1,
|
||||||
Dark = 2,
|
Dark = 2,
|
||||||
|
GreetingsCat = 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Types of messages we might send from the GUI thread to the emulator thread
|
// Types of messages we might send from the GUI thread to the emulator thread
|
||||||
|
|
|
@ -43,6 +43,7 @@ MainWindow::MainWindow(QApplication* app, QWidget* parent) : QMainWindow(parent)
|
||||||
themeSelect->addItem(tr("System"));
|
themeSelect->addItem(tr("System"));
|
||||||
themeSelect->addItem(tr("Light"));
|
themeSelect->addItem(tr("Light"));
|
||||||
themeSelect->addItem(tr("Dark"));
|
themeSelect->addItem(tr("Dark"));
|
||||||
|
themeSelect->addItem(tr("Greetings Cat"));
|
||||||
themeSelect->setCurrentIndex(static_cast<int>(currentTheme));
|
themeSelect->setCurrentIndex(static_cast<int>(currentTheme));
|
||||||
|
|
||||||
themeSelect->setGeometry(40, 40, 100, 50);
|
themeSelect->setGeometry(40, 40, 100, 50);
|
||||||
|
@ -192,6 +193,29 @@ void MainWindow::setTheme(Theme theme) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case Theme::GreetingsCat: {
|
||||||
|
QApplication::setStyle(QStyleFactory::create("Fusion"));
|
||||||
|
|
||||||
|
QPalette p;
|
||||||
|
p.setColor(QPalette::Window, QColor(250, 207, 228));
|
||||||
|
p.setColor(QPalette::WindowText, QColor(225, 22, 137));
|
||||||
|
p.setColor(QPalette::Base, QColor(250, 207, 228));
|
||||||
|
p.setColor(QPalette::AlternateBase, QColor(250, 207, 228));
|
||||||
|
p.setColor(QPalette::ToolTipBase, QColor(225, 22, 137));
|
||||||
|
p.setColor(QPalette::ToolTipText, QColor(225, 22, 137));
|
||||||
|
p.setColor(QPalette::Text, QColor(225, 22, 137));
|
||||||
|
p.setColor(QPalette::Button, QColor(250, 207, 228));
|
||||||
|
p.setColor(QPalette::ButtonText, QColor(225, 22, 137));
|
||||||
|
p.setColor(QPalette::BrightText, Qt::black);
|
||||||
|
p.setColor(QPalette::Link, QColor(42, 130, 218));
|
||||||
|
|
||||||
|
p.setColor(QPalette::Highlight, QColor(42, 130, 218));
|
||||||
|
p.setColor(QPalette::HighlightedText, Qt::black);
|
||||||
|
qApp->setPalette(p);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
case Theme::System: {
|
case Theme::System: {
|
||||||
qApp->setPalette(this->style()->standardPalette());
|
qApp->setPalette(this->style()->standardPalette());
|
||||||
qApp->setStyle(QStyleFactory::create("WindowsVista"));
|
qApp->setStyle(QStyleFactory::create("WindowsVista"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue