mirror of https://github.com/PCSX2/pcsx2.git
Qt: Add a New Light Theme and Cobalt Theme Fix (#8471)
This commit is contained in:
parent
9b1a2d9eaf
commit
42155dd11b
|
@ -672,6 +672,43 @@ void MainWindow::setStyleFromSettings()
|
|||
|
||||
qApp->setStyleSheet("QToolTip { color: #ffffff; background-color: #2a82da; border: 1px solid white; }");
|
||||
}
|
||||
else if (theme == "PizzaBrown")
|
||||
{
|
||||
// Custom palette by KamFretoZ, a Pizza Tower Reference!
|
||||
// With a mixtures of Light Brown, Peachy/Creamy White, Latte-like Color.
|
||||
// Thanks to Jordan for the idea :P
|
||||
// Alternative light theme.
|
||||
qApp->setStyle(QStyleFactory::create("Fusion"));
|
||||
|
||||
const QColor gray(192, 192, 192);
|
||||
const QColor extr(248, 192, 88);
|
||||
const QColor main(233, 187, 147);
|
||||
const QColor comp(248, 230, 213);
|
||||
|
||||
QPalette darkPalette;
|
||||
darkPalette.setColor(QPalette::Window, main);
|
||||
darkPalette.setColor(QPalette::WindowText, Qt::black);
|
||||
darkPalette.setColor(QPalette::Base, comp);
|
||||
darkPalette.setColor(QPalette::AlternateBase, extr);
|
||||
darkPalette.setColor(QPalette::ToolTipBase, comp);
|
||||
darkPalette.setColor(QPalette::ToolTipText, Qt::black);
|
||||
darkPalette.setColor(QPalette::Text, Qt::black);
|
||||
darkPalette.setColor(QPalette::Button, extr);
|
||||
darkPalette.setColor(QPalette::ButtonText, Qt::black);
|
||||
darkPalette.setColor(QPalette::Link, Qt::black);
|
||||
darkPalette.setColor(QPalette::Highlight, extr);
|
||||
darkPalette.setColor(QPalette::HighlightedText, Qt::black);
|
||||
|
||||
darkPalette.setColor(QPalette::Active, QPalette::Button, extr);
|
||||
darkPalette.setColor(QPalette::Disabled, QPalette::ButtonText, gray.darker());
|
||||
darkPalette.setColor(QPalette::Disabled, QPalette::WindowText, gray.darker());
|
||||
darkPalette.setColor(QPalette::Disabled, QPalette::Text, Qt::gray);
|
||||
darkPalette.setColor(QPalette::Disabled, QPalette::Light, gray.lighter());
|
||||
|
||||
qApp->setPalette(darkPalette);
|
||||
|
||||
qApp->setStyleSheet("QToolTip { color: #ffffff; background-color: #cc3f18; border: 1px solid white; }");
|
||||
}
|
||||
else if (theme == "PCSX2Blue")
|
||||
{
|
||||
// Custom palette by RedDevilus, White as main color and Blue as complimentary.
|
||||
|
@ -761,7 +798,7 @@ void MainWindow::setStyleFromSettings()
|
|||
darkPalette.setColor(QPalette::ToolTipBase, darkishBlue);
|
||||
darkPalette.setColor(QPalette::ToolTipText, Qt::white);
|
||||
darkPalette.setColor(QPalette::Text, Qt::white);
|
||||
darkPalette.setColor(QPalette::Button, royalBlue.darker());
|
||||
darkPalette.setColor(QPalette::Button, darkishBlue);
|
||||
darkPalette.setColor(QPalette::ButtonText, Qt::white);
|
||||
darkPalette.setColor(QPalette::Link, Qt::white);
|
||||
darkPalette.setColor(QPalette::Highlight, darkishBlue.lighter());
|
||||
|
|
|
@ -34,6 +34,8 @@ static const char* THEME_NAMES[] = {
|
|||
//: Ignore what Crowdin says in this string about "[Light]/[Dark]" being untouchable here, these are not variables in this case and must be translated.
|
||||
QT_TRANSLATE_NOOP("InterfaceSettingsWidget", "Baby Pastel (Pink) [Light]"),
|
||||
//: Ignore what Crowdin says in this string about "[Light]/[Dark]" being untouchable here, these are not variables in this case and must be translated.
|
||||
QT_TRANSLATE_NOOP("InterfaceSettingsWidget", "Pizza Time! (Brownish/Peachy White) [Light]"),
|
||||
//: Ignore what Crowdin says in this string about "[Light]/[Dark]" being untouchable here, these are not variables in this case and must be translated.
|
||||
QT_TRANSLATE_NOOP("InterfaceSettingsWidget", "PCSX2 (White/Blue) [Light]"),
|
||||
//: Ignore what Crowdin says in this string about "[Light]/[Dark]" being untouchable here, these are not variables in this case and must be translated.
|
||||
QT_TRANSLATE_NOOP("InterfaceSettingsWidget", "Scarlet Devil (Red/Purple) [Dark]"),
|
||||
|
@ -56,6 +58,7 @@ static const char* THEME_VALUES[] = {
|
|||
"darkfusionblue",
|
||||
"UntouchedLagoon",
|
||||
"BabyPastel",
|
||||
"PizzaBrown",
|
||||
"PCSX2Blue",
|
||||
"ScarletDevilRed",
|
||||
"VioletAngelPurple",
|
||||
|
|
Loading…
Reference in New Issue