mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 17:05:20 +00:00
Use HorizontalDivider instead of deprecated Divider
This commit is contained in:
@@ -210,7 +210,7 @@ private fun ChatInputSection(
|
||||
shadowElevation = 8.dp
|
||||
) {
|
||||
Column {
|
||||
Divider(color = colorScheme.outline.copy(alpha = 0.3f))
|
||||
HorizontalDivider(color = colorScheme.outline.copy(alpha = 0.3f))
|
||||
|
||||
// Command suggestions box
|
||||
if (showCommandSuggestions && commandSuggestions.isNotEmpty()) {
|
||||
@@ -219,8 +219,8 @@ private fun ChatInputSection(
|
||||
onSuggestionClick = onSuggestionClick,
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
)
|
||||
|
||||
Divider(color = colorScheme.outline.copy(alpha = 0.2f))
|
||||
|
||||
HorizontalDivider(color = colorScheme.outline.copy(alpha = 0.2f))
|
||||
}
|
||||
|
||||
MessageInput(
|
||||
@@ -283,12 +283,12 @@ private fun ChatFloatingHeader(
|
||||
}
|
||||
|
||||
// Divider under header
|
||||
Divider(
|
||||
color = colorScheme.outline.copy(alpha = 0.3f),
|
||||
HorizontalDivider(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.offset(y = headerHeight)
|
||||
.zIndex(1f)
|
||||
.zIndex(1f),
|
||||
color = colorScheme.outline.copy(alpha = 0.3f)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -73,8 +73,8 @@ fun SidebarOverlay(
|
||||
.windowInsetsPadding(WindowInsets.statusBars) // Add status bar padding
|
||||
) {
|
||||
SidebarHeader()
|
||||
|
||||
Divider()
|
||||
|
||||
HorizontalDivider()
|
||||
|
||||
// Scrollable content
|
||||
LazyColumn(
|
||||
@@ -101,7 +101,7 @@ fun SidebarOverlay(
|
||||
}
|
||||
|
||||
item {
|
||||
Divider(modifier = Modifier.padding(vertical = 4.dp))
|
||||
HorizontalDivider(modifier = Modifier.padding(vertical = 4.dp))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user