Themes - Bonk.io

Recolors elements in Bonk.io to customizable colors, and allows toggling your theme with a hotkey

目前为 2021-12-28 提交的版本。查看 最新版本

作者
Excigma
评分
0 0 0
版本
0.1.23
创建于
2021-11-20
更新于
2021-12-28
大小
46.1 KB
许可证
GPL-3.0
适用于

Themes - Bonk.io

⚠️ Warning: Elements may have bad contrast, checkboxes and text may be unreadable or even invisible

⚠️ Warning: Please backup your themes. Updates to this script may break themes - it is still under development. Saving themes has not been extensively tested. Themes are saved to your browser's storage, NOT to your account

The aim of this is not to make EVERYTHING themed - some old checkboxes here and there are fine. The goal is to not have large windows that are bright white.

Thanks to Oo 0 oO, yakaki, Bunjalis, kklkkj and birdie_ for suggesting features and spending time to test and report bugs

Tired of getting blinded at 3am (we don't talk about this) whilst playing bonk.io? Same.

This theme script comes out of the box with a boring dark mode as a default - however, you can change all the colors, and there is also a light mode preset to get you started off.

Some similar looking colors have been grouped into one setting for the sake of simplicity, as such you CANNOT completely recreate the look of normal bonk's colors with this.

Toggle your theme with (Ctrl + Alt + D) or (Ctrl + Shift + D) - useful if there is unreadable text

  • Major white colored dialogs and popups have their background colors replaced using CSS.
  • The replay screen can be dimmed (it is by default)
  • You can change buttons' colors, and they can have an outline
  • Parts of the Map editor and Skin editor have been darkened, however the preview itself should not be touched by this
  • kklee theming support (thanks to kklkkj for hoisting the colors out into CSS variables)
  • (Optional) Change football mode's background color (Requires Code Injector to be installed). Changing football background color requires returning to the lobby and restarting the game for the color to change.

The code is very messy. I'm sorry.