Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
MoreScreen: Fix icon tint in dark theme
Browse files Browse the repository at this point in the history
Signed-off-by: Aayush Gupta <[email protected]>
  • Loading branch information
theimpulson committed Oct 20, 2023
1 parent 3ccd02f commit 22f5741
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.aayush.relabs.ui.screens.more

import androidx.compose.foundation.Image
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
Expand All @@ -12,9 +13,10 @@ import androidx.compose.material3.Divider
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import androidx.hilt.navigation.compose.hiltViewModel
Expand All @@ -41,7 +43,8 @@ fun MoreScreen(
Image(
modifier = Modifier.requiredSize(196.dp),
painter = painterResource(id = R.drawable.ic_launcher_foreground_monochrome),
contentDescription = ""
contentDescription = "",
colorFilter = ColorFilter.tint(if (isSystemInDarkTheme()) Color.White else Color.Black)
)
Divider()
}
Expand Down

0 comments on commit 22f5741

Please sign in to comment.