-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using muted federated names. #1368
Conversation
null | ||
} | ||
|
||
Text( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's the main change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks great!
} | ||
|
||
Text( | ||
text = buildAnnotatedString { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how expensive this is but i would encase this in a remember with the color and title as key
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could do that but I don't see why its necessary, since its state never changes within this composable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well it shouldn't if the composable is skippable. But I haven't checked yet that it is. Else it would recompose each time anyway even if the state didn't change
instanceColor: Color = MaterialTheme.colorScheme.onSurface.muted, | ||
instanceStyle: TextStyle = MaterialTheme.typography.labelSmall, | ||
) { | ||
val serverStr = if (!local) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not really fan of mixing ifs and their equivalents, But you can keep this if you want
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed it up.
I've done a little more tweaking, and updated the pictures. |
Main:
Comments: