Skip to content

Commit cd88885

Browse files
committed
Update references after audit
1 parent 91f6e50 commit cd88885

71 files changed

Lines changed: 164 additions & 165 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

stream-chat-android-compose-sample/src/main/java/io/getstream/chat/android/compose/sample/feature/channel/add/AddChannelScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ private fun SelectedUserChip(
282282
) {
283283
SuggestionChip(
284284
modifier = Modifier.height(32.dp),
285-
colors = SuggestionChipDefaults.suggestionChipColors(containerColor = ChatTheme.colors.appBackground),
285+
colors = SuggestionChipDefaults.suggestionChipColors(containerColor = ChatTheme.colors.backgroundCoreApp),
286286
shape = RoundedCornerShape(16.dp),
287287
icon = {
288288
UserAvatar(

stream-chat-android-compose-sample/src/main/java/io/getstream/chat/android/compose/sample/feature/channel/add/component/SearchUserResultsContent.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private fun SearchUserLoadingContent(padding: PaddingValues) {
106106
modifier = Modifier
107107
.padding(padding)
108108
.fillMaxSize()
109-
.background(ChatTheme.colors.appBackground),
109+
.background(ChatTheme.colors.backgroundCoreApp),
110110
contentAlignment = Alignment.Center,
111111
) {
112112
CircularProgressIndicator(strokeWidth = 2.dp, color = ChatTheme.colors.accentPrimary)
@@ -124,7 +124,7 @@ private fun SearchUserEmptyContent(padding: PaddingValues) {
124124
modifier = Modifier
125125
.padding(padding)
126126
.fillMaxSize()
127-
.background(ChatTheme.colors.appBackground),
127+
.background(ChatTheme.colors.backgroundCoreApp),
128128
verticalArrangement = Arrangement.Center,
129129
horizontalAlignment = Alignment.CenterHorizontally,
130130
) {
@@ -165,7 +165,7 @@ private fun SearchUserResultList(
165165
modifier = Modifier
166166
.padding(padding)
167167
.fillMaxSize()
168-
.background(ChatTheme.colors.appBackground),
168+
.background(ChatTheme.colors.backgroundCoreApp),
169169
state = listState,
170170
) {
171171
users.forEach { (group, users) ->
@@ -231,7 +231,7 @@ private fun SearchUserResultItem(
231231
modifier = Modifier
232232
.fillMaxWidth()
233233
.height(64.dp)
234-
.background(ChatTheme.colors.appBackground)
234+
.background(ChatTheme.colors.backgroundCoreApp)
235235
.clickable(
236236
interactionSource = remember { MutableInteractionSource() },
237237
indication = ripple(),

stream-chat-android-compose-sample/src/main/java/io/getstream/chat/android/compose/sample/feature/channel/add/group/AddGroupChannelScreen.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ private fun EnterNameContent(
233233
Column(
234234
modifier = Modifier
235235
.fillMaxSize()
236-
.background(ChatTheme.colors.appBackground)
236+
.background(ChatTheme.colors.backgroundCoreApp)
237237
.padding(padding),
238238
) {
239239
val text = if (selectedUsers.isEmpty()) {
@@ -275,7 +275,7 @@ private fun NextFab(onClick: () -> Unit) {
275275
Icon(
276276
painter = painterResource(id = R.drawable.ic_arrow_right),
277277
contentDescription = null,
278-
tint = ChatTheme.colors.appBackground,
278+
tint = ChatTheme.colors.backgroundCoreApp,
279279
)
280280
}
281281
}
@@ -295,7 +295,7 @@ private fun AddGroupChannelFab(onClick: () -> Unit) {
295295
Icon(
296296
painter = painterResource(id = R.drawable.ic_check),
297297
contentDescription = null,
298-
tint = ChatTheme.colors.appBackground,
298+
tint = ChatTheme.colors.backgroundCoreApp,
299299
)
300300
}
301301
}

stream-chat-android-compose-sample/src/main/java/io/getstream/chat/android/compose/sample/feature/channel/draft/DraftChannelScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private fun DraftChannelContent(
7878
onMessageSent = { onViewAction(DraftChannelViewAction.MessageSent) },
7979
)
8080
},
81-
containerColor = ChatTheme.colors.appBackground,
81+
containerColor = ChatTheme.colors.backgroundCoreApp,
8282
) { padding ->
8383
ChatTheme.componentFactory.MessageListEmptyContent(
8484
modifier = Modifier

stream-chat-android-compose-sample/src/main/java/io/getstream/chat/android/compose/sample/feature/channel/list/ChannelsActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ class ChannelsActivity : ComponentActivity() {
209209
onOptionSelected = { selectedTab = it },
210210
)
211211
},
212-
containerColor = ChatTheme.colors.appBackground,
212+
containerColor = ChatTheme.colors.backgroundCoreApp,
213213
) { padding ->
214214
Box(modifier = Modifier.padding(padding)) {
215215
when (selectedTab) {
@@ -357,7 +357,7 @@ class ChannelsActivity : ComponentActivity() {
357357

358358
SearchInput(
359359
modifier = Modifier
360-
.background(color = ChatTheme.colors.appBackground)
360+
.background(color = ChatTheme.colors.backgroundCoreApp)
361361
.fillMaxWidth()
362362
.padding(8.dp),
363363
query = query,

stream-chat-android-compose-sample/src/main/java/io/getstream/chat/android/compose/sample/feature/reminders/MessageRemindersScreen.kt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ fun MessageRemindersScreen(
106106
Column(
107107
modifier = Modifier
108108
.fillMaxSize()
109-
.background(ChatTheme.colors.appBackground)
109+
.background(ChatTheme.colors.backgroundCoreApp)
110110
.padding(padding),
111111
) {
112112
MessageRemindersFilterSelection(
@@ -178,7 +178,7 @@ private fun MessageRemindersLoadingContent() {
178178
LoadingIndicator(
179179
modifier = Modifier
180180
.fillMaxSize()
181-
.background(ChatTheme.colors.appBackground),
181+
.background(ChatTheme.colors.backgroundCoreApp),
182182
)
183183
}
184184

@@ -192,7 +192,7 @@ private fun MessageRemindersEmptyContent(filter: MessageRemindersFilter) {
192192
painter = painterResource(id = R.drawable.ic_bell_24),
193193
modifier = Modifier
194194
.fillMaxSize()
195-
.background(ChatTheme.colors.appBackground)
195+
.background(ChatTheme.colors.backgroundCoreApp)
196196
.padding(16.dp),
197197
)
198198
}
@@ -220,7 +220,7 @@ private fun MessageRemindersResultList(
220220
state = lazyListState,
221221
modifier = Modifier
222222
.fillMaxSize()
223-
.background(ChatTheme.colors.appBackground),
223+
.background(ChatTheme.colors.backgroundCoreApp),
224224
) {
225225
items(reminders) {
226226
MessageReminderItem(
@@ -289,7 +289,7 @@ private fun MessageReminderFilterItem(
289289
SuggestionChip(
290290
modifier = Modifier.height(32.dp),
291291
colors = SuggestionChipDefaults.suggestionChipColors(
292-
containerColor = if (isSelected) ChatTheme.colors.accentPrimary else ChatTheme.colors.appBackground,
292+
containerColor = if (isSelected) ChatTheme.colors.accentPrimary else ChatTheme.colors.backgroundCoreApp,
293293
),
294294
shape = RoundedCornerShape(16.dp),
295295
border = if (isSelected) null else BorderStroke(1.dp, ChatTheme.colors.borderCoreDefault),
@@ -317,7 +317,7 @@ private fun MessageReminderItem(
317317
Column(
318318
modifier = modifier
319319
.fillMaxWidth()
320-
.background(ChatTheme.colors.appBackground)
320+
.background(ChatTheme.colors.backgroundCoreApp)
321321
.padding(12.dp),
322322
) {
323323
Row(

stream-chat-android-compose-sample/src/main/java/io/getstream/chat/android/compose/sample/ui/MessagesActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ class MessagesActivity : ComponentActivity() {
225225
MessageList(
226226
modifier = Modifier
227227
.padding(it)
228-
.background(ChatTheme.colors.appBackground)
228+
.background(ChatTheme.colors.backgroundCoreApp)
229229
.fillMaxSize(),
230230
viewModel = listViewModel,
231231
reactionSorting = ReactionSortingByFirstReactionAt,

stream-chat-android-compose-sample/src/main/java/io/getstream/chat/android/compose/sample/ui/component/CustomChatComponentFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class CustomChatComponentFactory(
4848
.run {
4949
// Highlight the item background color if it is pinned
5050
if (channelItem.channel.isPinned()) {
51-
background(color = ChatTheme.colors.highlightBackground)
51+
background(color = ChatTheme.colors.backgroundCoreHighlight)
5252
} else {
5353
this
5454
}

stream-chat-android-compose-sample/src/main/java/io/getstream/chat/android/compose/sample/ui/component/MessageInfoComponentFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class MessageInfoComponentFactory : ChatComponentFactory {
118118
onDismiss()
119119
dismissed = true // Mark as dismissed to avoid animating the menu again
120120
},
121-
containerColor = ChatTheme.colors.appBackground,
121+
containerColor = ChatTheme.colors.backgroundCoreApp,
122122
) {
123123
val coroutineScope = rememberCoroutineScope()
124124
val state by remember(message) { readsOf(message, coroutineScope) }.collectAsState(null)

stream-chat-android-compose-sample/src/main/java/io/getstream/chat/android/compose/sample/ui/login/CustomLoginActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ class CustomLoginActivity : AppCompatActivity() {
109109
onLoginButtonClick: (UserCredentials) -> Unit,
110110
) {
111111
Scaffold(
112-
containerColor = ChatTheme.colors.appBackground,
112+
containerColor = ChatTheme.colors.backgroundCoreApp,
113113
topBar = { CustomLoginToolbar(onClick = onBackButtonClick) },
114114
content = {
115115
Column(
@@ -259,7 +259,7 @@ class CustomLoginActivity : AppCompatActivity() {
259259
shape = RoundedCornerShape(8.dp),
260260
colors = ButtonDefaults.buttonColors(
261261
containerColor = ChatTheme.colors.accentPrimary,
262-
disabledContainerColor = ChatTheme.colors.stateBgDisabled,
262+
disabledContainerColor = ChatTheme.colors.backgroundCoreDisabled,
263263
),
264264
onClick = onClick,
265265
) {

0 commit comments

Comments
 (0)