Skip to content

Commit

Permalink
give a smidge extra vertical padding to the app bar
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanLobbenmeier committed Jan 10, 2025
1 parent fee64f6 commit ec7c504
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.aspectRatio
import androidx.compose.foundation.layout.fillMaxHeight
Expand Down Expand Up @@ -46,7 +47,10 @@ fun Header(onDownload: (url: String) -> Unit, onSettingsButtonClicked: () -> Uni
}
}

TopAppBar(backgroundColor = MaterialTheme.colors.surface) {
TopAppBar(
backgroundColor = MaterialTheme.colors.surface,
contentPadding = PaddingValues(horizontal = 4.dp, vertical = 8.dp),
) {
Row(
modifier =
Modifier.border(1.dp, MaterialTheme.colors.onSurface, RoundedCornerShape(4.dp))
Expand Down

0 comments on commit ec7c504

Please sign in to comment.