yayan vor 1 Jahr
Ursprung
Commit
e31107b02c

+ 30 - 6
app/src/main/java/io/nexilis/alpha/ui/components/Attachments.kt

@@ -182,7 +182,11 @@ fun Attachments(modifier: Modifier, onAttachment: (List<Uri>) -> Unit) {
                                 permissionLauncherFiles.launch(Manifest.permission.READ_EXTERNAL_STORAGE)
                             },
                             text = {
-                                Text(text = "File", style = MaterialTheme.typography.bodySmall)
+                                Text(
+                                    text = "File",
+                                    color = MaterialTheme.colorScheme.onSurface,
+                                    style = MaterialTheme.typography.bodySmall
+                                )
                             }) {
                             Icon(
                                 imageVector = Icons.Default.AttachFile,
@@ -198,7 +202,11 @@ fun Attachments(modifier: Modifier, onAttachment: (List<Uri>) -> Unit) {
                             )
                             permissionLauncherFiles.launch(Manifest.permission.READ_EXTERNAL_STORAGE)
                         }, text = {
-                            Text(text = "Gallery", style = MaterialTheme.typography.bodySmall)
+                            Text(
+                                text = "Gallery",
+                                color = MaterialTheme.colorScheme.onSurface,
+                                style = MaterialTheme.typography.bodySmall
+                            )
                         }) {
                             Icon(
                                 imageVector = Icons.Default.Image,
@@ -212,7 +220,11 @@ fun Attachments(modifier: Modifier, onAttachment: (List<Uri>) -> Unit) {
                         AttachmentButton(color = Color.Red, onClick = {
                             permissionLauncherCamera.launch(Manifest.permission.CAMERA)
                         }, text = {
-                            Text(text = "Photo", style = MaterialTheme.typography.bodySmall)
+                            Text(
+                                text = "Photo",
+                                color = MaterialTheme.colorScheme.onSurface,
+                                style = MaterialTheme.typography.bodySmall
+                            )
                         }) {
                             Icon(
                                 imageVector = Icons.Default.PhotoCamera,
@@ -227,7 +239,11 @@ fun Attachments(modifier: Modifier, onAttachment: (List<Uri>) -> Unit) {
                             )
                             permissionLauncherFiles.launch(Manifest.permission.READ_EXTERNAL_STORAGE)
                         }, text = {
-                            Text(text = "Audio", style = MaterialTheme.typography.bodySmall)
+                            Text(
+                                text = "Audio",
+                                color = MaterialTheme.colorScheme.onSurface,
+                                style = MaterialTheme.typography.bodySmall
+                            )
                         }) {
                             Icon(
                                 imageVector = Icons.Default.Headset,
@@ -246,7 +262,11 @@ fun Attachments(modifier: Modifier, onAttachment: (List<Uri>) -> Unit) {
                                 )
                             )
                         }, text = {
-                            Text(text = "Video", style = MaterialTheme.typography.bodySmall)
+                            Text(
+                                text = "Video",
+                                color = MaterialTheme.colorScheme.onSurface,
+                                style = MaterialTheme.typography.bodySmall
+                            )
                         }) {
                             Icon(
                                 imageVector = Icons.Default.Camera,
@@ -256,7 +276,11 @@ fun Attachments(modifier: Modifier, onAttachment: (List<Uri>) -> Unit) {
                         }
                         Spacer(modifier = Modifier.size(32.dp))
                         AttachmentButton(color = Color.BlueSky, onClick = {}, text = {
-                            Text(text = "Location", style = MaterialTheme.typography.bodySmall)
+                            Text(
+                                text = "Location",
+                                color = MaterialTheme.colorScheme.onSurface,
+                                style = MaterialTheme.typography.bodySmall
+                            )
                         }) {
                             Icon(
                                 imageVector = Icons.Default.LocationOn,

+ 1 - 1
app/src/main/java/io/nexilis/alpha/ui/components/InputChat.kt

@@ -75,7 +75,7 @@ fun InputChat(
                         shape = RoundedCornerShape(16.dp)
                         clip = true
                     }
-                    .background(MaterialTheme.colorScheme.surfaceContainer),
+                    .background(MaterialTheme.colorScheme.surfaceContainerLowest),
                 onAttachment = { list ->
                     attachmentState.addAll(list)
                     val items = list.map {