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

Fixed surface container color #1069

Merged
merged 4 commits into from
Oct 14, 2024

Conversation

ArnyminerZ
Copy link
Member

Purpose

Surface container color was light in dark theme.

Short description

Replaced the color with a dark one.

Checklist

  • The PR has a proper title, description and label.
  • I have self-reviewed the PR.
  • I have added documentation to complex functions and functions that can be used by other modules.
  • I have added reasonable tests or consciously decided to not add tests.

Signed-off-by: Arnau Mora Gras <arnyminerz@proton.me>
@ArnyminerZ ArnyminerZ added the bug Something isn't working label Oct 13, 2024
@ArnyminerZ ArnyminerZ self-assigned this Oct 13, 2024
@ArnyminerZ ArnyminerZ linked an issue Oct 13, 2024 that may be closed by this pull request
@ArnyminerZ ArnyminerZ marked this pull request as ready for review October 13, 2024 11:04
@ArnyminerZ ArnyminerZ requested a review from rfc2822 October 13, 2024 11:04
@rfc2822
Copy link
Member

rfc2822 commented Oct 13, 2024

@devvv4ever Did you say there is a theming problem in the light theme, too?

@devvv4ever
Copy link
Member

yes, I think so. Something is looking different, like that there would too less contrast between bg and cards or so. can you make ss in emulator from 4.3.2 and 4.3.3 and compare?

@ArnyminerZ
Copy link
Member Author

Yup, they are different.

master

latest

4.4.2

4 4 2

@rfc2822
Copy link
Member

rfc2822 commented Oct 13, 2024

Maybe because of the latest Compose update?

Since 4.4.2, we updated from

compose-bom = "2024.06.00"

to

compose-bom = "2024.09.03"

@rfc2822
Copy link
Member

rfc2822 commented Oct 13, 2024

So the question is: What do we have to do to get the contrast back?

@ArnyminerZ
Copy link
Member Author

Maybe because of the latest Compose update?

BOM 2024.06.00 is using M3 1.2.1, and 2024.09.03 M3 1.3.0.

There's only one version change between them (changelog), and they have this "DropdownMenu now supports custom color, shape, elevation, and border". So probably the change comes from there.

@rfc2822
Copy link
Member

rfc2822 commented Oct 13, 2024

Or because of

SurfaceContainer variants are now used by components. Components which formally calculated color with Surface and TonalElevation now use SurfaceContainer roles by default, which are not affected by tonal elevation. (b/304584161)

Surface and Surface container baseline roles have been slightly adjusted, providing more tint in light and dark themes. (I677a5)

@ArnyminerZ
Copy link
Member Author

That could also be the case. Then the question is whether we want to force the old "tinted" color, or use the new one.

@rfc2822
Copy link
Member

rfc2822 commented Oct 13, 2024

That could also be the case. Then the question is whether we want to force the old "tinted" color, or use the new one.

I think just the contrast for the Cards should be better, right @devvv4ever ? Or are there other things that you have noticed? We should scan through the whole app and see if there are problems with contrast.

And of course everything for light + dark mode I guess.

@rfc2822 rfc2822 added the need info Further information needed to continue label Oct 13, 2024
@rfc2822
Copy link
Member

rfc2822 commented Oct 14, 2024

Should be fine now.

@rfc2822 rfc2822 requested review from sunkup and removed request for rfc2822 October 14, 2024 11:24
@rfc2822 rfc2822 removed the need info Further information needed to continue label Oct 14, 2024
@rfc2822 rfc2822 self-assigned this Oct 14, 2024
Copy link
Member

@sunkup sunkup left a comment

Choose a reason for hiding this comment

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

Good. Now it works again 👍

@rfc2822 rfc2822 merged commit a0d152a into main-ose Oct 14, 2024
8 checks passed
@rfc2822 rfc2822 deleted the 1066-action-menu-unreadable-in-dark-mode branch October 14, 2024 13:03
@rfc2822 rfc2822 changed the title Fixed surface container color in dark theme Fixed surface container color Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Colors became ugly/unusable with Compose update
4 participants