mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix macOS Toolbar Button color
* Correct color setting only if dark mode is enabled
This commit is contained in:
parent
7546ba7406
commit
663467e214
@ -41,6 +41,10 @@
|
||||
#include "keys/FileKey.h"
|
||||
#include "keys/PasswordKey.h"
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
#include "macutils/MacUtils.h"
|
||||
#endif
|
||||
|
||||
#ifdef WITH_XC_UPDATECHECK
|
||||
#include "gui/MessageBox.h"
|
||||
#include "gui/UpdateCheckDialog.h"
|
||||
@ -370,6 +374,9 @@ MainWindow::MainWindow()
|
||||
|
||||
#ifdef Q_OS_MACOS
|
||||
setUnifiedTitleAndToolBarOnMac(true);
|
||||
if (macUtils()->isDarkMode()) {
|
||||
setStyleSheet("QToolButton {color:white;}");
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef WITH_XC_UPDATECHECK
|
||||
|
Loading…
Reference in New Issue
Block a user