https://kotlinlang.org logo
Title
g

Gordon

07/20/2022, 12:10 PM
Any alternative for IconButton for compose-desktop? The shadow and ripple are too big. And can't make it smaller ;(
t

Tobias Suchalla

07/21/2022, 8:56 AM
You actually can. Mobile requires a certain touch target size so one can actually hit the button but on desktop you can disable that:
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

Gordon

07/24/2022, 6:00 AM
For now i use TextButton, with font icons. Good enough for now.