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

pull/3773/head
Davide Pesavento 1 week ago committed by GitHub
parent 7dde4794b9
commit bc057d9f7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -19,7 +19,6 @@
#include "common/file_system.h"
#include <QtWidgets/QInputDialog>
#include <QtWidgets/QTextEdit>
#include <array>
#include "moc_controllersettingswindow.cpp"

@ -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;

Loading…
Cancel
Save