Qt: Restore focus frame on QLineEdit with macOS native theme (#3771)

This commit is contained in:
Davide Pesavento
2026-07-05 21:50:12 -04:00
committed by GitHub
parent 7dde4794b9
commit bc057d9f7c
2 changed files with 4 additions and 1 deletions
@@ -19,7 +19,6 @@
#include "common/file_system.h"
#include <QtWidgets/QInputDialog>
#include <QtWidgets/QTextEdit>
#include <array>
#include "moc_controllersettingswindow.cpp"
+4
View File
@@ -392,7 +392,11 @@ QString QtHost::GetNativeThemeStylesheet()
#ifdef __APPLE__
// Qt's native style on MacOS is... not great.
// We re-theme the tool buttons to look like Cocoa tool buttons, and fix up popup menus.
// We also need to restore the native focus frame on QLineEdit, since it is disabled by setting a stylesheet.
ret = R"(
QLineEdit {
border-style: native;
}
QMenu {
border-radius: 10px;
padding: 4px 0;