From b72fc742edbdaaf0eed3c9516d3a468aa3c86005 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=B0=95=EC=84=B1=ED=98=84?= Date: Mon, 18 Sep 2023 13:46:17 +0900 Subject: [PATCH] =?UTF-8?q?:recycle:=20::=20=ED=85=8C=EB=A7=88=EC=97=90=20?= =?UTF-8?q?=EB=94=B0=EB=9D=BC=EC=84=9C=20404=20image=20=EB=9D=84=EC=9A=B0?= =?UTF-8?q?=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../presentation/view/not_found/NotFoundScreen.kt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/presentation/src/main/java/com/msg/presentation/view/not_found/NotFoundScreen.kt b/presentation/src/main/java/com/msg/presentation/view/not_found/NotFoundScreen.kt index 938f86d2..fbc6c902 100644 --- a/presentation/src/main/java/com/msg/presentation/view/not_found/NotFoundScreen.kt +++ b/presentation/src/main/java/com/msg/presentation/view/not_found/NotFoundScreen.kt @@ -25,6 +25,12 @@ fun NotFoundScreen( modifier: Modifier = Modifier, navigateToMain: () -> Unit ) { + val imageRes = if (DotoriTheme.isSystemIsDarkTheme()) { + R.drawable.ic_404_dark + } else { + R.drawable.ic_404_light + } + Column( modifier = modifier .fillMaxSize() @@ -34,7 +40,10 @@ fun NotFoundScreen( verticalArrangement = Arrangement.Center ) { - Image(painter = painterResource(id = R.drawable.ic_404), contentDescription = "") + Image( + painter = painterResource(id = imageRes), + contentDescription = "404 image" + ) Spacer(modifier = Modifier.height(24.dp)) Text( text = "요청하신 페이지를 찾을수 없습니다.", @@ -59,5 +68,5 @@ fun NotFoundScreen( @Preview @Composable fun NotFoundScreenPreview() { - NotFoundScreen{} + NotFoundScreen {} } \ No newline at end of file