@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator

Improve remarkup codeblock syntax highlighting when using Dark Mode master

Summary: PhabricatorDefaultSyntaxStyle works now with 'CSS-color-aliases' instead of fixed colors. The aliases are translated in the corresponding themes CelerityPostprocessor. | Before | After | |-----------|-----------| | {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: ``` lang=php <?php final class Example extends PhabricatorApplication { } ``` 7) verify that codeblock content is readable 8) 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


+350 -130
5 changed files