mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-01-03 09:35:53 -05:00
Fix icon selection highlights
- Change QListView mode to ListMode - Increase custom icon size - Reduce grid spacing - Improve selected icon state composite
This commit is contained in:
parent
3dcac2c46c
commit
5f9b640da1
6 changed files with 34 additions and 23 deletions
|
|
@ -132,7 +132,7 @@ void EditWidgetIcons::load(const QUuid& currentUuid,
|
|||
m_currentUuid = currentUuid;
|
||||
setUrl(url);
|
||||
|
||||
m_customIconModel->setIcons(database->metadata()->customIconsScaledPixmaps(),
|
||||
m_customIconModel->setIcons(database->metadata()->customIconsScaledPixmaps({24, 24}),
|
||||
database->metadata()->customIconsOrder());
|
||||
|
||||
QUuid iconUuid = iconStruct.uuid;
|
||||
|
|
@ -294,7 +294,7 @@ bool EditWidgetIcons::addCustomIcon(const QImage& icon)
|
|||
if (uuid.isNull()) {
|
||||
uuid = QUuid::createUuid();
|
||||
m_db->metadata()->addCustomIcon(uuid, scaledicon);
|
||||
m_customIconModel->setIcons(m_db->metadata()->customIconsScaledPixmaps(),
|
||||
m_customIconModel->setIcons(m_db->metadata()->customIconsScaledPixmaps({24, 24}),
|
||||
m_db->metadata()->customIconsOrder());
|
||||
added = true;
|
||||
}
|
||||
|
|
@ -378,7 +378,7 @@ void EditWidgetIcons::removeCustomIcon()
|
|||
|
||||
// Remove the icon from the database
|
||||
m_db->metadata()->removeCustomIcon(iconUuid);
|
||||
m_customIconModel->setIcons(m_db->metadata()->customIconsScaledPixmaps(),
|
||||
m_customIconModel->setIcons(m_db->metadata()->customIconsScaledPixmaps({24, 24}),
|
||||
m_db->metadata()->customIconsOrder());
|
||||
|
||||
// Reset the current icon view
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue