SchildiChat notification icon

This commit is contained in:
SpiritCroc 2020-07-19 15:10:58 +02:00
parent 387d7eefb4
commit 126b344434
9 changed files with 20 additions and 4 deletions

View file

@ -28,6 +28,9 @@ file="$mydir/riot_splash_sc.svg"
export_files
rm "$mydir/riot_splash_sc.svg"
file="$mydir/materialdesignicons/ic_status_bar_sc.svg"
export_files
dpi=48
cp "$mydir/ic_launcher_sc.svg" "$mydir/element_logo_sc.svg"
file="$mydir/element_logo_sc.svg"

View file

@ -0,0 +1,8 @@
Icons in this directory have been taken from [materialdesignicons.com](https://materialdesignicons.com/),
released under the [SIL Open Font License 1.1](https://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web).
Listed below are the original icon names and authors:
- ic\_status\_bar\_sc.svg
- Original name: tortoise
- Author: Nick

View file

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24">
<path fill="#ffffff" d="M19.31,5.6C18.09,5.56 16.88,6.5 16.5,8C16,10 16,10 15,11C13,13 10,14 4,15C3,15.16 2.5,15.5 2,16C4,16 6,16 4.5,17.5L3,19H6L8,17C10,18 11.33,18 13.33,17L14,19H17L16,16C16,16 17,12 18,11C19,10 19,11 20,11C21,11 22,10 22,8.5C22,8 22,7 20.5,6C20.15,5.76 19.74,5.62 19.31,5.6M9,6A6,6 0 0,0 3,12C3,12.6 3.13,13.08 3.23,13.6C9.15,12.62 12.29,11.59 13.93,9.94L14.43,9.44C13.44,7.34 11.32,6 9,6Z" />
</svg>

After

Width:  |  Height:  |  Size: 704 B

View file

@ -512,7 +512,7 @@ class NotificationUtils @Inject constructor(private val context: Context,
val accentColor = ContextCompat.getColor(context, R.color.notification_accent_color)
// Build the pending intent for when the notification is clicked
val openRoomIntent = buildOpenRoomIntent(roomInfo.roomId)
val smallIcon = R.drawable.ic_status_bar
val smallIcon = R.drawable.ic_status_bar_sc
val channelID = if (roomInfo.shouldBing) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID
return NotificationCompat.Builder(context, channelID)
@ -613,7 +613,7 @@ class NotificationUtils @Inject constructor(private val context: Context,
matrixId: String): Notification {
val accentColor = ContextCompat.getColor(context, R.color.notification_accent_color)
// Build the pending intent for when the notification is clicked
val smallIcon = R.drawable.ic_status_bar
val smallIcon = R.drawable.ic_status_bar_sc
val channelID = if (inviteNotifiableEvent.noisy) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID
@ -676,7 +676,7 @@ class NotificationUtils @Inject constructor(private val context: Context,
matrixId: String): Notification {
val accentColor = ContextCompat.getColor(context, R.color.notification_accent_color)
// Build the pending intent for when the notification is clicked
val smallIcon = R.drawable.ic_status_bar
val smallIcon = R.drawable.ic_status_bar_sc
val channelID = if (simpleNotifiableEvent.noisy) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID
@ -774,7 +774,7 @@ class NotificationUtils @Inject constructor(private val context: Context,
noisy: Boolean,
lastMessageTimestamp: Long): Notification {
val accentColor = ContextCompat.getColor(context, R.color.notification_accent_color)
val smallIcon = R.drawable.ic_status_bar
val smallIcon = R.drawable.ic_status_bar_sc
return NotificationCompat.Builder(context, if (noisy) NOISY_NOTIFICATION_CHANNEL_ID else SILENT_NOTIFICATION_CHANNEL_ID)
// used in compat < N, after summary is built based on child notifications

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 784 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB