-
Notifications
You must be signed in to change notification settings - Fork 3
/
FfIcons.kt
256 lines (182 loc) · 7.7 KB
/
FfIcons.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
package social.firefly.core.designsystem.icon
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.AddCircleOutline
import androidx.compose.material.icons.rounded.AddPhotoAlternate
import androidx.compose.material.icons.rounded.ArrowBack
import androidx.compose.material.icons.rounded.ArrowDropDown
import androidx.compose.material.icons.rounded.BookmarkBorder
import androidx.compose.material.icons.rounded.Check
import androidx.compose.material.icons.rounded.ChevronRight
import androidx.compose.material.icons.rounded.Delete
import androidx.compose.material.icons.rounded.DeleteOutline
import androidx.compose.material.icons.rounded.KeyboardArrowUp
import androidx.compose.material.icons.rounded.Lock
import androidx.compose.material.icons.rounded.LockOpen
import androidx.compose.material.icons.rounded.Message
import androidx.compose.material.icons.rounded.Poll
import androidx.compose.material.icons.rounded.Public
import androidx.compose.material.icons.rounded.Send
import androidx.compose.material.icons.rounded.VolumeMute
import androidx.compose.material.icons.rounded.VolumeUp
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.vector.rememberVectorPainter
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import social.firefly.core.designsystem.R
/**
* Other than aliases, these names should correspond to the icons in the
* [phosphor library](https://phosphoricons.com/).
* TODO@release update material icons with phosphor icons
*/
object FfIcons {
@Composable
fun arrowLineUp() = painterResource(id = R.drawable.arrow_line_up)
@Composable
fun at() = painterResource(id = R.drawable.at)
@Composable
fun bell() = painterResource(id = R.drawable.bell)
@Composable
fun bellFill() = painterResource(id = R.drawable.bell_fill)
@Composable
fun bookmark() = painterResource(R.drawable.bookmark_simple)
@Composable
fun bookmarkFill() = painterResource(R.drawable.bookmark_simple_fill)
@Composable
fun boost() = repeat()
@Composable
fun caretDown() = painterResource(id = R.drawable.caret_down)
@Composable
fun caretRight() = painterResource(id = R.drawable.caret_right)
@Composable
fun chartBar() = painterResource(id = R.drawable.chart_bar)
@Composable
fun chatBubbles() = painterResource(id = R.drawable.chat_bubbles)
@Composable
fun chatBubblesFilled() = painterResource(id = R.drawable.chat_bubbles_filled)
@Composable
fun compass() = painterResource(R.drawable.compass)
@Composable
fun compassFill() = painterResource(R.drawable.compass_fill)
@Composable
fun connect() = painterResource(id = R.drawable.connect)
@Composable
fun downloadSimple() = painterResource(id = R.drawable.download_simple)
@Composable
fun following() = painterResource(id = R.drawable.following)
@Composable
fun gear() = painterResource(id = R.drawable.gear)
@Composable
fun globeHemisphereWest() = painterResource(id = R.drawable.globe_hemisphere_west)
@Composable
fun hash() = painterResource(id = R.drawable.hash)
@Composable
fun heart() = painterResource(id = R.drawable.heart)
@Composable
fun heartFilled() = painterResource(id = R.drawable.heart_filled)
@Composable
fun house() = painterResource(R.drawable.house)
@Composable
fun houseFill() = painterResource(R.drawable.house_fill)
@Composable
fun identificationCard() = painterResource(id = R.drawable.identification_card)
@Composable
fun image() = painterResource(id = R.drawable.image)
@Composable
fun imagePlus() = painterResource(id = R.drawable.image_plus)
@Composable
fun info() = painterResource(id = R.drawable.info)
@Composable
fun list() = painterResource(id = R.drawable.list)
@Composable
fun listChecks() = painterResource(id = R.drawable.list_checks)
@Composable
fun listPlus() = painterResource(id = R.drawable.list_plus)
@Composable
fun lock() = painterResource(id = R.drawable.lock)
@Composable
fun lockKey() = painterResource(id = R.drawable.lock_key)
@Composable
fun magnifyingGlass() = painterResource(id = R.drawable.magnifying_glass)
@Composable
fun magnifyingGlassFill() = painterResource(id = R.drawable.magnifying_glass_fill)
@Composable
fun monitorPlay() = painterResource(id = R.drawable.monitor_play)
@Composable
fun moreVertical() = painterResource(id = R.drawable.more_vertical)
@Composable
fun note() = painterResource(id = R.drawable.note)
@Composable
fun pause() = painterResource(id = R.drawable.pause)
@Composable
fun play() = painterResource(id = R.drawable.play)
@Composable
fun plus() = painterResource(id = R.drawable.plus)
@Composable
fun prohibit() = painterResource(id = R.drawable.prohibit)
@Composable
fun repeat() = painterResource(id = R.drawable.repeat)
@Composable
fun robot() = painterResource(id = R.drawable.robot)
@Composable
fun share() = painterResource(id = R.drawable.share)
@Composable
fun speakerX() = painterResource(id = R.drawable.speaker_x)
@Composable
fun trash() = painterResource(id = R.drawable.trash)
@Composable
fun treeView() = painterResource(id = R.drawable.tree_view)
@Composable
fun userCircle() = painterResource(id = R.drawable.user_circle)
@Composable
fun userCircleFill() = painterResource(id = R.drawable.user_circle_fill)
@Composable
fun userJoin() = painterResource(id = R.drawable.user_join)
@Composable
fun users() = painterResource(id = R.drawable.users)
@Composable
fun warning() = painterResource(id = R.drawable.warning)
@Composable
fun x() = painterResource(id = R.drawable.x)
// Material- avoid using these, and instead use the drawable based resources
@Composable
fun check() = rememberVectorPainter(image = Icons.Rounded.Check)
@Composable
fun backArrow() = rememberVectorPainter(image = Icons.Rounded.ArrowBack)
@Composable
fun chevronRight() = rememberVectorPainter(image = Icons.Rounded.ChevronRight)
@Composable
fun caret() = rememberVectorPainter(image = Icons.Rounded.KeyboardArrowUp)
@Composable
fun bookmarkBorder() = rememberVectorPainter(image = Icons.Rounded.BookmarkBorder)
@Composable
fun public() = rememberVectorPainter(image = Icons.Rounded.Public)
@Composable
fun lockOpen() = rememberVectorPainter(image = Icons.Rounded.LockOpen)
@Composable
fun materialLock() = rememberVectorPainter(image = Icons.Rounded.Lock)
@Composable
fun message() = rememberVectorPainter(image = Icons.Rounded.Message)
@Composable
fun arrowDropDown() = rememberVectorPainter(image = Icons.Rounded.ArrowDropDown)
@Composable
fun volumeMute() = rememberVectorPainter(image = Icons.Rounded.VolumeMute)
@Composable
fun volumeUp() = rememberVectorPainter(image = Icons.Rounded.VolumeUp)
@Composable
fun send() = rememberVectorPainter(image = Icons.Rounded.Send)
@Composable
fun addPhotoAlternate() = rememberVectorPainter(image = Icons.Rounded.AddPhotoAlternate)
@Composable
fun poll() = rememberVectorPainter(image = Icons.Rounded.Poll)
@Composable
fun delete() = rememberVectorPainter(image = Icons.Rounded.Delete)
@Composable
fun deleteOutline() = rememberVectorPainter(image = Icons.Rounded.DeleteOutline)
@Composable
fun addCircleOutline() = rememberVectorPainter(image = Icons.Rounded.AddCircleOutline)
// This isn't part of the design system
object Sizes {
val small = 16.dp // Used for smaller icons
val normal = 24.dp // used for most icons, and the navigation icons
}
}