mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-25 15:29:44 -05:00
DarkTheme: Fix separator color for TagView (#11511)
This commit is contained in:
parent
bf856d278d
commit
1d581ee027
@ -20,6 +20,7 @@
|
|||||||
#include "TagModel.h"
|
#include "TagModel.h"
|
||||||
#include "core/Database.h"
|
#include "core/Database.h"
|
||||||
#include "core/Metadata.h"
|
#include "core/Metadata.h"
|
||||||
|
#include "gui/Application.h"
|
||||||
#include "gui/Icons.h"
|
#include "gui/Icons.h"
|
||||||
#include "gui/MessageBox.h"
|
#include "gui/MessageBox.h"
|
||||||
|
|
||||||
@ -39,9 +40,13 @@ public:
|
|||||||
if (index.data(Qt::UserRole + 1).toBool()) {
|
if (index.data(Qt::UserRole + 1).toBool()) {
|
||||||
QRect bounds = option.rect;
|
QRect bounds = option.rect;
|
||||||
bounds.setY(bounds.bottom());
|
bounds.setY(bounds.bottom());
|
||||||
|
if (kpxcApp->isDarkTheme()) {
|
||||||
|
painter->fillRect(bounds, option.palette.mid().color().lighter(185));
|
||||||
|
} else {
|
||||||
painter->fillRect(bounds, option.palette.mid());
|
painter->fillRect(bounds, option.palette.mid());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
TagView::TagView(QWidget* parent)
|
TagView::TagView(QWidget* parent)
|
||||||
|
Loading…
Reference in New Issue
Block a user