Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/entry/EntryURLModel.cpp')
-rw-r--r--src/gui/entry/EntryURLModel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/entry/EntryURLModel.cpp b/src/gui/entry/EntryURLModel.cpp
index 7bf673a99..522185d28 100644
--- a/src/gui/entry/EntryURLModel.cpp
+++ b/src/gui/entry/EntryURLModel.cpp
@@ -21,6 +21,7 @@
#include "core/Entry.h"
#include "core/Resources.h"
#include "core/Tools.h"
+#include "gui/styles/StateColorPalette.h"
#include <algorithm>
@@ -70,7 +71,8 @@ QVariant EntryURLModel::data(const QModelIndex& index, int role) const
const auto urlValid = Tools::checkUrlValid(value);
if (role == Qt::BackgroundRole && !urlValid) {
- return QColor(255, 125, 125);
+ StateColorPalette statePalette;
+ return statePalette.color(StateColorPalette::ColorRole::Error);
} else if (role == Qt::DecorationRole && !urlValid) {
return m_errorIcon;
} else if (role == Qt::DisplayRole || role == Qt::EditRole) {