Notification icons

This commit is contained in:
Philipp Heckel 2021-11-23 10:52:27 -05:00
parent f47970912c
commit bc89d6106b
12 changed files with 265 additions and 152 deletions

View file

@ -67,7 +67,7 @@
android:value="false"/>
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_notification_icon"/>
android:resource="@drawable/ic_notification"/>
</application>
</manifest>

View file

@ -10,6 +10,7 @@ import android.media.RingtoneManager
import android.os.Build
import android.util.Log
import androidx.core.app.NotificationCompat
import androidx.core.content.ContextCompat
import io.heckel.ntfy.R
import io.heckel.ntfy.data.Notification
import io.heckel.ntfy.data.Subscription
@ -37,9 +38,11 @@ class NotificationService(val context: Context) {
val defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION)
val notificationBuilder = NotificationCompat.Builder(context, CHANNEL_ID)
.setSmallIcon(R.drawable.ic_notification_icon)
.setSmallIcon(R.drawable.ic_notification)
.setColor(ContextCompat.getColor(context, R.color.primaryColor))
.setContentTitle(title)
.setContentText(notification.message)
.setStyle(NotificationCompat.BigTextStyle().bigText(notification.message))
.setSound(defaultSoundUri)
.setContentIntent(pendingIntent) // Click target for notification
.setAutoCancel(true) // Cancel when notification is clicked

View file

@ -10,6 +10,7 @@ import android.os.PowerManager
import android.os.SystemClock
import android.util.Log
import androidx.core.app.NotificationCompat
import androidx.core.content.ContextCompat
import io.heckel.ntfy.R
import io.heckel.ntfy.app.Application
import io.heckel.ntfy.data.ConnectionState
@ -202,6 +203,7 @@ class SubscriberService : Service() {
}
return NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID)
.setSmallIcon(R.drawable.ic_notification_instant)
.setColor(ContextCompat.getColor(this, R.color.primaryColor))
.setContentTitle(title)
.setContentText(text)
.setContentIntent(pendingIntent)

View file

@ -1,35 +0,0 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<group android:scaleX="0.4392209"
android:scaleY="0.4392209"
android:translateX="0.96"
android:translateY="0.96">
<path
android:pathData="M0.8488,6.2383L0.8488,8.1719 0.8488,45.1504L49.5538,45.1504L49.5538,6.2383ZM4.714,10.1036L45.6886,10.1036L45.6886,41.2852L4.714,41.2852Z"
android:fillColor="#ffffff"/>
<path
android:pathData="m10.2651,30.0405l0,-3.4747l8.2553,-3.864q0.3985,-0.1798 0.7686,-0.2696 0.3985,-0.1197 0.7117,-0.1798 0.3416,-0.0299 0.6832,-0.0599l0,-0.2397q-0.3416,-0.0299 -0.6832,-0.1197 -0.3131,-0.0599 -0.7117,-0.1499 -0.3701,-0.1197 -0.7686,-0.2995l-8.2553,-3.864l0,-3.5046l12.753,6.1405l0,3.7442z"
android:strokeWidth="0.263"
android:fillColor="#ffffff"
android:strokeColor="#00000000"/>
<path
android:pathData="m9.9354,13.4714l0,4.2725l8.4501,3.957 0.005,0.0053c0.2753,0.1242 0.542,0.2264 0.8013,0.3103l0.0148,0.0053l0.0148,0c0.0565,0.0132 0.0984,0.0185 0.1524,0.031 -0.0623,0.0185 -0.1116,0.027 -0.177,0.0466 -0.2626,0.0651 -0.5313,0.1605 -0.8062,0.2845l-0.005,0l-8.4501,3.957l0,4.2415l0.467,-0.2275 12.9479,-6.2329l0,-4.1898zM10.5941,14.5525 L22.6867,20.3768l0,3.3001l-12.0926,5.8243l0,-2.7104l8.0568,-3.7708c0.2499,-0.1128 0.4879,-0.1936 0.7128,-0.2481l0.0098,0l0.005,-0.0053c0.2521,-0.0757 0.4764,-0.1282 0.6685,-0.1655 0.0043,-0.0008 0.0106,-0.0053 0.0148,-0.0053l0.9536,-0.0826l0,-0.8793l-0.3048,-0.0265c-0.2096,-0.0185 -0.4183,-0.0583 -0.6292,-0.1139l-0.0098,0l-0.0098,-0.0053c-0.1958,-0.0373 -0.4237,-0.0834 -0.6735,-0.1396 -0.2327,-0.0752 -0.478,-0.1698 -0.7324,-0.2845l-0.005,0l-8.0568,-3.7708z"
android:strokeWidth="0.26299965"
android:fillColor="#ffffff"
android:strokeColor="#00000000"/>
<path
android:pathData="m26.8784,32.6464l13.6639,0l0,3.3848L26.8784,36.0312Z"
android:strokeWidth="0.263"
android:fillColor="#ffffff"
android:strokeColor="#00000000"/>
<path
android:pathData="m26.5455,32.2995l0,0.3466 0,3.7346l14.3292,0l0,-4.0811zM27.2091,32.9926l13.002,0l0,2.6897l-13.002,0z"
android:strokeWidth="0.26299965"
android:fillColor="#ffffff"
android:strokeColor="#00000000"/>
</group>
</vector>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 732 B

View file

@ -0,0 +1,31 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="50dp"
android:height="50dp"
android:viewportWidth="50"
android:viewportHeight="50">
<path
android:pathData="m7.8399,6.35c-3.58,0 -6.6469,2.817 -6.6469,6.3983v0.003l0.0351,27.8668 -0.8991,6.6347 12.2261,-3.248L42.9487,44.0049c3.58,0 6.6469,-2.8208 6.6469,-6.4022v-24.8545c0,-3.5803 -3.0652,-6.3967 -6.6438,-6.3983h-0.0031zM7.8399,10.8662h35.1088,0.0031c1.2579,0.0013 2.1277,0.9164 2.1277,1.8821v24.8544c0,0.9666 -0.8714,1.8821 -2.1307,1.8821L11.8924,39.4849l-6.2114,1.8768 0.0633,-0.366 -0.0343,-28.2473c0,-0.9665 0.8706,-1.8821 2.13,-1.8821z"
android:strokeWidth="0.754022"
android:fillColor="#338574"
android:strokeColor="#00000000"/>
<path
android:pathData="m11.5278,32.0849l0,-3.346l7.0363,-3.721q0.3397,-0.1732 0.6551,-0.2596 0.3397,-0.1153 0.6066,-0.1732 0.2912,-0.0288 0.5823,-0.0576l0,-0.2308q-0.2912,-0.0288 -0.5823,-0.1153 -0.2669,-0.0576 -0.6066,-0.1443 -0.3154,-0.1153 -0.6551,-0.2884l-7.0363,-3.721l0,-3.3749l10.8699,5.9132l0,3.6056z"
android:strokeWidth="0.525121"
android:fillColor="#338574"
android:strokeColor="#00000000"/>
<path
android:pathData="m10.9661,15.6112l0,4.8516l7.3742,3.9002c0.0157,0.0077 0.0305,0.0128 0.0461,0.0204 -0.0157,0.0077 -0.0305,0.0128 -0.0461,0.0204l-7.3742,3.9002l0,4.8267l0.7961,-0.4333 11.1995,-6.0969l0,-4.463zM12.0931,17.6933 L21.8346,22.9981l0,2.7446l-9.7414,5.2999l0,-1.8679l6.6912,-3.5416 0.0084,-0.0051c0.1961,-0.0992 0.3826,-0.1724 0.5531,-0.2191l0.0127,0l0.0167,-0.0051c0.2034,-0.0691 0.3777,-0.1209 0.5279,-0.1545l1.0684,-0.1046l0,-1.4644l-0.5154,-0.0497c-0.1632,-0.0153 -0.3288,-0.0505 -0.4944,-0.0997l-0.0167,-0.0051 -0.0167,-0.0051c-0.1632,-0.0352 -0.3552,-0.0811 -0.5656,-0.1344 -0.1802,-0.0668 -0.3706,-0.1479 -0.5698,-0.2492l-0.0084,-0.0051 -6.6912,-3.5416z"
android:strokeWidth="0.525121"
android:fillColor="#338574"
android:strokeColor="#00000000"/>
<path
android:pathData="m26.7503,30.9206l11.6118,0l0,3.1388L26.7503,34.0594Z"
android:strokeWidth="0.525121"
android:fillColor="#338574"
android:strokeColor="#00000000"/>
<path
android:pathData="m26.1875,30.2775l0,0.6427 0,3.7845l12.7371,0l0,-4.4272zM27.3113,31.563l10.4896,0l0,1.8515l-10.4896,0z"
android:strokeWidth="0.525121"
android:fillColor="#338574"
android:strokeColor="#00000000"/>
</vector>

View file

@ -1,25 +1,26 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="50.270832dp"
android:height="50.270832dp"
android:viewportWidth="50.270832"
android:viewportHeight="50.270832">
android:width="50dp"
android:height="50dp"
android:viewportWidth="50"
android:viewportHeight="50">
<path
android:pathData="m10.2906,32.0419l0,-3.4747l8.2553,-3.864q0.3985,-0.1798 0.7686,-0.2696 0.3985,-0.1197 0.7117,-0.1798 0.3416,-0.0299 0.6832,-0.0599l0,-0.2397q-0.3416,-0.0299 -0.6832,-0.1197 -0.3131,-0.0599 -0.7117,-0.1499 -0.3701,-0.1197 -0.7686,-0.2995l-8.2553,-3.864l0,-3.5046l12.753,6.1405l0,3.7442z"
android:strokeWidth="0.38733381"
android:fillColor="#ffffff"
android:pathData="M7.8398,6.35C4.2598,6.35 1.1932,9.1672 1.1932,12.7486L1.1932,12.7512L1.2283,40.6182L0.3292,47.2529L12.5553,44.0051L35.9384,44.0051L36.5848,39.4849L11.8923,39.4849L5.6808,41.3618L5.7444,40.9954L5.7097,12.7486C5.7097,11.7821 6.5805,10.866 7.8398,10.866L42.9488,10.866L42.9519,10.866C44.2097,10.8673 45.0794,11.7828 45.0794,12.7486L45.0794,25.7395L49.5954,25.7395L49.5954,12.7481C49.5954,9.1677 46.5305,6.3517 42.9519,6.35L42.9488,6.35L7.8398,6.35zM49.5954,31.4735C45.6685,38.326 43.7215,41.7259 42.4176,44.0051L42.9488,44.0051C46.5288,44.0051 49.5954,41.1842 49.5954,37.6029L49.5954,31.4735z"
android:strokeWidth="2.84985"
android:fillColor="#338574"
android:strokeColor="#00000000"/>
<path
android:pathData="m9.9609,15.4729l0,4.2725l8.4501,3.957 0.005,0.0053c0.2753,0.1242 0.542,0.2264 0.8013,0.3103l0.0148,0.0053l0.0148,0c0.0565,0.0132 0.0984,0.0185 0.1524,0.031 -0.0623,0.0185 -0.1116,0.027 -0.177,0.0466 -0.2626,0.0651 -0.5313,0.1605 -0.8062,0.2845l-0.005,0l-8.4501,3.957l0,4.2415l0.467,-0.2275 12.9479,-6.2329l0,-4.1898zM10.6196,16.5539 L22.7122,22.3782l0,3.3001l-12.0926,5.8243l0,-2.7104l8.0568,-3.7708c0.2499,-0.1128 0.4879,-0.1936 0.7128,-0.2481l0.0098,0l0.005,-0.0053c0.2521,-0.0757 0.4764,-0.1282 0.6685,-0.1655 0.0043,-0.0008 0.0106,-0.0053 0.0148,-0.0053l0.9536,-0.0826l0,-0.8793l-0.3048,-0.0265c-0.2096,-0.0185 -0.4183,-0.0583 -0.6292,-0.1139l-0.0098,0l-0.0098,-0.0053c-0.1958,-0.0373 -0.4237,-0.0834 -0.6735,-0.1396 -0.2327,-0.0752 -0.478,-0.1698 -0.7324,-0.2845l-0.005,0l-8.0568,-3.7708z"
android:strokeWidth="0.38733381"
android:fillColor="#ffffff"
android:pathData="m11.5278,32.0849l0,-3.346l7.0363,-3.721q0.3397,-0.1732 0.6551,-0.2596 0.3397,-0.1153 0.6066,-0.1732 0.2912,-0.0288 0.5823,-0.0576l0,-0.2308q-0.2912,-0.0288 -0.5823,-0.1153 -0.2669,-0.0576 -0.6066,-0.1443 -0.3154,-0.1153 -0.6551,-0.2884l-7.0363,-3.721l0,-3.3749l10.8699,5.9132l0,3.6056z"
android:strokeWidth="0.525121"
android:fillColor="#338574"
android:strokeColor="#00000000"/>
<path
android:pathData="m0.8486,6.2382v1.9337,36.9786h32.4947l0.5519,-3.8654L4.714,41.2851L4.714,10.1036h40.9748v15.3918h3.6484c0.069,0 0.1432,0.003 0.2165,0.005L49.5536,6.2383ZM49.5536,34.5496c-2.3656,4.1288 -4.5102,7.8727 -6.0709,10.6009h6.0709z"
android:strokeWidth="1"
android:fillColor="#ffffff"/>
android:pathData="m10.9661,15.6112l0,4.8516l7.3742,3.9002c0.0157,0.0077 0.0305,0.0128 0.0461,0.0204 -0.0157,0.0077 -0.0305,0.0128 -0.0461,0.0204l-7.3742,3.9002l0,4.8267l0.7961,-0.4333 11.1995,-6.0969l0,-4.463zM12.0931,17.6933 L21.8346,22.9981l0,2.7446l-9.7414,5.2999l0,-1.8679l6.6912,-3.5416 0.0084,-0.0051c0.1961,-0.0992 0.3826,-0.1724 0.5531,-0.2191l0.0127,0l0.0167,-0.0051c0.2034,-0.0691 0.3777,-0.1209 0.5279,-0.1545l1.0684,-0.1046l0,-1.4644l-0.5154,-0.0497c-0.1632,-0.0153 -0.3288,-0.0505 -0.4944,-0.0997l-0.0167,-0.0051 -0.0167,-0.0051c-0.1632,-0.0352 -0.3552,-0.0811 -0.5656,-0.1344 -0.1802,-0.0668 -0.3706,-0.1479 -0.5698,-0.2492l-0.0084,-0.0051 -6.6912,-3.5416z"
android:strokeWidth="0.525121"
android:fillColor="#338574"
android:strokeColor="#00000000"/>
<path
android:pathData="m40.7092,16.7466c-4.1394,7.2567 -7.8235,13.7146 -10.2159,17.9374h8.5829l-1.8531,12.962c1.2024,-2.1043 3.8969,-6.8095 10.2878,-17.9601h-8.6543z"
android:pathData="m41.6796,15.3498c-4.1394,7.2567 -7.8235,13.7146 -10.2159,17.9374h8.5829l-1.8531,12.962c1.2024,-2.1043 3.8969,-6.8095 10.2878,-17.9601h-8.6543z"
android:strokeWidth="1"
android:fillColor="#ffffff"
android:fillColor="#338574"
android:strokeColor="#00000000"/>
</vector>

View file

@ -2,16 +2,16 @@
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="50.270832mm"
height="50.270832mm"
viewBox="0 0 50.270832 50.270832"
width="50mm"
height="50mm"
viewBox="0 0 50 49.999999"
version="1.1"
id="svg8"
inkscape:version="1.1.1 (3bf5ae0, 2021-09-20)"
sodipodi:docname="notification.svg"
inkscape:export-filename="/home/pheckel/Code/ntfy-android/assets/notification.png"
inkscape:export-xdpi="258.69"
inkscape:export-ydpi="258.69"
inkscape:export-filename="/home/pheckel/Code/ntfy-android/assets/launcher_full_bg.png"
inkscape:export-xdpi="260.10001"
inkscape:export-ydpi="260.10001"
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"
@ -20,17 +20,54 @@
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs2" />
id="defs2">
<filter
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter3958"
x="-0.076083146"
y="-0.091641665"
width="1.1759423"
height="1.2114791">
<feFlood
flood-opacity="0.192157"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood3948" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite3950" />
<feGaussianBlur
in="composite1"
stdDeviation="4"
result="blur"
id="feGaussianBlur3952" />
<feOffset
dx="3"
dy="2.95367"
result="offset"
id="feOffset3954" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite3956" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#000000"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="3.6008717"
inkscape:cx="67.067093"
inkscape:cy="75.814975"
inkscape:zoom="2.6887315"
inkscape:cx="24.36093"
inkscape:cy="151.00057"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
@ -46,9 +83,42 @@
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
showguides="true"
showguides="false"
inkscape:guide-bbox="true"
inkscape:pagecheckerboard="0" />
inkscape:pagecheckerboard="0">
<sodipodi:guide
position="9.8690703,86.715698"
orientation="1,0"
id="guide1770" />
<sodipodi:guide
position="39.661132,81.074874"
orientation="1,0"
id="guide1772" />
<sodipodi:guide
position="9.8690703,58.786381"
orientation="0,-1"
id="guide1774" />
<sodipodi:guide
position="-2.6121775,28.943566"
orientation="0,-1"
id="guide1776" />
<sodipodi:guide
position="14.686182,55.195651"
orientation="1,0"
id="guide4020" />
<sodipodi:guide
position="34.626283,58.786381"
orientation="1,0"
id="guide4022" />
<sodipodi:guide
position="12.398156,51.002016"
orientation="0,-1"
id="guide4024" />
<sodipodi:guide
position="11.073267,36.978591"
orientation="0,-1"
id="guide4026" />
</sodipodi:namedview>
<metadata
id="metadata5">
<rdf:RDF>
@ -64,53 +134,37 @@
inkscape:label="foreground"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-51.147327,-81.515579)"
transform="translate(-51.451771,-87.327048)"
style="display:inline">
<path
style="color:#000000;fill:#ffffff;-inkscape-stroke:none"
d="M 51.996094,87.753906 V 89.6875 126.66602 H 100.70117 V 87.753906 Z m 3.865234,3.865235 H 96.835937 V 122.80078 H 55.861328 Z"
id="rect849" />
id="path2498"
style="color:#000000;fill:#338574;fill-opacity:1;stroke:none;stroke-width:0.754022;-inkscape-stroke:none"
d="m 59.291677,93.677052 c -3.579993,0 -6.646873,2.817003 -6.646873,6.398338 v 0.003 l 0.03508,27.86677 -0.899113,6.63475 12.226096,-3.24797 H 94.40052 c 3.579985,0 6.64687,-2.82079 6.64687,-6.40216 v -24.85449 c 0,-3.580312 -3.065184,-6.39668 -6.643822,-6.398338 h -0.0031 z m 0,4.516205 h 35.108844 0.0031 c 1.257851,0.0013 2.12767,0.916373 2.12767,1.882133 v 24.85442 c 0,0.9666 -0.871353,1.88213 -2.13072,1.88213 H 63.344139 l -6.211425,1.87679 0.0633,-0.36604 -0.03431,-28.2473 c 0,-0.966516 0.870609,-1.882133 2.129956,-1.882133 z" />
<g
aria-label="&gt;_"
style="font-size:8.48274px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#000000;stroke:#ffffff;stroke-width:0.26299965"
id="text320"
transform="matrix(2.5168336,0,0,2.6483458,-96.067005,-197.69139)">
<g
id="path1011">
<path
style="color:#000000;-inkscape-font-specification:'JetBrains Mono, Bold';fill:#ffffff;stroke:none;stroke-width:0.263;-inkscape-stroke:none"
d="m 62.57046,116.77004 v -1.31201 l 3.280018,-1.45904 q 0.158346,-0.0679 0.305381,-0.1018 0.158346,-0.0452 0.282761,-0.0679 0.135725,-0.0113 0.271449,-0.0226 v -0.0905 q -0.135724,-0.0113 -0.271449,-0.0452 -0.124415,-0.0226 -0.282761,-0.0566 -0.147035,-0.0452 -0.305381,-0.1131 l -3.280018,-1.45904 v -1.32332 l 5.067063,2.31863 v 1.4138 z"
id="path1213" />
<path
style="color:#000000;-inkscape-font-specification:'JetBrains Mono, Bold';fill:#ffffff;stroke:none;-inkscape-stroke:none"
d="m 62.439453,110.51367 v 1.61328 l 3.357422,1.49414 0.002,0.002 c 0.1094,0.0469 0.215332,0.0855 0.318359,0.11718 l 0.0059,0.002 h 0.0059 c 0.02244,0.005 0.03909,0.007 0.06055,0.0117 -0.02475,0.007 -0.04436,0.0102 -0.07031,0.0176 -0.104318,0.0246 -0.211081,0.0606 -0.320313,0.10743 h -0.002 l -3.357422,1.49414 v 1.60156 l 0.185547,-0.0859 5.144531,-2.35351 v -1.58203 z m 0.261719,0.40821 4.804687,2.19921 v 1.2461 l -4.804687,2.19922 v -1.02344 l 3.201172,-1.42383 c 0.0993,-0.0426 0.193839,-0.0731 0.283203,-0.0937 h 0.0039 l 0.002,-0.002 c 0.100152,-0.0286 0.189304,-0.0484 0.265625,-0.0625 0.0017,-3.2e-4 0.0042,-0.002 0.0059,-0.002 l 0.378906,-0.0312 v -0.33203 l -0.121094,-0.01 c -0.08326,-0.007 -0.166182,-0.022 -0.25,-0.043 h -0.0039 l -0.0039,-0.002 c -0.0778,-0.0141 -0.168362,-0.0315 -0.267579,-0.0527 -0.09247,-0.0284 -0.189935,-0.0641 -0.291015,-0.10742 h -0.002 l -3.201172,-1.42383 z"
id="path1215" />
</g>
<g
id="path1013">
<path
style="color:#000000;-inkscape-font-specification:'JetBrains Mono, Bold';fill:#ffffff;stroke:none;stroke-width:0.263;-inkscape-stroke:none"
d="m 69.17132,117.75404 h 5.428996 v 1.27808 H 69.17132 Z"
id="path1219" />
<path
style="color:#000000;-inkscape-font-specification:'JetBrains Mono, Bold';fill:#ffffff;stroke:none;-inkscape-stroke:none"
d="m 69.039062,117.62305 v 0.13086 1.41015 h 5.69336 v -1.54101 z m 0.263672,0.26172 h 5.166016 v 1.01562 h -5.166016 z"
id="path1221" />
</g>
id="path1011-6-2"
transform="matrix(2.1452134,0,0,2.5503116,-71.247407,-178.388)"
style="font-size:8.48274px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#338574;fill-opacity:1;stroke:none;stroke-width:0.525121">
<path
style="color:#000000;-inkscape-font-specification:'JetBrains Mono, Bold';fill:#338574;fill-opacity:1;stroke:none;-inkscape-stroke:none"
d="m 62.57046,116.77004 v -1.31201 l 3.280018,-1.45904 q 0.158346,-0.0679 0.305381,-0.1018 0.158346,-0.0452 0.282761,-0.0679 0.135725,-0.0113 0.271449,-0.0226 v -0.0905 q -0.135724,-0.0113 -0.271449,-0.0452 -0.124415,-0.0226 -0.282761,-0.0566 -0.147035,-0.0452 -0.305381,-0.1131 l -3.280018,-1.45904 v -1.32332 l 5.067063,2.31863 v 1.4138 z"
id="path7553" />
<path
style="color:#000000;-inkscape-font-specification:'JetBrains Mono, Bold';fill:#338574;fill-opacity:1;stroke:none;-inkscape-stroke:none"
d="m 62.308594,110.31055 v 1.90234 l 3.4375,1.5293 c 0.0073,0.003 0.0142,0.005 0.02148,0.008 -0.0073,0.003 -0.0142,0.005 -0.02148,0.008 l -3.4375,1.5293 v 1.89258 l 0.371093,-0.16992 5.220704,-2.39063 v -1.75 z m 0.52539,0.8164 4.541016,2.08008 v 1.07617 l -4.541016,2.07813 v -0.73242 l 3.119141,-1.38868 0.0039,-0.002 c 0.09141,-0.0389 0.178343,-0.0676 0.257813,-0.0859 h 0.0059 l 0.0078,-0.002 c 0.09483,-0.0271 0.176055,-0.0474 0.246093,-0.0606 l 0.498047,-0.041 v -0.57422 l -0.240234,-0.0195 c -0.07606,-0.006 -0.153294,-0.0198 -0.230469,-0.0391 l -0.0078,-0.002 -0.0078,-0.002 c -0.07608,-0.0138 -0.16556,-0.0318 -0.263672,-0.0527 -0.08398,-0.0262 -0.172736,-0.058 -0.265625,-0.0977 l -0.0039,-0.002 -3.119141,-1.38868 z"
id="path7555" />
</g>
<g
id="g1224"
transform="matrix(2.1388566,0,0,2.4558588,-69.745456,-170.93962)"
style="font-size:8.48274px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#338574;fill-opacity:1;stroke:none;stroke-width:0.525121">
<path
style="color:#000000;-inkscape-font-specification:'JetBrains Mono, Bold';fill:#338574;fill-opacity:1;stroke:none;-inkscape-stroke:none"
d="m 69.17132,117.75404 h 5.428996 v 1.27808 H 69.17132 Z"
id="path1220" />
<path
style="color:#000000;-inkscape-font-specification:'JetBrains Mono, Bold';fill:#338574;fill-opacity:1;stroke:none;-inkscape-stroke:none"
d="m 68.908203,117.49219 v 0.26172 1.54101 h 5.955078 v -1.80273 z m 0.525391,0.52344 h 4.904297 v 0.7539 h -4.904297 z"
id="path1222" />
</g>
</g>
<g
inkscape:groupmode="layer"
id="g18852"
inkscape:label="round icon preview"
style="display:none">
<path
id="path18850"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke-width:0.999999"
d="M 0,0 V 190 H 84.177734 A 95.321232,95.321232 0 0 1 0.03320312,95.402344 95.321232,95.321232 0 0 1 95.353516,0.08007812 95.321232,95.321232 0 0 1 190,84.138672 V 0 Z M 190,106.1543 A 95.321232,95.321232 0 0 1 106.53125,190 H 190 Z"
transform="scale(0.26458333)"
inkscape:export-filename="/home/pheckel/Code/ntfy-android/assets/notification.png"
inkscape:export-xdpi="258.69"
inkscape:export-ydpi="258.69" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 7 KiB

View file

@ -2,16 +2,16 @@
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="50.270832mm"
height="50.270832mm"
viewBox="0 0 50.270832 50.270832"
width="50mm"
height="50mm"
viewBox="0 0 50 49.999999"
version="1.1"
id="svg8"
inkscape:version="1.1.1 (3bf5ae0, 2021-09-20)"
sodipodi:docname="notification_instant.svg"
inkscape:export-filename="/home/pheckel/Code/ntfy-android/assets/notification.png"
inkscape:export-xdpi="258.69"
inkscape:export-ydpi="258.69"
inkscape:export-filename="/home/pheckel/Code/ntfy-android/assets/launcher_full_bg.png"
inkscape:export-xdpi="260.10001"
inkscape:export-ydpi="260.10001"
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"
@ -20,17 +20,54 @@
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs2" />
id="defs2">
<filter
style="color-interpolation-filters:sRGB"
inkscape:label="Drop Shadow"
id="filter3958"
x="-0.076083146"
y="-0.091641665"
width="1.1759423"
height="1.2114791">
<feFlood
flood-opacity="0.192157"
flood-color="rgb(0,0,0)"
result="flood"
id="feFlood3948" />
<feComposite
in="flood"
in2="SourceGraphic"
operator="in"
result="composite1"
id="feComposite3950" />
<feGaussianBlur
in="composite1"
stdDeviation="4"
result="blur"
id="feGaussianBlur3952" />
<feOffset
dx="3"
dy="2.95367"
result="offset"
id="feOffset3954" />
<feComposite
in="SourceGraphic"
in2="offset"
operator="over"
result="composite2"
id="feComposite3956" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#505050"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="3.2922024"
inkscape:cx="108.28617"
inkscape:cy="72.899528"
inkscape:zoom="0.95061015"
inkscape:cx="146.74785"
inkscape:cy="144.11796"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
@ -39,16 +76,49 @@
inkscape:snap-text-baseline="true"
inkscape:window-width="1863"
inkscape:window-height="1025"
inkscape:window-x="57"
inkscape:window-x="1977"
inkscape:window-y="27"
inkscape:window-maximized="1"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
showguides="true"
showguides="false"
inkscape:guide-bbox="true"
inkscape:pagecheckerboard="0" />
inkscape:pagecheckerboard="0">
<sodipodi:guide
position="9.8690703,86.715698"
orientation="1,0"
id="guide1770" />
<sodipodi:guide
position="39.661132,81.074874"
orientation="1,0"
id="guide1772" />
<sodipodi:guide
position="9.8690703,58.786381"
orientation="0,-1"
id="guide1774" />
<sodipodi:guide
position="-2.6121775,28.943566"
orientation="0,-1"
id="guide1776" />
<sodipodi:guide
position="14.686182,55.195651"
orientation="1,0"
id="guide4020" />
<sodipodi:guide
position="34.626283,58.786381"
orientation="1,0"
id="guide4022" />
<sodipodi:guide
position="12.398156,51.002016"
orientation="0,-1"
id="guide4024" />
<sodipodi:guide
position="11.073267,36.978591"
orientation="0,-1"
id="guide4026" />
</sodipodi:namedview>
<metadata
id="metadata5">
<rdf:RDF>
@ -64,42 +134,29 @@
inkscape:label="foreground"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-51.147327,-81.515579)"
transform="translate(-51.451771,-87.327048)"
style="display:inline">
<path
id="path2498"
style="color:#000000;fill:#338574;fill-opacity:1;stroke:none;stroke-width:2.84985;-inkscape-stroke:none"
d="M 29.630859 24 C 16.100177 24 4.5097656 34.647839 4.5097656 48.183594 L 4.5097656 48.193359 L 4.6425781 153.51758 L 1.2441406 178.59375 L 47.453125 166.31836 L 135.83008 166.31836 L 138.27344 149.23438 L 44.947266 149.23438 L 21.470703 156.32812 L 21.710938 154.94336 L 21.580078 48.183594 C 21.580078 44.53062 24.871123 41.068359 29.630859 41.068359 L 162.32617 41.068359 L 162.33789 41.068359 C 167.09197 41.073273 170.37891 44.533477 170.37891 48.183594 L 170.37891 97.283203 L 187.44727 97.283203 L 187.44727 48.181641 C 187.44727 34.649753 175.86345 24.006266 162.33789 24 L 162.32617 24 L 29.630859 24 z M 187.44727 118.95508 C 172.60523 144.85404 165.24675 157.70413 160.31836 166.31836 L 162.32617 166.31836 C 175.85682 166.31836 187.44727 155.65698 187.44727 142.12109 L 187.44727 118.95508 z "
transform="matrix(0.26458333,0,0,0.26458333,51.451771,87.327048)" />
<g
id="path1011-3-5"
transform="matrix(2.5168336,0,0,2.6483458,-96.041466,-195.68997)"
style="font-size:8.48274px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;display:inline;fill:#ffffff;stroke:#ffffff;stroke-width:0.38733381;stroke-miterlimit:4;stroke-dasharray:none">
id="path1011-6-2"
transform="matrix(2.1452134,0,0,2.5503116,-71.247407,-178.388)"
style="font-size:8.48274px;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#338574;fill-opacity:1;stroke:none;stroke-width:0.525121">
<path
style="color:#000000;-inkscape-font-specification:'JetBrains Mono, Bold';fill:#ffffff;stroke:none;stroke-width:0.38733381;stroke-miterlimit:4;stroke-dasharray:none"
style="color:#000000;-inkscape-font-specification:'JetBrains Mono, Bold';fill:#338574;fill-opacity:1;stroke:none;-inkscape-stroke:none"
d="m 62.57046,116.77004 v -1.31201 l 3.280018,-1.45904 q 0.158346,-0.0679 0.305381,-0.1018 0.158346,-0.0452 0.282761,-0.0679 0.135725,-0.0113 0.271449,-0.0226 v -0.0905 q -0.135724,-0.0113 -0.271449,-0.0452 -0.124415,-0.0226 -0.282761,-0.0566 -0.147035,-0.0452 -0.305381,-0.1131 l -3.280018,-1.45904 v -1.32332 l 5.067063,2.31863 v 1.4138 z"
id="path1213-5-9" />
id="path7553" />
<path
style="color:#000000;-inkscape-font-specification:'JetBrains Mono, Bold';fill:#ffffff;stroke:none;stroke-width:0.38733381;stroke-miterlimit:4;stroke-dasharray:none"
d="m 62.439453,110.51367 v 1.61328 l 3.357422,1.49414 0.002,0.002 c 0.1094,0.0469 0.215332,0.0855 0.318359,0.11718 l 0.0059,0.002 h 0.0059 c 0.02244,0.005 0.03909,0.007 0.06055,0.0117 -0.02475,0.007 -0.04436,0.0102 -0.07031,0.0176 -0.104318,0.0246 -0.211081,0.0606 -0.320313,0.10743 h -0.002 l -3.357422,1.49414 v 1.60156 l 0.185547,-0.0859 5.144531,-2.35351 v -1.58203 z m 0.261719,0.40821 4.804687,2.19921 v 1.2461 l -4.804687,2.19922 v -1.02344 l 3.201172,-1.42383 c 0.0993,-0.0426 0.193839,-0.0731 0.283203,-0.0937 h 0.0039 l 0.002,-0.002 c 0.100152,-0.0286 0.189304,-0.0484 0.265625,-0.0625 0.0017,-3.2e-4 0.0042,-0.002 0.0059,-0.002 l 0.378906,-0.0312 v -0.33203 l -0.121094,-0.01 c -0.08326,-0.007 -0.166182,-0.022 -0.25,-0.043 h -0.0039 l -0.0039,-0.002 c -0.0778,-0.0141 -0.168362,-0.0315 -0.267579,-0.0527 -0.09247,-0.0284 -0.189935,-0.0641 -0.291015,-0.10742 h -0.002 l -3.201172,-1.42383 z"
id="path1215-6-2" />
style="color:#000000;-inkscape-font-specification:'JetBrains Mono, Bold';fill:#338574;fill-opacity:1;stroke:none;-inkscape-stroke:none"
d="m 62.308594,110.31055 v 1.90234 l 3.4375,1.5293 c 0.0073,0.003 0.0142,0.005 0.02148,0.008 -0.0073,0.003 -0.0142,0.005 -0.02148,0.008 l -3.4375,1.5293 v 1.89258 l 0.371093,-0.16992 5.220704,-2.39063 v -1.75 z m 0.52539,0.8164 4.541016,2.08008 v 1.07617 l -4.541016,2.07813 v -0.73242 l 3.119141,-1.38868 0.0039,-0.002 c 0.09141,-0.0389 0.178343,-0.0676 0.257813,-0.0859 h 0.0059 l 0.0078,-0.002 c 0.09483,-0.0271 0.176055,-0.0474 0.246093,-0.0606 l 0.498047,-0.041 v -0.57422 l -0.240234,-0.0195 c -0.07606,-0.006 -0.153294,-0.0198 -0.230469,-0.0391 l -0.0078,-0.002 -0.0078,-0.002 c -0.07608,-0.0138 -0.16556,-0.0318 -0.263672,-0.0527 -0.08398,-0.0262 -0.172736,-0.058 -0.265625,-0.0977 l -0.0039,-0.002 -3.119141,-1.38868 z"
id="path7555" />
</g>
<path
id="rect849-7-2"
style="color:#000000;display:inline;fill:#ffffff;stroke-width:1;-inkscape-stroke:none"
d="m 51.995933,87.753738 v 1.933733 36.978649 h 32.494652 l 0.55191,-3.86541 H 55.861328 V 91.619141 h 40.974757 v 15.391819 h 3.648355 c 0.069,0 0.14316,0.003 0.21652,0.005 V 87.753843 Z m 48.705027,28.311452 c -2.365575,4.12885 -4.510165,7.87275 -6.070935,10.60093 h 6.070945 z" />
<path
id="path6295"
style="color:#000000;display:inline;fill:#ffffff;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
d="m 91.856545,98.262141 c -4.13939,7.256679 -7.82348,13.714569 -10.21591,17.937429 h 8.58294 l -1.85312,12.96199 c 1.20239,-2.10426 3.89686,-6.80945 10.28775,-17.96015 h -8.65426 z" />
</g>
<g
inkscape:groupmode="layer"
id="g18852"
inkscape:label="round icon preview"
style="display:none">
<path
id="path18850"
style="opacity:1;fill:#ffffff;fill-opacity:1;stroke-width:0.999999"
d="M 0,0 V 190 H 84.177734 A 95.321232,95.321232 0 0 1 0.03320312,95.402344 95.321232,95.321232 0 0 1 95.353516,0.08007812 95.321232,95.321232 0 0 1 190,84.138672 V 0 Z M 190,106.1543 A 95.321232,95.321232 0 0 1 106.53125,190 H 190 Z"
transform="scale(0.26458333)"
inkscape:export-filename="/home/pheckel/Code/ntfy-android/assets/notification.png"
inkscape:export-xdpi="258.69"
inkscape:export-ydpi="258.69" />
style="color:#000000;display:inline;fill:#338574;fill-opacity:1;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none"
d="m 93.131321,102.6768 c -4.13939,7.25668 -7.82348,13.71457 -10.21591,17.93743 h 8.58294 l -1.85312,12.96199 c 1.20239,-2.10426 3.89686,-6.80945 10.287752,-17.96015 h -8.654262 z" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB