android: alert round corners (#5299)

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
This commit is contained in:
Stanislav Dmitrenko
2024-12-02 23:33:22 +07:00
committed by GitHub
parent 665501026d
commit a588e7003d

View File

@@ -10,6 +10,8 @@ import android.os.*
import android.os.SystemClock
import android.provider.Settings
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CornerSize
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
@@ -462,7 +464,8 @@ class SimplexService: Service() {
},
confirmButton = {
TextButton(onClick = AlertManager.shared::hideAlert) { Text(stringResource(MR.strings.ok)) }
}
},
shape = RoundedCornerShape(corner = CornerSize(25.dp))
)
}
@@ -510,7 +513,8 @@ class SimplexService: Service() {
},
confirmButton = {
TextButton(onClick = ignoreOptimization) { Text(stringResource(MR.strings.turn_off_battery_optimization_button)) }
}
},
shape = RoundedCornerShape(corner = CornerSize(25.dp))
)
}
@@ -552,7 +556,8 @@ class SimplexService: Service() {
},
confirmButton = {
TextButton(onClick = unrestrict) { Text(stringResource(MR.strings.turn_off_system_restriction_button)) }
}
},
shape = RoundedCornerShape(corner = CornerSize(25.dp))
)
}
@@ -579,7 +584,8 @@ class SimplexService: Service() {
},
confirmButton = {
TextButton(onClick = unrestrict) { Text(stringResource(MR.strings.turn_off_system_restriction_button)) }
}
},
shape = RoundedCornerShape(corner = CornerSize(25.dp))
)
val scope = rememberCoroutineScope()
DisposableEffect(Unit) {
@@ -623,7 +629,8 @@ class SimplexService: Service() {
},
confirmButton = {
TextButton(onClick = AlertManager.shared::hideAlert) { Text(stringResource(MR.strings.ok)) }
}
},
shape = RoundedCornerShape(corner = CornerSize(25.dp))
)
}