mirror of
https://github.com/stenzek/duckstation.git
synced 2026-07-11 01:24:11 +02:00
Qt: Restore focus frame on QLineEdit with macOS native theme (#3771)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user