Skip to content

Commit 5086370

Browse files
authored
Add unread icons. (#80)
* Add unread icon. * Add read icon. * Rename icons.
1 parent ad1e5b0 commit 5086370

22 files changed

+75
-2
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:viewportWidth="24"
5+
android:viewportHeight="24">
6+
<path
7+
android:fillColor="#FF000000"
8+
android:pathData="M21.32 9.13c0-0.66-0.33-1.24-0.86-1.56L13.1 3.25a1.81 1.81 0 0 0-1.85 0L3.87 7.57C3.35 7.9 3 8.47 3 9.13v9.17c0 1 0.82 1.83 1.83 1.83H19.5a1.84 1.84 0 0 0 1.83-1.83V9.13ZM11.2 13.11L4.6 8.98l6.64-3.9a1.81 1.81 0 0 1 1.85 0l6.65 3.9-6.6 4.13a1.85 1.85 0 0 1-1.94 0Z"/>
9+
</vector>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:viewportWidth="24"
5+
android:viewportHeight="24">
6+
<path
7+
android:fillColor="#FF000000"
8+
android:pathData="M20 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"/>
9+
<path
10+
android:fillColor="#FF000000"
11+
android:fillType="evenOdd"
12+
android:pathData="M17 5H5a2 2 0 0 0-2 2v10.4a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V7.83a3 3 0 0 1-2 0 3.06 3.06 0 0 1-0.6-0.29L12 11.9 5 7.14V7h12.76A2.99 2.99 0 0 1 17 5Zm-4.44 8.93L19 9.55v7.85H5V9.56l6.44 4.37a1 1 0 0 0 1.12 0Z"/>
13+
</vector>

assets/android/src/CompoundIcons.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,12 @@ object CompoundIcons {
286286
@Composable fun LockSolid(): ImageVector {
287287
return ImageVector.vectorResource(R.drawable.ic_compound_lock_solid)
288288
}
289+
@Composable fun MarkAsRead(): ImageVector {
290+
return ImageVector.vectorResource(R.drawable.ic_compound_mark_as_read)
291+
}
292+
@Composable fun MarkAsUnread(): ImageVector {
293+
return ImageVector.vectorResource(R.drawable.ic_compound_mark_as_unread)
294+
}
289295
@Composable fun MarkerReadReceipts(): ImageVector {
290296
return ImageVector.vectorResource(R.drawable.ic_compound_marker_read_receipts)
291297
}
@@ -618,6 +624,8 @@ object CompoundIcons {
618624
Lock(),
619625
LockOff(),
620626
LockSolid(),
627+
MarkAsRead(),
628+
MarkAsUnread(),
621629
MarkerReadReceipts(),
622630
Mention(),
623631
Menu(),
@@ -789,6 +797,8 @@ object CompoundIcons {
789797
R.drawable.ic_compound_lock,
790798
R.drawable.ic_compound_lock_off,
791799
R.drawable.ic_compound_lock_solid,
800+
R.drawable.ic_compound_mark_as_read,
801+
R.drawable.ic_compound_mark_as_unread,
792802
R.drawable.ic_compound_marker_read_receipts,
793803
R.drawable.ic_compound_mention,
794804
R.drawable.ic_compound_menu,

assets/ios/swift/CompoundIcons.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ public class CompoundIcons {
8787
public let menu = Image("menu", bundle: Bundle.module)
8888
public let mention = Image("mention", bundle: Bundle.module)
8989
public let markerReadReceipts = Image("markerReadReceipts", bundle: Bundle.module)
90+
public let markAsUnread = Image("markAsUnread", bundle: Bundle.module)
91+
public let markAsRead = Image("markAsRead", bundle: Bundle.module)
9092
public let lock = Image("lock", bundle: Bundle.module)
9193
public let lockSolid = Image("lockSolid", bundle: Bundle.module)
9294
public let lockOff = Image("lockOff", bundle: Bundle.module)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"images":[{"filename":"markAsRead.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"images":[{"filename":"markAsUnread.svg","idiom":"universal"}],"info":{"author":"xcode","version":1},"properties":{"preserves-vector-representation":true,"template-rendering-intent":"template"}}
Lines changed: 4 additions & 0 deletions
Loading

assets/web/icons/$icons.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

assets/web/icons/mark-as-read.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)