mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-02 22:54:59 -04:00
Replace database icons with SVG's
Original source of icons is the icon8 library (http://icons8.com/c/flat-color-icons) and Paomedia (https://github.com/paomedia/small-n-flat). All icons used are licensed MIT or CC0; annotated in COPYING. * Closes #4071 * Increase default size of database icons to 24px and entry preview panel to 48px * Add shell script to assemble the database icons * Use QIcon to seamlessly support High DPI displays and pixmap caching * Add badge support for KeeShare groups and expired entries. * Guard against use of QPixmap::fromImage without a GUI * Add SVG minify and improve `make icons` Co-authored-by: Wolfram Rösler <wolfram@roesler-ac.de>
This commit is contained in:
parent
229a756d84
commit
90d5372813
182 changed files with 640 additions and 680 deletions
|
@ -110,9 +110,9 @@ void TestKeePass2Format::testXmlMetadata()
|
|||
|
||||
void TestKeePass2Format::testXmlCustomIcons()
|
||||
{
|
||||
QCOMPARE(m_xmlDb->metadata()->customIcons().size(), 1);
|
||||
QCOMPARE(m_xmlDb->metadata()->customIconsOrder().size(), 1);
|
||||
QUuid uuid = QUuid::fromRfc4122(QByteArray::fromBase64("++vyI+daLk6omox4a6kQGA=="));
|
||||
QVERIFY(m_xmlDb->metadata()->customIcons().contains(uuid));
|
||||
QVERIFY(m_xmlDb->metadata()->hasCustomIcon(uuid));
|
||||
QImage icon = m_xmlDb->metadata()->customIcon(uuid);
|
||||
QCOMPARE(icon.width(), 16);
|
||||
QCOMPARE(icon.height(), 16);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue