Icons
Iconsanimated
Settings
Two meshed gears turning in opposite directions — a richer take on the settings cog.
Installation
caveui components are copy-paste Jetpack Compose built entirely on Material 3 — there's no caveui dependency to add. Make sure Material 3 is on your classpath (it ships with the Compose BOM), then copy the Usage snippet below into your project.
kotlin
// build.gradle.kts (module)
dependencies {
implementation(platform("androidx.compose:compose-bom:2025.06.00"))
implementation("androidx.compose.material3:material3")
}Usage
kotlin
@Composable
fun MeshedGears() {
val t = rememberInfiniteTransition(label = "gears")
val a by t.animateFloat(0f, 360f, infiniteRepeatable(tween(4000, easing = LinearEasing)), label = "a")
val b by t.animateFloat(0f, -360f, infiniteRepeatable(tween(4000, easing = LinearEasing)), label = "b")
val color = LocalContentColor.current
Box(Modifier.size(40.dp)) {
Icon(Icons.Filled.Settings, null, tint = color, modifier = Modifier.size(26.dp).align(Alignment.TopStart).graphicsLayer { rotationZ = a })
Icon(Icons.Filled.Settings, null, tint = color.copy(alpha = 0.7f), modifier = Modifier.size(18.dp).align(Alignment.BottomEnd).graphicsLayer { rotationZ = b })
}
}