Skip to content

Commit

Permalink
Merge pull request #4740 from nextcloud/bugfix/noid/improveContactsAc…
Browse files Browse the repository at this point in the history
…tivityDesign

Bugfix/noid/improve contacts activity design
  • Loading branch information
sowjanyakch authored Feb 18, 2025
2 parents 8d7ce9f + c5517c8 commit e648b88
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.platform.LocalView
import androidx.compose.ui.res.colorResource
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.res.vectorResource
Expand Down Expand Up @@ -132,7 +133,10 @@ class ContactsActivityCompose : BaseActivity() {
)
},
content = {
Column(Modifier.padding(it)) {
Column(
Modifier.padding(it)
.background(colorResource(id = R.color.bg_default))
) {
ConversationCreationOptions(context = context, contactsViewModel = contactsViewModel)
ContactsList(
contactsUiState = uiState.value,
Expand Down Expand Up @@ -427,9 +431,9 @@ fun Header(header: String) {
text = header,
modifier = Modifier
.fillMaxSize()
.background(Color.Transparent)
.background(colorResource(id = R.color.bg_default))
.padding(start = 60.dp),
color = Color.Blue,
color = MaterialTheme.colorScheme.primary,
fontWeight = FontWeight.Bold
)
}
Expand Down
14 changes: 11 additions & 3 deletions app/src/main/java/com/nextcloud/talk/contacts/SearchComponent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.filled.Close
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.TextField
import androidx.compose.material3.TextFieldDefaults
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalSoftwareKeyboardController
import androidx.compose.ui.res.colorResource
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.input.ImeAction
Expand All @@ -35,9 +37,15 @@ fun DisplaySearch(text: String, onTextChange: (String) -> Unit, contactsViewMode
val keyboardController = LocalSoftwareKeyboardController.current
TextField(
modifier = Modifier
.background(MaterialTheme.colorScheme.background)
.fillMaxWidth()
.height(60.dp)
.background(color = colorResource(id = R.color.appbar)),
.height(60.dp),
colors = TextFieldDefaults.colors(
focusedIndicatorColor = Color.Transparent,
unfocusedIndicatorColor = Color.Transparent,
disabledIndicatorColor = Color.Transparent
),

value = text,
onValueChange = { onTextChange(it) },
placeholder = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ fun ConversationCreationScreen(
Column(
modifier = Modifier
.padding(paddingValues)
.background(colorResource(id = R.color.bg_default))
.fillMaxSize()
.verticalScroll(rememberScrollState())
) {
DefaultUserAvatar(selectedImageUri)
Expand Down

0 comments on commit e648b88

Please sign in to comment.