Added maskable icons for Android/iOS PWAs

This commit is contained in:
Septicity committed 2026-03-22 00:23:15 -05:00
1 parent 5f8a2c83e9
commit 41c5ef9868
47 files changed
+277 -64

No files matched your search

+44 -13
View File
@@ -18,7 +18,7 @@
<meta property="og:title" content="Sable" />
<meta property="og:url" content="https://app.sable.moe" />
<meta property="og:image" content="./public/favicon.png" />
<meta property="og:image" content="/public/favicon.png" />
<meta
property="og:description"
content="A Matrix client where you can enjoy the conversation using (not) simple, elegant and secure interface protected by e2ee with the power of open source. And colorful cosmetics. Because yes."
@@ -26,7 +26,7 @@
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff" />
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#1b1a21" />
<link id="favicon" rel="shortcut icon" href="./public/favicon.png" />
<link id="favicon" rel="shortcut icon" href="/public/favicon.png" />
<link rel="manifest" href="/manifest.json" />
<meta name="mobile-web-app-capable" content="yes" />
@@ -35,55 +35,86 @@
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="apple-touch-icon" href="/public/res/svg/cinny-logo-maskable.svg" />
<link
rel="apple-touch-icon"
sizes="36x36"
href="/public/res/logo-maskable/cinny-logo-maskable-36x36.png"
/>
<link
rel="apple-touch-icon"
sizes="48x48"
href="/public/res/logo-maskable/cinny-logo-maskable-48x48.png"
/>
<link
rel="apple-touch-icon"
sizes="57x57"
href="./public/res/apple/apple-touch-icon-57x57.png"
href="/public/res/logo-maskable/cinny-logo-maskable-57x57.png"
/>
<link
rel="apple-touch-icon"
sizes="60x60"
href="./public/res/apple/apple-touch-icon-60x60.png"
href="/public/res/logo-maskable/cinny-logo-maskable-60x60.png"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="./public/res/apple/apple-touch-icon-72x72.png"
href="/public/res/logo-maskable/cinny-logo-maskable-72x72.png"
/>
<link
rel="apple-touch-icon"
sizes="76x76"
href="./public/res/apple/apple-touch-icon-76x76.png"
sizes="96x96"
href="/public/res/logo-maskable/cinny-logo-maskable-96x96.png"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="./public/res/apple/apple-touch-icon-114x114.png"
href="/public/res/logo-maskable/cinny-logo-maskable-114x114.png"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="./public/res/apple/apple-touch-icon-120x120.png"
href="/public/res/logo-maskable/cinny-logo-maskable-120x120.png"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="./public/res/apple/apple-touch-icon-144x144.png"
href="/public/res/logo-maskable/cinny-logo-maskable-144x144.png"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="./public/res/apple/apple-touch-icon-152x152.png"
href="/public/res/logo-maskable/cinny-logo-maskable-152x152.png"
/>
<link
rel="apple-touch-icon"
sizes="167x167"
href="./public/res/apple/apple-touch-icon-167x167.png"
href="/public/res/logo-maskable/cinny-logo-maskable-167x167.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="./public/res/apple/apple-touch-icon-180x180.png"
href="/public/res/logo-maskable/cinny-logo-maskable-180x180.png"
/>
<link
rel="apple-touch-icon"
sizes="192x192"
href="/public/res/logo-maskable/cinny-logo-maskable-192x192.png"
/>
<link
rel="apple-touch-icon"
sizes="256x256"
href="/public/res/logo-maskable/cinny-logo-maskable-256x256.png"
/>
<link
rel="apple-touch-icon"
sizes="384x384"
href="/public/res/logo-maskable/cinny-logo-maskable-384x384.png"
/>
<link
rel="apple-touch-icon"
sizes="512x512"
href="/public/res/logo-maskable/cinny-logo-maskable-512x512.png"
/>
</head>
+157 -40
View File
@@ -11,49 +11,166 @@
"theme_color": "#1b1a21",
"icons": [
{
"src": "./public/android/android-chrome-36x36.png",
"sizes": "36x36",
"type": "image/png"
"src": "./public/res/svg/cinny-logo-maskable.svg",
"sizes": "any",
"type": "image/svg+xml",
"purpose": "maskable"
},
{
"src": "./public/android/android-chrome-48x48.png",
"sizes": "48x48",
"type": "image/png"
},
{
"src": "./public/android/android-chrome-72x72.png",
"sizes": "72x72",
"type": "image/png"
},
{
"src": "./public/android/android-chrome-96x96.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "./public/android/android-chrome-144x144.png",
"sizes": "144x144",
"type": "image/png"
},
{
"src": "./public/android/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "./public/android/android-chrome-256x256.png",
"sizes": "256x256",
"type": "image/png"
},
{
"src": "./public/android/android-chrome-384x384.png",
"sizes": "384x384",
"type": "image/png"
},
{
"src": "./public/android/android-chrome-512x512.png",
"src": "./public/res/logo-maskable/cinny-logo-maskable-512x512.png",
"sizes": "512x512",
"type": "image/png"
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-384x384.png",
"sizes": "384x384",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-256x256.png",
"sizes": "256x256",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-180x180.png",
"sizes": "180x180",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-167x167.png",
"sizes": "167x167",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-152x152.png",
"sizes": "152x152",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-144x144.png",
"sizes": "144x144",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-120x120.png",
"sizes": "120x120",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-114x114.png",
"sizes": "114x114",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-96x96.png",
"sizes": "96x96",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-76x76.png",
"sizes": "76x76",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-72x72.png",
"sizes": "72x72",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-60x60.png",
"sizes": "60x60",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-57x57.png",
"sizes": "57x57",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-48x48.png",
"sizes": "48x48",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/logo-maskable/cinny-logo-maskable-36x36.png",
"sizes": "36x36",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "./public/res/svg/cinny-logo.svg",
"sizes": "any",
"type": "image/svg+xml",
"purpose": "any"
},
{
"src": "./public/res/logo/cinny-logo-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "./public/res/logo/cinny-logo-384x384.png",
"sizes": "384x384",
"type": "image/png",
"purpose": "any"
},
{
"src": "./public/res/logo/cinny-logo-256x256.png",
"sizes": "256x256",
"type": "image/png",
"purpose": "any"
},
{
"src": "./public/res/logo/cinny-logo-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "./public/res/logo/cinny-logo-144x144.png",
"sizes": "144x144",
"type": "image/png",
"purpose": "any"
},
{
"src": "./public/res/logo/cinny-logo-96x96.png",
"sizes": "96x96",
"type": "image/png",
"purpose": "any"
},
{
"src": "./public/res/logo/cinny-logo-72x72.png",
"sizes": "72x72",
"type": "image/png",
"purpose": "any"
},
{
"src": "./public/res/logo/cinny-logo-48x48.png",
"sizes": "48x48",
"type": "image/png",
"purpose": "any"
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

+60
View File
@@ -0,0 +1,60 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="2451.377"
height="2451.377"
viewBox="0 0 2451.377 2451.377"
version="1.1"
xml:space="preserve"
style="clip-rule:evenodd;fill-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5"
id="svg2"
sodipodi:docname="apple-touch-icon.svg"
inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="0.47932245"
inkscape:cx="1225.6885"
inkscape:cy="1380.0731"
inkscape:window-width="2560"
inkscape:window-height="1377"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" /><defs
id="defs2" />
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="background"
style="clip-rule:evenodd;fill-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;display:inline"
transform="translate(-4.9778005e-6)"><rect
style="clip-rule:evenodd;fill-rule:evenodd;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:1.5;fill:#1a1c28;stroke-width:1.00157"
id="rect1"
width="2530.6555"
height="2539.0002"
x="-58.415791"
y="-66.760902"
transform="translate(4.9778005e-6)" /></g><g
id="Layer1"
style="display:inline"
transform="translate(-91.78964,-37.013267)">
<g
transform="matrix(4.26739,0,0,4.26739,-3874.25,-3551.54)"
id="g2">
<path
d="m 1048.38,1342.19 c -121.447,14.2738 -231.68198,2.0248 -231.68198,-84.6652 0,-13.91 61.20018,-117.1054 130.63298,-169.8648 25.029,-16.21 47.575,-28.28 68.139,-42.84 38.87,-27.54 38.87,-87.474 115.01,-87.474 58.31,0 79,37.463 129.58,69.654 35.6,22.65 92.2,13.47 226.32,85.85 l 0.01,0.08 c -139.04,-51.92 -221.72,-53.49 -237.67,-50.3 -32.39,6.48 -92.02,49.61 -83.44,140.17 6.14,64.88 -39.29,124.88 -116.9,139.39 z m 105.61,-358.258 c -9.78,0 -17.72,7.939 -17.72,17.718 0,9.78 7.94,17.72 17.72,17.72 9.77,0 17.71,-7.94 17.71,-17.72 0,-9.779 -7.94,-17.718 -17.71,-17.718 z"
style="fill:#ad9eff;fill-opacity:1"
id="path1" />
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

+1 -1
View File
@@ -3,7 +3,7 @@ import { Box, Text, IconButton, Icon, Icons, Scroll, Button, config, toRem, Spin
import { Page, PageContent, PageHeader } from '$components/page';
import { SequenceCard } from '$components/sequence-card';
import { SettingTile } from '$components/setting-tile';
import CinnySVG from '$public/res/svg/cinny.svg';
import CinnySVG from '$public/res/svg/cinny-logo.svg';
import { clearCacheAndReload } from '$client/initMatrix';
import { useMatrixClient } from '$hooks/useMatrixClient';
import { SequenceCardStyle } from '$features/settings/styles.css';
@@ -33,7 +33,7 @@ import {
import { NotificationType, StateEvent } from '$types/matrix/room';
import { createLogger } from '$utils/debug';
import { createDebugLogger } from '$utils/debugLogger';
import LogoSVG from '$public/res/svg/cinny.svg';
import LogoSVG from '$public/res/svg/cinny-logo.svg';
import { nicknamesAtom } from '$state/nicknames';
import {
buildRoomMessageNotification,
+1 -1
View File
@@ -14,7 +14,7 @@ import parse from 'html-react-parser';
import { getReactCustomHtmlParser, LINKIFY_OPTS } from '$plugins/react-custom-html-parser';
import { sanitizeCustomHtml } from '$utils/sanitize';
import { roomToUnreadAtom } from '$state/room/roomToUnread';
import LogoSVG from '$public/res/svg/cinny.svg';
import LogoSVG from '$public/res/svg/cinny-logo.svg';
import LogoUnreadSVG from '$public/res/svg/cinny-unread.svg';
import LogoHighlightSVG from '$public/res/svg/cinny-highlight.svg';
import NotificationSound from '$public/sound/notification.ogg';
+1 -1
View File
@@ -1,6 +1,6 @@
import { Box, Button, Icon, Icons, Text, config, toRem } from 'folds';
import { Page, PageHero, PageHeroSection } from '$components/page';
import CinnySVG from '$public/res/svg/cinny.svg';
import CinnySVG from '$public/res/svg/cinny-logo.svg';
export function WelcomePage() {
return (
+3 -2
View File
@@ -1,5 +1,6 @@
export const DEFAULT_NOTIFICATION_ICON = '/public/res/apple/apple-touch-icon-180x180.png';
export const DEFAULT_NOTIFICATION_BADGE = '/public/res/apple/apple-touch-icon-72x72.png';
export const DEFAULT_NOTIFICATION_ICON =
'/public/res/logo-maskable/cinny-logo-maskable-180x180.png';
export const DEFAULT_NOTIFICATION_BADGE = '/public/res/logo-maskable/cinny-logo-maskable-72x72.png';
export const DEFAULT_MESSAGE_PREVIEW = 'new message';
export const ENCRYPTED_MESSAGE_PREVIEW = 'Encrypted message';
+4 -4
View File
@@ -366,8 +366,8 @@ async function handleMinimalPushPayload(
console.debug('[SW push] minimal payload: no session, showing generic notification');
await self.registration.showNotification('New Message', {
body: undefined,
icon: '/public/res/apple/apple-touch-icon-180x180.png',
badge: '/public/res/apple/apple-touch-icon-72x72.png',
icon: '/public/res/logo-maskable/cinny-logo-maskable-180x180.png',
badge: '/public/res/logo-maskable/cinny-logo-maskable-72x72.png',
tag: `room-${roomId}`,
renotify: true,
data: { room_id: roomId, event_id: eventId },
@@ -384,8 +384,8 @@ async function handleMinimalPushPayload(
if (!rawEvent) {
await self.registration.showNotification('New Message', {
body: undefined,
icon: '/public/res/apple/apple-touch-icon-180x180.png',
badge: '/public/res/apple/apple-touch-icon-72x72.png',
icon: '/public/res/logo-maskable/cinny-logo-maskable-180x180.png',
badge: '/public/res/logo-maskable/cinny-logo-maskable-72x72.png',
tag: `room-${roomId}`,
renotify: true,
data: { room_id: roomId, event_id: eventId, user_id: session.userId },
+5 -1
View File
@@ -81,7 +81,11 @@ const copyFiles = {
dest: '',
},
{
src: 'public/res/android',
src: 'public/res/logo-maskable',
dest: 'public/',
},
{
src: 'public/res/logo',
dest: 'public/',
},
{