mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 15:29:15 +01:00
nudge the playlists tab glyph so it reads the same size as the neighbours
The PlaylistPlay glyph sits smaller and left in its viewport; scale it up slightly and shift it right, like the download glyph's vertical nudge.
This commit is contained in:
@@ -86,6 +86,7 @@ import androidx.compose.ui.graphics.Path
|
|||||||
import androidx.compose.ui.graphics.StrokeCap
|
import androidx.compose.ui.graphics.StrokeCap
|
||||||
import androidx.compose.ui.graphics.drawscope.clipPath
|
import androidx.compose.ui.graphics.drawscope.clipPath
|
||||||
import androidx.compose.ui.graphics.drawscope.clipRect
|
import androidx.compose.ui.graphics.drawscope.clipRect
|
||||||
|
import androidx.compose.ui.graphics.graphicsLayer
|
||||||
import androidx.compose.ui.graphics.vector.ImageVector
|
import androidx.compose.ui.graphics.vector.ImageVector
|
||||||
import androidx.compose.ui.layout.boundsInParent
|
import androidx.compose.ui.layout.boundsInParent
|
||||||
import androidx.compose.ui.layout.layout
|
import androidx.compose.ui.layout.layout
|
||||||
@@ -880,7 +881,14 @@ private fun TabContent(
|
|||||||
imageVector = tab.icon,
|
imageVector = tab.icon,
|
||||||
contentDescription = tab.label,
|
contentDescription = tab.label,
|
||||||
tint = color,
|
tint = color,
|
||||||
modifier = Modifier.size(TAB_ICON_SIZE),
|
modifier =
|
||||||
|
Modifier.size(TAB_ICON_SIZE).graphicsLayer {
|
||||||
|
if (tab == LibraryTab.Playlists) {
|
||||||
|
scaleX = 1.12f
|
||||||
|
scaleY = 1.12f
|
||||||
|
translationX = 1.5.dp.toPx()
|
||||||
|
}
|
||||||
|
},
|
||||||
)
|
)
|
||||||
Box(
|
Box(
|
||||||
modifier =
|
modifier =
|
||||||
|
|||||||
Reference in New Issue
Block a user