mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-04-30 05:54:26 +02:00
fix: Offset badge
This commit is contained in:
parent
818dc09aa4
commit
2aef67872d
@ -171,11 +171,7 @@ fun DashboardScreen(
|
|||||||
) {
|
) {
|
||||||
BadgedBox(
|
BadgedBox(
|
||||||
badge = {
|
badge = {
|
||||||
Badge(
|
Badge(modifier = Modifier.size(6.dp))
|
||||||
// A size value above 6.dp forces the Badge icon to be closer to the center, fixing a clipping issue
|
|
||||||
modifier = Modifier.size(7.dp),
|
|
||||||
containerColor = MaterialTheme.colorScheme.primary,
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
Icon(Icons.Outlined.Update, stringResource(R.string.update))
|
Icon(Icons.Outlined.Update, stringResource(R.string.update))
|
||||||
@ -238,7 +234,9 @@ fun DashboardScreen(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val showBatteryOptimizationsWarning by vm.showBatteryOptimizationsWarningFlow.collectAsStateWithLifecycle(false)
|
val showBatteryOptimizationsWarning by vm.showBatteryOptimizationsWarningFlow.collectAsStateWithLifecycle(
|
||||||
|
false
|
||||||
|
)
|
||||||
Notifications(
|
Notifications(
|
||||||
if (!Aapt.supportsDevice()) {
|
if (!Aapt.supportsDevice()) {
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user