From deee031196555350bedbc243f26515191ed5848e Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Sun, 12 Jul 2026 01:27:29 +0300 Subject: [PATCH] update notification icons --- lib/notifications.ts | 2 +- src/components/icons/ProviderIcon.tsx | 34 ++++++++++++++++++--- src/pages/Settings/NotificationsSection.tsx | 15 +++------ tailwind.config.js | 1 + 4 files changed, 35 insertions(+), 17 deletions(-) diff --git a/lib/notifications.ts b/lib/notifications.ts index 0932e24..c90638e 100644 --- a/lib/notifications.ts +++ b/lib/notifications.ts @@ -196,7 +196,7 @@ export const NOTIFICATION_PROVIDERS: Record< titleLabel: 'Discord Webhook', description: 'Post to a Discord channel', urlPlaceholder: 'https://discord.com/api/webhooks/1234567890/AbCdEf...', - accentClass: 'text-indigo-500', + accentClass: 'text-[#5865F2]', helpUrl: 'https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks', helpLabel: 'How to create a webhook', }, diff --git a/src/components/icons/ProviderIcon.tsx b/src/components/icons/ProviderIcon.tsx index e15891c..4715c50 100644 --- a/src/components/icons/ProviderIcon.tsx +++ b/src/components/icons/ProviderIcon.tsx @@ -20,8 +20,9 @@ export default function ProviderIcon({ return } -// Inline monochrome brand glyphs (path data from simple-icons, CC0). Bundled SVG instead of -// public/ PNGs so they follow currentColor and theme correctly in light/dark. +// Inline brand glyphs bundled as SVG (not public/ PNGs). The monochrome marks (Discord, Telegram, +// WhatsApp, Webhook) use currentColor so they take their tint from the caller's text-color class +// and theme correctly; Slack keeps its official four-color logo. function DiscordIcon({ className }: { className?: string }) { return ( @@ -31,7 +32,7 @@ function DiscordIcon({ className }: { className?: string }) { ) } -function TelegramIcon({ className }: { className?: string }) { +export function TelegramIcon({ className }: { className?: string }) { return (