Page 1 of 1

hecking Dark mode with black background on new themes

Posted: 07 September 2023, 00:28
by mrbass
Anyone able to hack Tichu css for black background? The new themes are great but none are for dark mode unfortunately. Eye killers.

This is the original code that used to work

Code: Select all

.bgagame-tichu .whiteblock {
  background: #2c2c2c;
}
.bgagame-tichu .whiteblock.lastComboPlayer {
  background-color: rgba(255, 255, 0, 0.5);
}
I know it's the --bg-color-play-area but not sure how to specify for theme0

Code: Select all

.bgagame-tichu .theme0, html.theme0 {
--bg-color-play-area:#242424;
}

Re: hecking Dark mode with black background on new themes

Posted: 15 September 2023, 11:24
by dashwood314
You can try this:

Code: Select all

.theme0,html.theme0 {
--bg-color-html:#000;
--bg-color-play-area:#333;
--bg-color-lighter:#666;
}
Also, once you are satisfied with a dark color theme, let me know. I can then make them one of the official themes.

FWIW, I did not yet look deeper into dark mode, because I thought that I would then also have to change the color of the fonts, which is a bit more tricky to get right in all places. But if you are happy with the font colors and just need some darker backgrounds, then the above should work fine.