Skip to content

Conversation

@cioccarellia
Copy link
Contributor

In the game UI, when a draw happens between two players, the rating difference is zero.
The game colors the rating diff text with red, but that is inconsistent w.r.t. the home game list, where draw results are shown in yellow.
A more consistent color approach would be to have the zero rating delta in yellow (so that it more accurately represents the rating difference).

@veloce
Copy link
Contributor

veloce commented Jan 28, 2025

Your code is not formatted properly, which is why the tests are failing. You can use dart format to format the code, or better, setup your editor to do it, thanks.

@cioccarellia
Copy link
Contributor Author

I tried running dart format on the file but it looks like maybe the formatter I used has different settings w.r.t. the one in the pipeline (sorry for the trouble, I'm not really familiar with dart/flutter)

@veloce
Copy link
Contributor

veloce commented Jan 29, 2025

The formatter is configured for the project here:

formatter:

Your formatter normally would automatically pick these settings. Or if you run dart format from the project root.

@ItsDang
Copy link
Contributor

ItsDang commented Feb 27, 2025

Hey @cioccarellia, I formatted the code change and updated context. I tested #1497 and added the pull request #1 to your repository. @veloce just a general question, is there a reason/difference behind using context.lichessColors vs LichessColors? AFAIK there is no difference?

@veloce
Copy link
Contributor

veloce commented Mar 3, 2025

is there a reason/difference behind using context.lichessColors vs LichessColors? AFAIK there is no difference?

yes because in context.lichessColors, colors are harmonised with the current color scheme.

Copy link
Contributor

@veloce veloce left a comment

Choose a reason for hiding this comment

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

This should use context.lichessColors and not directly LichessColors. Cf. other comment in the PR.

@ItsDang
Copy link
Contributor

ItsDang commented Mar 3, 2025

@cioccarellia I added a pull request on your repo, reverting the context change. @veloce I appreciate the clarification! I will make sure not to include changes I don't understand in the future.

@veloce veloce merged commit f814973 into lichess-org:main Mar 12, 2025
1 check 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.

3 participants