File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/main/kotlin/com/w2sv/wifiwidget/ui/home/configuration Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ android {
1717 minSdk libs. versions. minSdk. get(). toInteger()
1818 targetSdk libs. versions. compileSdk. get(). toInteger()
1919
20- versionCode 9
21- versionName ' 1.1.5 '
20+ versionCode 10
21+ versionName ' 1.1.6 '
2222
2323 setProperty(' archivesBaseName' , versionName) // Stores built aab's as "{versionName}-{buildFlavor}.apk"
2424 testInstrumentationRunner ' androidx.test.runner.AndroidJUnitRunner'
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ import androidx.compose.ui.unit.sp
3737import com.w2sv.wifiwidget.R
3838import com.w2sv.wifiwidget.ui.JostText
3939import com.w2sv.wifiwidget.ui.WifiWidgetTheme
40+ import kotlin.math.roundToInt
4041
4142@Composable
4243internal fun ConfigurationColumn (
@@ -64,14 +65,15 @@ internal fun ConfigurationColumn(
6465
6566 SubHeader (stringResource(R .string.background_opacity), Modifier .padding(vertical = 22 .dp))
6667 JostText (
67- text = " ${(opacity() * 100 ).toInt ()} %" ,
68+ text = " ${(opacity() * 100 ).roundToInt ()} %" ,
6869 color = MaterialTheme .colorScheme.onSurface,
6970 modifier = Modifier .align(Alignment .CenterHorizontally )
7071 )
7172 Slider (
7273 value = opacity(),
7374 onValueChange = onOpacityChanged,
74- modifier = Modifier .padding(horizontal = 32 .dp)
75+ modifier = Modifier .padding(horizontal = 32 .dp),
76+ steps = 9
7577 )
7678
7779 SubHeader (stringResource(R .string.displayed_properties), Modifier .padding(vertical = 22 .dp))
You can’t perform that action at this time.
0 commit comments