darkmodelover's blog

By darkmodelover, history, 2 years ago, In English

Hi Codeforces Community, Can someone fix sigma_g's (so sorry for ping) Dark Theme for new codeforces test case feature? I tried changing and adding some things and so much if's but I couldn't do it.

My eyes hurt :(
  • Vote: I like it
  • +11
  • Vote: I do not like it

| Write comment?
»
2 years ago, # |
Rev. 3   Vote: I like it +8 Vote: I do not like it

try to migrate to dark reader extension on google, it works better

edit : initially it enables dark mode everywhere in chrome, but in settings you can specify that you want only dark mode on some specific websites (like codeforces.com)

»
2 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Here you go:

Add these two functions to usercript file:

code

It is a hack but it works

preview:

Preview: h

  • »
    »
    2 years ago, # ^ |
    Rev. 2   Vote: I like it +3 Vote: I do not like it

    (This is more of a personal choice but still)

    In fixTextInOddTestCasesInput(), redColorJustPassesA11Y is little painful. We can replace it with other shades of red.

    I have used Imperial Red (#ED2939). The difference is very subtle yet little less painful to eyes.

»
2 years ago, # |
  Vote: I like it +13 Vote: I do not like it

Hey all! Very sorry but I am not actively using CF anymore. I was notified of this issue on GitHub by two helpful community members last week (https://github.com/GaurangTandon/codeforces-darktheme/issues/46) and I had then immediately patched the issue. Please re-install the theme if you didn't get any update.

Thanks to everyone for using my dark theme for so long, and hopefully this fix will help you to continue using it for longer! :-)
If you ever face any issue, please notify me on my GitHub repository, and I will do my best to fix it asap.

Cheers!