Skip to content

Add an optional dark mode for embedded problem pages and submission pages #34

Description

@tanmaythegreat

I would like to suggest a feature that could make solving problems more comfortable during long coding sessions.

Motivation

I primarily use dark themes throughout my IDE and browser. While LeetCode remembers my account preference and opens in dark mode, Codeforces does not currently provide a built-in dark mode. In my regular browser, I use an extension to apply a dark theme.

However, when problem or submission pages are opened inside the plugin, I do not have access to those browser extensions, so the pages are displayed in the default light theme.

Proposed Improvement

It would be great to have a Dark Mode toggle in the plugin's settings that controls the appearance of embedded web pages.
Some possible approaches could be:
> Codeforces: Inject a custom CSS stylesheet (or apply a dark theme) to the embedded page.
> LeetCode: Respect the plugin's dark mode setting by switching the site's appearance accordingly, if possible, using the user's preferences or the site's supported theme mechanism.

The exact implementation is, of course, up to you. The main goal is to have a consistent dark appearance across all embedded competitive programming platforms.

Benefits

  Consistent appearance with the IDE's dark theme.
  Reduced eye strain during long programming sessions.
  A more uniform experience across different competitive programming platforms.

I understand that this may be challenging depending on how the embedded browser works and what each platform allows. Nevertheless, I wanted to suggest it as an optional feature that many users who prefer dark themes might appreciate.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions