@@ -258,15 +258,15 @@ fun ImageViewerScreen(instance: ViewerInstance) {
258258 Column {
259259 Text (
260260 text = imageInfo?.name ? : stringResource(R .string.unknown),
261- color = Color . White ,
261+ color = MaterialTheme .colorScheme.onSurface ,
262262 fontWeight = FontWeight .Medium ,
263263 maxLines = 1 ,
264264 overflow = TextOverflow .Ellipsis
265265 )
266266 imageInfo?.let { info ->
267267 Text (
268268 text = " ${info.size} • ${info.dimensions} " ,
269- color = Color . White .copy(alpha = 0.7f ),
269+ color = MaterialTheme .colorScheme.onSurface .copy(alpha = 0.7f ),
270270 fontSize = 12 .sp
271271 )
272272 }
@@ -279,7 +279,7 @@ fun ImageViewerScreen(instance: ViewerInstance) {
279279 Icon (
280280 Icons .AutoMirrored .Filled .ArrowBack ,
281281 contentDescription = null ,
282- tint = Color . White
282+ tint = MaterialTheme .colorScheme.onSurface
283283 )
284284 }
285285 },
@@ -288,7 +288,7 @@ fun ImageViewerScreen(instance: ViewerInstance) {
288288 Icon (
289289 Icons .Default .Info ,
290290 contentDescription = null ,
291- tint = Color . White
291+ tint = MaterialTheme .colorScheme.onSurface
292292 )
293293 }
294294 },
@@ -447,7 +447,7 @@ private fun BottomControls(
447447 ActionButton (
448448 icon = Icons .Default .InvertColors ,
449449 onClick = onInvertBackgroundColors,
450- backgroundColor = Color . White .copy(alpha = 0.15f )
450+ backgroundColor = MaterialTheme .colorScheme.onSurface .copy(alpha = 0.15f )
451451 )
452452
453453 // Fit to screen
@@ -468,21 +468,21 @@ private fun BottomControls(
468468 ]
469469 onContentScale(selectedContentScale)
470470 },
471- backgroundColor = Color . White .copy(alpha = 0.15f )
471+ backgroundColor = MaterialTheme .colorScheme.onSurface .copy(alpha = 0.15f )
472472 )
473473
474474 // Rotate
475475 ActionButton (
476476 icon = Icons .AutoMirrored .Filled .RotateRight ,
477477 onClick = onRotate,
478- backgroundColor = Color . White .copy(alpha = 0.15f )
478+ backgroundColor = MaterialTheme .colorScheme.onSurface .copy(alpha = 0.15f )
479479 )
480480
481481 // Edit
482482 ActionButton (
483483 icon = Icons .Default .Edit ,
484484 onClick = onEdit,
485- backgroundColor = Color . White .copy(alpha = 0.15f )
485+ backgroundColor = MaterialTheme .colorScheme.onSurface .copy(alpha = 0.15f )
486486 )
487487 }
488488}
@@ -491,8 +491,8 @@ private fun BottomControls(
491491private fun ActionButton (
492492 icon : ImageVector ,
493493 onClick : () -> Unit ,
494- tint : Color = Color . White ,
495- backgroundColor : Color = Color . White .copy(alpha = 0.1f)
494+ tint : Color = MaterialTheme .colorScheme.onSurface ,
495+ backgroundColor : Color = MaterialTheme .colorScheme.onSurface .copy(alpha = 0.1f)
496496) {
497497 IconButton (
498498 onClick = onClick,
0 commit comments