Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add background color to code block in dark mode preview #1518

Merged
merged 1 commit into from
Mar 22, 2023

Conversation

mrpolanco
Copy link
Contributor

Fix

This PR fixes #1372

When using dark mode, the preview note option on the web app shows a dark color scheme for code blocks. The same does not happen when previewing the note from the iOS app. This fix adds a background color to dark mode that matches the same color as found on the web app (#002b36).

Simplenote-web-app

Test

  1. Change the theme to Dark
  2. Add code block to note
  3. Choose to preview the note

Simplenote-code-block

Review

Only one developer and one designer are required to review these changes, but anyone can perform the review.

Release

These changes do not require release notes.

Observation

This addresses the code block background color not matching the web app (#002b36).

To add a color scheme similar to that of the web app, it may be worth adding syntax highlighting to the app's roadmap, if not already done so.

@mrpolanco mrpolanco added bug Something isn't working. [feature] preview Anything related to previewing notes. labels Mar 10, 2023
@jleandroperez jleandroperez self-requested a review March 22, 2023 14:00
Copy link
Contributor

@jleandroperez jleandroperez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @mrpolanco, nice fix!!

:shipit:

@jleandroperez jleandroperez merged commit cb7ceed into trunk Mar 22, 2023
@jleandroperez jleandroperez deleted the issue/dark_mode_code_block_preview_background branch March 22, 2023 14:00
@mokagio mokagio added this to the 4.49 milestone Apr 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. [feature] preview Anything related to previewing notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dark Mode: code block is not dark in note preview
3 participants