compose: Show green color when compatibility and privacy is good
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -8,3 +8,4 @@ package com.aurora.store.compose.theme
|
||||
import androidx.compose.ui.graphics.Color
|
||||
|
||||
val warningColor = Color(0xFFFFA000) // Amber
|
||||
val successColor = Color(0xFF1B8738) // Green
|
||||
|
||||
@@ -16,6 +16,7 @@ import androidx.compose.ui.tooling.preview.Preview
|
||||
import com.aurora.store.R
|
||||
import com.aurora.store.compose.composable.Header
|
||||
import com.aurora.store.compose.composable.Info
|
||||
import com.aurora.store.compose.theme.successColor
|
||||
import com.aurora.store.compose.theme.warningColor
|
||||
import com.aurora.store.data.model.Scores
|
||||
|
||||
@@ -35,6 +36,7 @@ fun Compatibility(needsGms: Boolean, plexusScores: Scores? = null) {
|
||||
if (!needsGms) {
|
||||
Info(
|
||||
painter = painterResource(R.drawable.ic_menu_about),
|
||||
tint = successColor,
|
||||
title = AnnotatedString(
|
||||
text = stringResource(R.string.details_compatibility_gms_not_required_title)
|
||||
),
|
||||
|
||||
@@ -17,6 +17,7 @@ import androidx.compose.ui.tooling.preview.Preview
|
||||
import com.aurora.store.R
|
||||
import com.aurora.store.compose.composable.Header
|
||||
import com.aurora.store.compose.composable.Info
|
||||
import com.aurora.store.compose.theme.successColor
|
||||
import com.aurora.store.compose.theme.warningColor
|
||||
import com.aurora.store.data.model.Report
|
||||
|
||||
@@ -47,7 +48,7 @@ fun Privacy(report: Report?, onNavigateToDetailsExodus: (() -> Unit)? = null) {
|
||||
Info(
|
||||
painter = painterResource(R.drawable.ic_visibility),
|
||||
tint = when {
|
||||
report != null && report.trackers.isEmpty() -> LocalContentColor.current
|
||||
report != null && report.trackers.isEmpty() -> successColor
|
||||
else -> warningColor
|
||||
},
|
||||
title = AnnotatedString(text = reportStatus),
|
||||
|
||||
Reference in New Issue
Block a user