Any alternative for IconButton for compose-desktop...
# compose-desktop
g
Any alternative for IconButton for compose-desktop? The shadow and ripple are too big. And can't make it smaller ;(
t
You actually can. Mobile requires a certain touch target size so one can actually hit the button but on desktop you can disable that:
Copy code
CompositionLocalProvider(LocalMinimumTouchTargetEnforcement provides false) {
    IconButton(Modifier.size(...))
}
I should have read your question more thoroughly... My advise only applies to the actual IconButton size, not its shadow or ripple... (though those are of course affected by the overall size).
g
For now i use TextButton, with font icons. Good enough for now.