HomePhorge

Improve remarkup codeblock syntax highlighting when using Dark Mode

Description

Improve remarkup codeblock syntax highlighting when using Dark Mode

Summary:
PhabricatorDefaultSyntaxStyle works now with 'CSS-color-aliases' instead of fixed colors.

The aliases are translated in the corresponding themes CelerityPostprocessor.

BeforeAfter
{F709419}{F709421}

Ref T15056

Test Plan:

  1. bin/celerity syntax
  2. bin/celerity map
  3. bin/cache purge --all
  4. sign in
  5. go to user's Settings > Display Preferences and select the Accessibility (user interface) "Dark Mode".
  6. go to Phriction or Maniphest and add a codeblock.

Example:

<?php
final class Example extends PhabricatorApplication {
}
  1. verify that codeblock content is readable
  2. also check that with/without this, nothing changes in "normal" theme

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15056

Differential Revision: https://we.phorge.it/D25509

Details

Provenance
Merula TurdusAuthored on Jan 9 2024, 1:44 PM
themackabuPushed on Tue, Mar 25, 8:07 PM
Parents
rPbf15a2d98ca3: Trigger: Add Sound "Coin"
Branches
Unknown
Tags
Unknown

Event Timeline