chore: change tray icon

This commit is contained in:
AlexeyZavar
2026-04-27 03:17:15 +03:00
parent 370140143d
commit b25513a06f
7 changed files with 22 additions and 14 deletions
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 452 B

After

Width:  |  Height:  |  Size: 323 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 884 B

After

Width:  |  Height:  |  Size: 489 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 688 B

+5 -9
View File
@@ -1,10 +1,6 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1362_52)">
<path d="M6.92088 9.06526C7.86439 10.0088 8.74838 11.6009 9.41997 13.0223C9.87073 13.9764 11.3514 13.9397 11.6853 12.9387L15.1436 2.57106C15.4968 1.51225 14.4891 0.504885 13.4304 0.858384L3.07592 4.31571C2.07402 4.65025 2.03882 6.13437 2.99412 6.58505C4.4056 7.25092 5.98216 8.12654 6.92088 9.06526Z" fill="white"/>
</g>
<defs>
<clipPath id="clip0_1362_52">
<rect width="16" height="16.0037" fill="white"/>
</clipPath>
</defs>
<?xml version="1.0" encoding="UTF-8"?>
<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="plane" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<path d="M6.92034 9.06232C7.86376 10.0055 8.74766 11.597 9.41919 13.018C9.87001 13.9719 11.3505 13.9352 11.6845 12.9343L15.1422 2.571C15.4955 1.51221 14.4879 0.504773 13.4291 0.858193L3.07675 4.31396C2.07475 4.64844 2.03953 6.13275 2.99494 6.58341C4.40604 7.24901 5.98193 8.12414 6.92034 9.06232Z" id="Path-3" fill="#FFFFFF"></path>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 566 B

After

Width:  |  Height:  |  Size: 622 B

@@ -63,7 +63,7 @@ void BuildAppIcon(SectionBuilder &builder, AyuSectionBuilder &ayu) {
};
});
#ifdef Q_OS_WIN
#if defined Q_OS_WIN || defined Q_OS_MAC
builder.addDivider();
builder.addSkip();
ayu.addSettingToggle({
@@ -44,6 +44,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include <IOKit/IOKitLib.h>
#include <IOKit/hidsystem/ev_keymap.h>
// AyuGram includes
#include "ayu/ayu_settings.h"
@interface MainWindowObserver : NSObject {
}
@@ -311,7 +315,9 @@ void MainWindow::unreadCounterChangedHook() {
}
void MainWindow::updateDockCounter() {
const auto counter = Core::App().unreadBadge();
const auto counter = AyuSettings::getInstance().hideNotificationBadge()
? 0
: Core::App().unreadBadge();
const auto string = !counter
? QString()
@@ -22,6 +22,10 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#import <AppKit/NSMenu.h>
#import <AppKit/NSStatusItem.h>
// AyuGram includes
#include "ayu/ayu_settings.h"
@interface CommonDelegate : NSObject<NSMenuDelegate> {
}
@@ -200,8 +204,10 @@ void UpdateIcon(const NSStatusItem *status) {
auto resultActive = result;
resultActive.detach();
const auto counter = Core::App().unreadBadge();
const auto muted = Core::App().unreadBadgeMuted();
const auto &settings = AyuSettings::getInstance();
const auto counter = settings.hideNotificationBadge() ? 0 : Core::App().unreadBadge();
const auto muted = settings.hideNotificationBadge() ? 0 : Core::App().unreadBadgeMuted();
const auto &bg = (muted ? st::trayCounterBgMute : st::trayCounterBg);
const auto &fg = st::trayCounterFg;