do most of the steps to upgrade to compose dev08

This commit is contained in:
geeksville 2020-04-05 22:17:40 -07:00
parent f0492d3ee4
commit d11cf34b3f
13 changed files with 27 additions and 31 deletions

View file

@ -1,7 +1,7 @@
package com.geeksville.mesh.ui
import androidx.compose.Composable
import androidx.ui.core.Text
import androidx.ui.foundation.Text
import androidx.ui.layout.*
import androidx.ui.material.MaterialTheme
import androidx.ui.material.ProvideEmphasis
@ -46,10 +46,10 @@ fun CompassHeading(modifier: Modifier1 = Modifier1.None, node: NodeInfo) {
@Composable
fun NodeHeading(node: NodeInfo) {
ProvideEmphasis(emphasis = MaterialTheme.emphasisLevels().high) {
ProvideEmphasis(emphasis = MaterialTheme.emphasisLevels.high) {
Text(
node.user?.longName ?: "unknown",
style = MaterialTheme.typography().subtitle1
style = MaterialTheme.typography.subtitle1
//modifier = LayoutWidth.Fill
)
}