This commit is contained in:
Dmugetsu 2025-03-25 23:02:52 -06:00
parent f31973030e
commit 68b21b9c38

View File

@ -172,22 +172,23 @@ void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
case Theme::Oled:
mw_searchbar->setStyleSheet("QLineEdit:focus {"
"border: 1px solid #2A82DA; }");
themePalette.setColor(QPalette::Window, QColor(0, 0, 0, 0));
themePalette.setColor(QPalette::Window, Qt::black);
themePalette.setColor(QPalette::WindowText, Qt::white);
themePalette.setColor(QPalette::Base, QColor(0, 0, 0, 0));
themePalette.setColor(QPalette::AlternateBase, QColor(0, 0, 0, 0));
themePalette.setColor(QPalette::ToolTipBase, QColor(0, 0, 0, 0));
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(0, 0, 0, 0));
themePalette.setColor(QPalette::Button, Qt::black);
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, QColor(0, 0, 0, 0));
themePalette.setColor(QPalette::HighlightedText, Qt::black);
qApp->setPalette(themePalette);
qApp->setStyleSheet("QLineEdit {"
"background-color: QColor(0, 0, 0, 0); color: QColor(0, 0, 0, 0); border: 1px solid #a0a0a0; "
"background-color: QColor(0, 0, 0, 0); color: QColor(0, 0, 0, 0); "
"border: 1px solid #a0a0a0; "
"border-radius: 4px; padding: 5px; }"
"QCheckBox::indicator:unchecked {"