mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-02 00:33:16 +00:00
OLED Theme (#2530)
* OLED Theme * improve check box & text box visibility * clang format --------- Co-authored-by: smiRaphi <neogt404@gmail.com>
This commit is contained in:
parent
927f398658
commit
63b50ff92c
4 changed files with 46 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
|
||||
QPalette themePalette;
|
||||
|
||||
qApp->setStyleSheet("");
|
||||
switch (theme) {
|
||||
case Theme::Dark:
|
||||
mw_searchbar->setStyleSheet(
|
||||
|
@ -165,5 +166,29 @@ void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
|
|||
themePalette.setColor(QPalette::HighlightedText, Qt::black);
|
||||
qApp->setPalette(themePalette);
|
||||
break;
|
||||
case Theme::Oled:
|
||||
mw_searchbar->setStyleSheet("QLineEdit:focus {"
|
||||
"border: 1px solid #2A82DA; }");
|
||||
themePalette.setColor(QPalette::Window, Qt::black);
|
||||
themePalette.setColor(QPalette::WindowText, Qt::white);
|
||||
themePalette.setColor(QPalette::Base, Qt::black);
|
||||
themePalette.setColor(QPalette::AlternateBase, Qt::black);
|
||||
themePalette.setColor(QPalette::ToolTipBase, Qt::black);
|
||||
themePalette.setColor(QPalette::ToolTipText, Qt::white);
|
||||
themePalette.setColor(QPalette::Text, Qt::white);
|
||||
themePalette.setColor(QPalette::Button, QColor(5, 5, 5));
|
||||
themePalette.setColor(QPalette::ButtonText, Qt::white);
|
||||
themePalette.setColor(QPalette::BrightText, Qt::red);
|
||||
themePalette.setColor(QPalette::Link, QColor(42, 130, 218));
|
||||
themePalette.setColor(QPalette::Highlight, QColor(42, 130, 218));
|
||||
themePalette.setColor(QPalette::HighlightedText, Qt::black);
|
||||
qApp->setPalette(themePalette);
|
||||
qApp->setStyleSheet("QLineEdit {"
|
||||
"background-color: #000000; color: #ffffff; border: 1px solid #a0a0a0; "
|
||||
"border-radius: 4px; padding: 5px; }"
|
||||
|
||||
"QCheckBox::indicator:unchecked {"
|
||||
"border: 1px solid #808080; border-radius: 4px; }");
|
||||
break;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue