New icons.

This commit is contained in:
Martin Rotter 2020-11-13 14:13:16 +01:00
parent 910bfd0ecb
commit 6a280d3654
13 changed files with 22 additions and 6 deletions

View File

@ -15,6 +15,8 @@ RSS Guard is simple, light and easy-to-use RSS/ATOM feed aggregator developed us
* [Nextcloud News](https://apps.nextcloud.com/apps/news),
* [Gmail API](https://developers.google.com/gmail/api).
Application icon was kindly contributed by Siddharth Yadav - @Siddharth_yd (Instagram), Illustrationdesignsid@gmail.com (e-mail).
Development builds can be downloaded [here for Windows](https://bintray.com/martinrotter/rssguard/Development/Windows) and [here for Linux/Mac](https://bintray.com/martinrotter/rssguard/Development/LinuxMacOs).
Documentation is [here](https://github.com/martinrotter/rssguard/blob/master/resources/docs/Documentation.md).

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
resources/graphics/rssguard.ico Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 361 KiB

After

Width:  |  Height:  |  Size: 122 KiB

BIN
resources/graphics/rssguard.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 21 KiB

BIN
resources/graphics/rssguard_plain.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 10 KiB

BIN
resources/macosx/rssguard.icns Normal file → Executable file

Binary file not shown.

View File

@ -1,3 +1,17 @@
3.8.1
—————
Added:
▪ New applications icons. Contributed by Siddharth Yadav:
▪ @Siddharth_yd (Instagram)
▪ Illustrationdesignsid@gmail.com (e-mail)
Fixed/changed:
3.8.0
—————

View File

@ -124,26 +124,26 @@ void SystemTrayIcon::setNumber(int number, bool any_new_message) {
// Numbers with more than 2 digits won't be readable, display
// infinity symbol in that case.
if (number > 999) {
m_font.setPixelSize(100);
m_font.setPixelSize(background.width() * 0.78);
tray_painter.setFont(m_font);
tray_painter.drawText(QRect(0, 0, 128, 128), Qt::AlignVCenter | Qt::AlignCenter, QChar(8734));
tray_painter.drawText(background.rect(), Qt::AlignVCenter | Qt::AlignCenter, QChar(8734));
}
else {
// Smaller number if it has 3 digits.
if (number > 99) {
m_font.setPixelSize(55);
m_font.setPixelSize(background.width() * 0.43);
}
else if (number > 9) {
m_font.setPixelSize(80);
m_font.setPixelSize(background.width() * 0.56);
}
// Bigger number if it has just one digit.
else {
m_font.setPixelSize(100);
m_font.setPixelSize(background.width() * 0.78);
}
tray_painter.setFont(m_font);
tray_painter.drawText(QRect(0, 0, 128, 128),
tray_painter.drawText(background.rect(),
Qt::AlignmentFlag::AlignVCenter | Qt::AlignmentFlag::AlignCenter,
QString::number(number));
}