Skip to content

Unofficial YouTube Music / Spotify Premium client for Android, built in Liquid Glass. Audio effects, Spotify Connect, listening history, 8 languages. Rust core on librespot.

Use the app's mark on the home page, not its launcher tile

Lelonio083ddd2543ee
diff --git a/app/src/main/java/dev/lelonio/square/ui/components/Wordmark.kt b/app/src/main/java/dev/lelonio/square/ui/components/Wordmark.kt
index 9191786..c39c0c6 100644
--- a/app/src/main/java/dev/lelonio/square/ui/components/Wordmark.kt
+++ b/app/src/main/java/dev/lelonio/square/ui/components/Wordmark.kt
@@ -2,6 +2,7 @@ package dev.lelonio.square.ui.components
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.Image
+import androidx.compose.material3.Icon
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
@@ -86,12 +87,33 @@ fun AppLockup(
nameHeight: Dp = 14.dp,
) {
Row(modifier, verticalAlignment = Alignment.CenterVertically) {
- AppIcon(iconSize)
+ AppGlyph(iconSize)
Spacer(Modifier.width(iconSize * 0.32f))
SquareWordmark(nameHeight)
}
}
+/**
+ * The app's mark with no plate under it.
+ *
+ * The launcher icon is a tile: artwork on a coloured square, because that is
+ * what a launcher draws. On a page of the app itself there is nothing for a
+ * tile to sit on — it reads as a sticker of the icon rather than as the app's
+ * own mark — so the header takes the wave alone, in the page's ink.
+ *
+ * The themed form is exactly that drawing without its plate, which is what it
+ * exists for, so this is the same artwork rather than a second copy of it.
+ */
+@Composable
+fun AppGlyph(size: Dp, modifier: Modifier = Modifier, tint: Color = Ink) {
+ Icon(
+ painter = painterResource(R.drawable.ic_launcher_monochrome),
+ contentDescription = null,
+ tint = tint,
+ modifier = modifier.size(size),
+ )
+}
+
@Composable
fun AppIcon(size: Dp, modifier: Modifier = Modifier) {
Image(