mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-18 14:55:49 -04:00
Merge 9a476167f92fa28701f7bf65aa2baa81580f0afd into af2479da8dc0ff0c7104c4ccde1715b1c562dfdc
This commit is contained in:
commit
6d5746a766
@ -30,6 +30,7 @@
|
||||
#include "gui/Icons.h"
|
||||
#include "gui/MainWindow.h"
|
||||
#include "gui/osutils/OSUtils.h"
|
||||
#include "gui/styles/StateColorPalette.h"
|
||||
#include "quickunlock/QuickUnlockInterface.h"
|
||||
|
||||
#include "FileDialog.h"
|
||||
@ -155,7 +156,9 @@ ApplicationSettingsWidget::ApplicationSettingsWidget(QWidget* parent)
|
||||
m_generalUi->autoTypeShortcutWidget->setStyleSheet("");
|
||||
} else {
|
||||
QToolTip::showText(mapToGlobal(rect().bottomLeft()), error);
|
||||
m_generalUi->autoTypeShortcutWidget->setStyleSheet("background-color: #FF9696;");
|
||||
StateColorPalette statePalette;
|
||||
auto color = statePalette.color(StateColorPalette::ColorRole::Error);
|
||||
m_generalUi->autoTypeShortcutWidget->setStyleSheet(QString("QLineEdit { background: %1; }").arg(color.name()));
|
||||
}
|
||||
});
|
||||
connect(m_generalUi->autoTypeShortcutWidget, &ShortcutWidget::shortcutReset, this, [this] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user