mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 15:29:15 +01:00
line up the tab bar at 8dp, put the gear beside the tabs with a divider
This commit is contained in:
@@ -689,7 +689,7 @@ private fun LibraryTabs(
|
|||||||
Modifier
|
Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.background(headerColor)
|
.background(headerColor)
|
||||||
.padding(6.dp),
|
.padding(8.dp),
|
||||||
) {
|
) {
|
||||||
Box(
|
Box(
|
||||||
modifier =
|
modifier =
|
||||||
@@ -728,18 +728,31 @@ private fun LibraryTabs(
|
|||||||
},
|
},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
Spacer(Modifier.weight(1f))
|
Box(
|
||||||
|
Modifier
|
||||||
|
.width(1.dp)
|
||||||
|
.height(24.dp)
|
||||||
|
.background(MaterialTheme.colorScheme.onBackground.copy(alpha = 0.2f)),
|
||||||
|
)
|
||||||
if (syncing) {
|
if (syncing) {
|
||||||
CircularProgressIndicator(
|
CircularProgressIndicator(
|
||||||
modifier = Modifier.padding(end = 4.dp).size(20.dp),
|
modifier = Modifier.padding(end = 4.dp).size(20.dp),
|
||||||
strokeWidth = 2.dp,
|
strokeWidth = 2.dp,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
IconButton(onClick = onOpenSettings) {
|
Box(
|
||||||
|
modifier =
|
||||||
|
Modifier
|
||||||
|
.size(36.dp)
|
||||||
|
.clip(CircleShape)
|
||||||
|
.clickable(onClick = onOpenSettings),
|
||||||
|
contentAlignment = Alignment.Center,
|
||||||
|
) {
|
||||||
Icon(
|
Icon(
|
||||||
imageVector = Icons.Rounded.Settings,
|
imageVector = Icons.Rounded.Settings,
|
||||||
contentDescription = "Settings",
|
contentDescription = "Settings",
|
||||||
tint = MaterialTheme.colorScheme.onBackground,
|
tint = MaterialTheme.colorScheme.onBackground,
|
||||||
|
modifier = Modifier.size(24.dp),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user