mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-21 00:14:24 +01:00
Remove Ukraine support motive
This commit is contained in:
@@ -20,8 +20,8 @@ import androidx.compose.ui.res.stringResource
|
|||||||
import androidx.compose.ui.text.style.TextAlign
|
import androidx.compose.ui.text.style.TextAlign
|
||||||
import androidx.compose.ui.tooling.preview.Preview
|
import androidx.compose.ui.tooling.preview.Preview
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import no.nordicsemi.android.material.you.ScreenSection
|
|
||||||
import no.nordicsemi.android.nrftoolbox.R
|
import no.nordicsemi.android.nrftoolbox.R
|
||||||
|
import no.nordicsemi.android.material.you.ScreenSection
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun FeatureButton(
|
fun FeatureButton(
|
||||||
@@ -43,8 +43,6 @@ fun FeatureButton(
|
|||||||
MaterialTheme.colorScheme.secondary
|
MaterialTheme.colorScheme.secondary
|
||||||
}
|
}
|
||||||
|
|
||||||
Box {
|
|
||||||
if (isRunning == true) {
|
|
||||||
Image(
|
Image(
|
||||||
painter = painterResource(iconId),
|
painter = painterResource(iconId),
|
||||||
contentDescription = stringResource(id = name),
|
contentDescription = stringResource(id = name),
|
||||||
@@ -56,26 +54,6 @@ fun FeatureButton(
|
|||||||
.background(color)
|
.background(color)
|
||||||
.padding(16.dp)
|
.padding(16.dp)
|
||||||
)
|
)
|
||||||
} else {
|
|
||||||
Image(
|
|
||||||
painter = painterResource(R.drawable.ic_ukraine_flag),
|
|
||||||
contentDescription = stringResource(id = name),
|
|
||||||
contentScale = ContentScale.Crop,
|
|
||||||
modifier = Modifier
|
|
||||||
.size(64.dp)
|
|
||||||
.clip(CircleShape)
|
|
||||||
)
|
|
||||||
Image(
|
|
||||||
painter = painterResource(iconId),
|
|
||||||
contentDescription = stringResource(id = name),
|
|
||||||
contentScale = ContentScale.Crop,
|
|
||||||
colorFilter = ColorFilter.tint(MaterialTheme.colorScheme.onSecondary),
|
|
||||||
modifier = Modifier
|
|
||||||
.size(64.dp)
|
|
||||||
.padding(16.dp)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Spacer(modifier = Modifier.size(16.dp))
|
Spacer(modifier = Modifier.size(16.dp))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user