mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
change to the new pretty outline buttons
This commit is contained in:
parent
332aa3b633
commit
4360a8fa9a
1 changed files with 4 additions and 2 deletions
|
|
@ -7,7 +7,9 @@ import androidx.ui.core.Text
|
|||
import androidx.ui.foundation.Clickable
|
||||
import androidx.ui.foundation.DrawImage
|
||||
import androidx.ui.layout.*
|
||||
import androidx.ui.material.Button
|
||||
import androidx.ui.material.MaterialTheme
|
||||
import androidx.ui.material.OutlinedButton
|
||||
import androidx.ui.material.ripple.Ripple
|
||||
import androidx.ui.res.imageResource
|
||||
import androidx.ui.tooling.preview.Preview
|
||||
|
|
@ -41,13 +43,13 @@ fun ChannelContent(channel: Channel = Channel("Default", 7)) {
|
|||
}
|
||||
|
||||
Ripple(bounded = false) {
|
||||
Clickable(onClick = {
|
||||
OutlinedButton(modifier = LayoutGravity.Center + LayoutPadding(left = 24.dp),
|
||||
onClick = {
|
||||
GeeksvilleApplication.analytics.track("channel_share") // track how many times users share channels
|
||||
context.toast("Channel sharing is not yet implemented")
|
||||
}) {
|
||||
VectorImage(
|
||||
id = R.drawable.ic_twotone_share_24,
|
||||
modifier = LayoutGravity.Center + LayoutPadding(left = 8.dp),
|
||||
tint = palette.onBackground
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue