mirror of
https://github.com/kvorschk/Magisk.git
synced 2026-12-04 19:10:47 -05:00
app: normalize TopAppBar insets across screens
Compose Material 3 TopAppBar already applies standard insets internally for navigation and action icons. Remove redundant manual start/end paddings across detail and main screens to ensure icons align flush with the standard 16dp content margin. Assisted-by: Gemini 3.8 Flash
This commit is contained in:
@@ -94,7 +94,6 @@ fun DenyListScreen(
|
||||
title = { Text(stringResource(CoreR.string.denylist)) },
|
||||
navigationIcon = {
|
||||
IconButton(
|
||||
modifier = Modifier.padding(start = 16.dp),
|
||||
onClick = onBack
|
||||
) {
|
||||
Icon(
|
||||
@@ -150,7 +149,6 @@ fun DenyListScreen(
|
||||
|
||||
Box {
|
||||
IconButton(
|
||||
modifier = Modifier.padding(end = 16.dp),
|
||||
onClick = { showFilterMenu = true },
|
||||
) {
|
||||
Icon(
|
||||
|
||||
@@ -66,7 +66,6 @@ fun FlashScreen(
|
||||
title = { Text("${stringResource(CoreR.string.flash_screen_title)} - $statusText") },
|
||||
navigationIcon = {
|
||||
IconButton(
|
||||
modifier = Modifier.padding(start = 16.dp),
|
||||
onClick = onBack
|
||||
) {
|
||||
Icon(
|
||||
@@ -78,7 +77,6 @@ fun FlashScreen(
|
||||
actions = {
|
||||
if (finished) {
|
||||
IconButton(
|
||||
modifier = Modifier.padding(end = 4.dp),
|
||||
onClick = saveLog
|
||||
) {
|
||||
Icon(
|
||||
@@ -89,7 +87,6 @@ fun FlashScreen(
|
||||
}
|
||||
if (flashState == FlashViewModel.State.SUCCESS && showReboot) {
|
||||
IconButton(
|
||||
modifier = Modifier.padding(end = 16.dp),
|
||||
onClick = { viewModel.restartPressed() }
|
||||
) {
|
||||
Icon(
|
||||
|
||||
@@ -349,7 +349,6 @@ private fun RebootButton(
|
||||
|
||||
Box(modifier = modifier) {
|
||||
IconButton(
|
||||
modifier = Modifier.padding(end = 16.dp),
|
||||
onClick = { showMenu = true },
|
||||
) {
|
||||
Icon(
|
||||
|
||||
@@ -114,7 +114,6 @@ fun LogScreen(
|
||||
}
|
||||
}
|
||||
IconButton(
|
||||
modifier = Modifier.padding(end = 16.dp),
|
||||
onClick = {
|
||||
if (pagerState.currentPage == 0) viewModel.clearLog()
|
||||
else viewModel.clearMagiskLog()
|
||||
|
||||
@@ -45,7 +45,6 @@ fun ActionScreen(
|
||||
title = { Text(actionName) },
|
||||
navigationIcon = {
|
||||
IconButton(
|
||||
modifier = Modifier.padding(start = 16.dp),
|
||||
onClick = onBack
|
||||
) {
|
||||
Icon(
|
||||
@@ -57,7 +56,6 @@ fun ActionScreen(
|
||||
actions = {
|
||||
if (finished) {
|
||||
IconButton(
|
||||
modifier = Modifier.padding(end = 16.dp),
|
||||
onClick = saveLog
|
||||
) {
|
||||
Icon(
|
||||
|
||||
@@ -88,7 +88,6 @@ fun SuperuserDetailScreen(
|
||||
title = { Text(stringResource(CoreR.string.settings)) },
|
||||
navigationIcon = {
|
||||
IconButton(
|
||||
modifier = Modifier.padding(start = 16.dp),
|
||||
onClick = onBack
|
||||
) {
|
||||
Icon(
|
||||
|
||||
Reference in New Issue
Block a user