Skip to content

Make Clock Background Reflect Player Side when Active#2665

Open
r3econ wants to merge 4 commits into
lichess-org:mainfrom
r3econ:black-white-clock-colors
Open

Make Clock Background Reflect Player Side when Active#2665
r3econ wants to merge 4 commits into
lichess-org:mainfrom
r3econ:black-white-clock-colors

Conversation

@r3econ

@r3econ r3econ commented Feb 21, 2026

Copy link
Copy Markdown
Contributor

Closes #822 - by @ijm8710

What

When it's your turn, the active clock background now reflects the side you're playing: white background for the white clock, black background for the black clock. A grey border is added to maintain contrast against both light and dark app themes.

UI/UX is often a matter of taste. I myself am not sure if this is an improvement. I am curious what the others think 🤔

Behaviour

  • Side colour only applies when the clock is active (your turn)
  • Emergency colour always takes priority over the side colour
  • No change to inactive clock appearance

Demo

Light Mode

w.mov

Dark Mode

b.mov

@ijm8710

ijm8710 commented Feb 22, 2026

Copy link
Copy Markdown

I love it! May not be for everyone but if you have the option to set clock on right/left I think a lot of people would love the ability to enable this even if it's not the default

@r3econ

r3econ commented Feb 22, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback. I will proceed with making that a setting similar to Clock position and report back 🤖

image

@r3econ r3econ marked this pull request as draft February 22, 2026 09:47
@veloce

veloce commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

I'd like not to have too many settings. A settings for that one is way overkill imo. Either the clocks are better like that and we switch, or we keep the old ones.

A before/after video comparison would help here :)

Also the new clock style must fit well with all the background themes the app supports.

@ijm8710

ijm8710 commented Apr 11, 2026

Copy link
Copy Markdown

I'd like not to have too many settings. A settings for that one is way overkill imo. Either the clocks are better like that and we switch, or we keep the old ones.

A before/after video comparison would help here :)

Also the new clock style must fit well with all the background themes the app supports.

Not as beautifully formatted as the way recon makes his video demos but the only significant difference is when it's black turn it inverts it. So formerly white-attention was used regardless of if it was black or whites turn but now it gives a more black or white feel.

To me this is especially helpful when spectating a game that's in the endgame where it's not super easy to see who is black and who is white.

As recon implied, should be no theming issue as white text was already used for player names. And the black color is given a white perimeter.

Top row: black (old vs new)
Bottom row: white (old vs new)

image

…ite-clock-colors

# Conflicts:
#	lib/src/view/game/game_body.dart
#	lib/src/widgets/clock.dart
@r3econ r3econ marked this pull request as ready for review April 11, 2026 16:23
@r3econ

r3econ commented Apr 11, 2026

Copy link
Copy Markdown
Contributor Author

@ijm8710 thanks for testing it, it looks very nice 🥇 I resolved the conflicts and reopened the PR 🙂

@veloce

veloce commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

Still not sure about this (not sure this is an improvement). Will need to test that with the custom backgrounds too. I'll review and test after the next release.

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.

Feature request: your clock turning white/black depending on side is a nice touch

3 participants