mirror of https://github.com/PCSX2/pcsx2.git
Qt: Add Grey Matter theme
This commit is contained in:
parent
ed8e1aa6db
commit
f09e99fb05
|
@ -17,6 +17,8 @@ const char* InterfaceSettingsWidget::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.
|
//: 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", "Dark Fusion (Blue) [Dark]"),
|
QT_TRANSLATE_NOOP("InterfaceSettingsWidget", "Dark Fusion (Blue) [Dark]"),
|
||||||
//: Ignore what Crowdin says in this string about "[Light]/[Dark]" being untouchable here, these are not variables in this case and must be translated.
|
//: 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", "Grey Matter (Gray) [Dark]"),
|
||||||
|
//: 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", "Untouched Lagoon (Grayish Green/-Blue ) [Light]"),
|
QT_TRANSLATE_NOOP("InterfaceSettingsWidget", "Untouched Lagoon (Grayish Green/-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.
|
//: 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]"),
|
QT_TRANSLATE_NOOP("InterfaceSettingsWidget", "Baby Pastel (Pink) [Light]"),
|
||||||
|
@ -43,6 +45,7 @@ const char* InterfaceSettingsWidget::THEME_VALUES[] = {
|
||||||
"fusion",
|
"fusion",
|
||||||
"darkfusion",
|
"darkfusion",
|
||||||
"darkfusionblue",
|
"darkfusionblue",
|
||||||
|
"GreyMatter",
|
||||||
"UntouchedLagoon",
|
"UntouchedLagoon",
|
||||||
"BabyPastel",
|
"BabyPastel",
|
||||||
"PizzaBrown",
|
"PizzaBrown",
|
||||||
|
|
|
@ -123,6 +123,41 @@ void QtHost::SetStyleFromSettings()
|
||||||
|
|
||||||
qApp->setPalette(darkPalette);
|
qApp->setPalette(darkPalette);
|
||||||
}
|
}
|
||||||
|
else if (theme == "GreyMatter")
|
||||||
|
{
|
||||||
|
// Custom palette by KamFretoZ, A sleek and stylish gray
|
||||||
|
// that are meant to be easy on the eyes as the main color.
|
||||||
|
// Alternative dark theme.
|
||||||
|
qApp->setStyle(QStyleFactory::create("Fusion"));
|
||||||
|
|
||||||
|
const QColor darkGray(46, 52, 64);
|
||||||
|
const QColor lighterGray(59, 66, 82);
|
||||||
|
const QColor gray(111, 111, 111);
|
||||||
|
const QColor blue(198, 238, 255);
|
||||||
|
|
||||||
|
QPalette darkPalette;
|
||||||
|
darkPalette.setColor(QPalette::Window, darkGray);
|
||||||
|
darkPalette.setColor(QPalette::WindowText, Qt::white);
|
||||||
|
darkPalette.setColor(QPalette::Base, lighterGray);
|
||||||
|
darkPalette.setColor(QPalette::AlternateBase, darkGray);
|
||||||
|
darkPalette.setColor(QPalette::ToolTipBase, darkGray);
|
||||||
|
darkPalette.setColor(QPalette::ToolTipText, Qt::white);
|
||||||
|
darkPalette.setColor(QPalette::Text, Qt::white);
|
||||||
|
darkPalette.setColor(QPalette::Button, lighterGray);
|
||||||
|
darkPalette.setColor(QPalette::ButtonText, Qt::white);
|
||||||
|
darkPalette.setColor(QPalette::Link, blue);
|
||||||
|
darkPalette.setColor(QPalette::Highlight, lighterGray.lighter());
|
||||||
|
darkPalette.setColor(QPalette::HighlightedText, Qt::white);
|
||||||
|
darkPalette.setColor(QPalette::PlaceholderText, QColor(Qt::white).darker());
|
||||||
|
|
||||||
|
darkPalette.setColor(QPalette::Active, QPalette::Button, lighterGray);
|
||||||
|
darkPalette.setColor(QPalette::Disabled, QPalette::ButtonText, gray.lighter());
|
||||||
|
darkPalette.setColor(QPalette::Disabled, QPalette::WindowText, gray.lighter());
|
||||||
|
darkPalette.setColor(QPalette::Disabled, QPalette::Text, gray.lighter());
|
||||||
|
darkPalette.setColor(QPalette::Disabled, QPalette::Light, darkGray);
|
||||||
|
|
||||||
|
qApp->setPalette(darkPalette);
|
||||||
|
}
|
||||||
else if (theme == "UntouchedLagoon")
|
else if (theme == "UntouchedLagoon")
|
||||||
{
|
{
|
||||||
// Custom palette by RedDevilus, Tame (Light/Washed out) Green as main color and Grayish Blue as complimentary.
|
// Custom palette by RedDevilus, Tame (Light/Washed out) Green as main color and Grayish Blue as complimentary.
|
||||||
|
@ -294,6 +329,38 @@ void QtHost::SetStyleFromSettings()
|
||||||
|
|
||||||
qApp->setPalette(darkPalette);
|
qApp->setPalette(darkPalette);
|
||||||
}
|
}
|
||||||
|
else if (theme == "VioletAngelPurple")
|
||||||
|
{
|
||||||
|
// Custom palette by RedDevilus, Blue as main color and Purple as complimentary.
|
||||||
|
// Alternative dark theme.
|
||||||
|
qApp->setStyle(QStyleFactory::create("Fusion"));
|
||||||
|
|
||||||
|
const QColor blackishblue(50, 25, 70);
|
||||||
|
const QColor darkerPurple(90, 30, 105);
|
||||||
|
const QColor nauticalPurple(110, 30, 125);
|
||||||
|
|
||||||
|
QPalette darkPalette;
|
||||||
|
darkPalette.setColor(QPalette::Window, blackishblue);
|
||||||
|
darkPalette.setColor(QPalette::WindowText, Qt::white);
|
||||||
|
darkPalette.setColor(QPalette::Base, nauticalPurple);
|
||||||
|
darkPalette.setColor(QPalette::AlternateBase, blackishblue);
|
||||||
|
darkPalette.setColor(QPalette::ToolTipBase, nauticalPurple);
|
||||||
|
darkPalette.setColor(QPalette::ToolTipText, Qt::white);
|
||||||
|
darkPalette.setColor(QPalette::Text, Qt::white);
|
||||||
|
darkPalette.setColor(QPalette::Button, nauticalPurple.darker());
|
||||||
|
darkPalette.setColor(QPalette::ButtonText, Qt::white);
|
||||||
|
darkPalette.setColor(QPalette::Link, darkerPurple.lighter());
|
||||||
|
darkPalette.setColor(QPalette::Highlight, darkerPurple.lighter());
|
||||||
|
darkPalette.setColor(QPalette::HighlightedText, Qt::white);
|
||||||
|
|
||||||
|
darkPalette.setColor(QPalette::Active, QPalette::Button, nauticalPurple.darker());
|
||||||
|
darkPalette.setColor(QPalette::Disabled, QPalette::ButtonText, darkerPurple.lighter());
|
||||||
|
darkPalette.setColor(QPalette::Disabled, QPalette::WindowText, darkerPurple.lighter());
|
||||||
|
darkPalette.setColor(QPalette::Disabled, QPalette::Text, darkerPurple.darker());
|
||||||
|
darkPalette.setColor(QPalette::Disabled, QPalette::Light, nauticalPurple);
|
||||||
|
|
||||||
|
qApp->setPalette(darkPalette);
|
||||||
|
}
|
||||||
else if (theme == "CobaltSky")
|
else if (theme == "CobaltSky")
|
||||||
{
|
{
|
||||||
// Custom palette by KamFretoZ, A soothing deep royal blue
|
// Custom palette by KamFretoZ, A soothing deep royal blue
|
||||||
|
@ -330,38 +397,6 @@ void QtHost::SetStyleFromSettings()
|
||||||
|
|
||||||
qApp->setPalette(darkPalette);
|
qApp->setPalette(darkPalette);
|
||||||
}
|
}
|
||||||
else if (theme == "VioletAngelPurple")
|
|
||||||
{
|
|
||||||
// Custom palette by RedDevilus, Blue as main color and Purple as complimentary.
|
|
||||||
// Alternative dark theme.
|
|
||||||
qApp->setStyle(QStyleFactory::create("Fusion"));
|
|
||||||
|
|
||||||
const QColor blackishblue(50, 25, 70);
|
|
||||||
const QColor darkerPurple(90, 30, 105);
|
|
||||||
const QColor nauticalPurple(110, 30, 125);
|
|
||||||
|
|
||||||
QPalette darkPalette;
|
|
||||||
darkPalette.setColor(QPalette::Window, blackishblue);
|
|
||||||
darkPalette.setColor(QPalette::WindowText, Qt::white);
|
|
||||||
darkPalette.setColor(QPalette::Base, nauticalPurple);
|
|
||||||
darkPalette.setColor(QPalette::AlternateBase, blackishblue);
|
|
||||||
darkPalette.setColor(QPalette::ToolTipBase, nauticalPurple);
|
|
||||||
darkPalette.setColor(QPalette::ToolTipText, Qt::white);
|
|
||||||
darkPalette.setColor(QPalette::Text, Qt::white);
|
|
||||||
darkPalette.setColor(QPalette::Button, nauticalPurple.darker());
|
|
||||||
darkPalette.setColor(QPalette::ButtonText, Qt::white);
|
|
||||||
darkPalette.setColor(QPalette::Link, darkerPurple.lighter());
|
|
||||||
darkPalette.setColor(QPalette::Highlight, darkerPurple.lighter());
|
|
||||||
darkPalette.setColor(QPalette::HighlightedText, Qt::white);
|
|
||||||
|
|
||||||
darkPalette.setColor(QPalette::Active, QPalette::Button, nauticalPurple.darker());
|
|
||||||
darkPalette.setColor(QPalette::Disabled, QPalette::ButtonText, darkerPurple.lighter());
|
|
||||||
darkPalette.setColor(QPalette::Disabled, QPalette::WindowText, darkerPurple.lighter());
|
|
||||||
darkPalette.setColor(QPalette::Disabled, QPalette::Text, darkerPurple.darker());
|
|
||||||
darkPalette.setColor(QPalette::Disabled, QPalette::Light, nauticalPurple);
|
|
||||||
|
|
||||||
qApp->setPalette(darkPalette);
|
|
||||||
}
|
|
||||||
else if (theme == "Ruby")
|
else if (theme == "Ruby")
|
||||||
{
|
{
|
||||||
// Custom palette by Daisouji, Black as main color and Red as complimentary.
|
// Custom palette by Daisouji, Black as main color and Red as complimentary.
|
||||||
|
|
Loading…
Reference in New Issue