mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-24 14:48:48 -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
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue