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

Some material 3 cleanups. #1614

Merged
merged 2 commits into from
Aug 9, 2024
Merged

Some material 3 cleanups. #1614

merged 2 commits into from
Aug 9, 2024

Conversation

dessalines
Copy link
Member

Example:

Screenshot_2024-08-06-15-10-57-43_c9298fda48802cf3e2d17cb10a48759f

- Adding a fade to the post body preview.
- Getting rid of muted, using colorScheme.outlined instead.
- Making label-type text use label rather than body style.
- Getting rid of some unecessary surface and onSurface colors.
- Fixes #1608
@dessalines dessalines requested a review from MV-GH as a code owner August 6, 2024 19:32
@@ -474,7 +474,7 @@ fun communityNameShown(community: Community): String =

fun hostName(url: String): String? =
try {
URL(url).host
Copy link
Collaborator

Choose a reason for hiding this comment

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

Whats this for?

Copy link
Member Author

@dessalines dessalines Aug 7, 2024

Choose a reason for hiding this comment

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

Its to show the hostname of the site for any posts with links / ones that have a URL. IE that washingtonpost.com in the screenshot above.

The only thing changed here is to remove the www., which a lot of links have and wasted screen space.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Create a different function for that. And only use for the "Shown" purposes. But right now it is also used functionality wise to compare between hosts.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@dessalines dessalines requested a review from MV-GH August 9, 2024 15:49
@dessalines dessalines merged commit e50df88 into main Aug 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix material 3 colors to be more standard, stop using onSurface for everything.
2 participants