Skip to content
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

[Reply] Contrast aware updates. #1284

Merged
merged 9 commits into from
Mar 28, 2024
Merged

[Reply] Contrast aware updates. #1284

merged 9 commits into from
Mar 28, 2024

Conversation

jwill
Copy link
Contributor

@jwill jwill commented Mar 14, 2024

Added colors for standard, medium, and high in both light and dark themes.
Added helper function to select contrast level based on values from SysUI controls.
Added more variance in application of surface container roles to better indicate elevation and emphasis.

Added colors for standard, medium, and high in both light and dark themes.
Added helper function to select contrast level based on values from SysUI controls.
Added more variance in application of surface container roles to better indicate elevation and emphasis.
@jwill jwill requested a review from IanGClifton March 14, 2024 23:44
@jwill jwill requested a review from a team as a code owner March 14, 2024 23:44
Copy link
Contributor

@IanGClifton IanGClifton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very minor feedback; I'm assuming all the colors are perfect and beautiful in every way

)
}
Spacer(modifier = Modifier.width(8.dp))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: This spacing is a combination of line 115 and line 129. I'd combine them to just do 12dp in one place, probably 115, but I don't have a strong preference whether it's that or a spacer with no horizontalArrangement

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

}

MaterialTheme(
colorScheme = replyColorScheme,
typography = replyTypography,
shapes = shapes,
typography = replyTypography, shapes = shapes,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Should still be separate lines

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

content = content
)
}

@Composable
fun ReplyTheme(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the ReplyTheme still used anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was being used in previews but I've replaced all those references and removed ReplyTheme. Done.

jwill and others added 4 commits March 27, 2024 10:01
Removed partially used theme and implemented code style suggestions.
Modified selectSchemeForContrast function to allow it to pass through on API versions without contrast support.
@jwill jwill merged commit 050a1b6 into main Mar 28, 2024
6 checks passed
@jwill jwill deleted the jwill/reply-contrast branch March 28, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants