mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-06-05 21:59:19 +02:00
Move "SOS" to strings
This commit is contained in:
@ -138,7 +138,7 @@ internal fun MainScreen(
|
|||||||
interactionSource = rememberMutableInteractionSource(),
|
interactionSource = rememberMutableInteractionSource(),
|
||||||
onClick = onSosButtonPress
|
onClick = onSosButtonPress
|
||||||
),
|
),
|
||||||
text = "SOS",
|
text = stringResource(id = R.string.sos),
|
||||||
fontSize = TextUnit(dimensionResource(id = R.dimen.sos_text_size).value, TextUnitType.Sp),
|
fontSize = TextUnit(dimensionResource(id = R.dimen.sos_text_size).value, TextUnitType.Sp),
|
||||||
fontWeight = FontWeight.Bold,
|
fontWeight = FontWeight.Bold,
|
||||||
color = if (sosActive) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onSurface
|
color = if (sosActive) MaterialTheme.colorScheme.primary else MaterialTheme.colorScheme.onSurface
|
||||||
|
@ -2,4 +2,6 @@
|
|||||||
<resources>
|
<resources>
|
||||||
<string name="package_name">com.simplemobiletools.flashlight</string>
|
<string name="package_name">com.simplemobiletools.flashlight</string>
|
||||||
|
|
||||||
|
<string name="sos">SOS</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Reference in New Issue
Block a user