flarum / framework

Simple forum software for building great communities.
http://flarum.org/
6.27k stars 826 forks source link

Code blocks are hard to read in dark mode #3896

Open TraceyC77 opened 11 months ago

TraceyC77 commented 11 months ago

Current Behavior

When reading a post on Flarum in dark mode, code blocks are difficult to read.

Steps to Reproduce

Go to https://discuss.getsol.us/d/9761-firefox-glib-gobject-critical-errors-clutter-log Switch to dark mode.

Expected Behavior

Dark mode uses an appropriate style to make text readable in code blocks.

Screenshots

flarum_code_block_dark_mode

Environment

I don't have access to the Flarum server instance to answer the rest of the questions. Given that this is a theming issue, it seems unnecessary anyway.

Output of php flarum info

N/A

Possible Solution

No response

Additional Context

I found this reported on the Flarum forums here: https://discuss.flarum.org/d/30696-code-blocks-have-hard-to-read-colors-in-dark-mode

From the response, it sounded like it would be possible for Flarum to pass a different theme for dark mode vs. light mode. I searched this tracker but didn't see that an issue was ever opened for it.

Workarounds:

flarum_code_block_vivaldi

Spencer-Robertson-ANU commented 11 months ago

Hi there, I'd like to fix this, can I please be assigned? Thankyou

shivesh96 commented 10 months ago

Add Below code