@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
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make the "NOTE:" text bold and slightly darker

Summary: See screenshot. This does look like an improvement to me.

Test Plan: {F133255}

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley, chad

Differential Revision: https://secure.phabricator.com/D8597

+67 -3
+3 -3
resources/celerity/map.php
··· 7 7 return array( 8 8 'names' => 9 9 array( 10 - 'core.pkg.css' => '4877abce', 10 + 'core.pkg.css' => '5e574aa1', 11 11 'core.pkg.js' => '264721e1', 12 12 'darkconsole.pkg.js' => 'ca8671ce', 13 13 'differential.pkg.css' => 'cb97e095', ··· 111 111 'rsrc/css/application/tokens/tokens.css' => 'fb286311', 112 112 'rsrc/css/application/uiexample/example.css' => '4741b891', 113 113 'rsrc/css/core/core.css' => 'da26ddb2', 114 - 'rsrc/css/core/remarkup.css' => 'b4407c57', 114 + 'rsrc/css/core/remarkup.css' => '0923dbd6', 115 115 'rsrc/css/core/syntax.css' => '3c18c1cb', 116 116 'rsrc/css/core/z-index.css' => '0fd29d49', 117 117 'rsrc/css/diviner/diviner-shared.css' => '38813222', ··· 707 707 'phabricator-prefab' => '0326e5d0', 708 708 'phabricator-profile-css' => '9bdb9804', 709 709 'phabricator-project-tag-css' => '095c9404', 710 - 'phabricator-remarkup-css' => 'b4407c57', 710 + 'phabricator-remarkup-css' => '0923dbd6', 711 711 'phabricator-search-results-css' => 'f240504c', 712 712 'phabricator-settings-css' => 'ea8f5915', 713 713 'phabricator-shaped-request' => 'dfa181a4',
+2
src/__phutil_library_map__.php
··· 1890 1890 'PhabricatorRemarkupControl' => 'view/form/control/PhabricatorRemarkupControl.php', 1891 1891 'PhabricatorRemarkupCustomBlockRule' => 'infrastructure/markup/rule/PhabricatorRemarkupCustomBlockRule.php', 1892 1892 'PhabricatorRemarkupCustomInlineRule' => 'infrastructure/markup/rule/PhabricatorRemarkupCustomInlineRule.php', 1893 + 'PhabricatorRemarkupExample' => 'applications/uiexample/examples/PhabricatorRemarkupExample.php', 1893 1894 'PhabricatorRemarkupRuleEmbedFile' => 'applications/files/remarkup/PhabricatorRemarkupRuleEmbedFile.php', 1894 1895 'PhabricatorRemarkupRuleImageMacro' => 'applications/macro/remarkup/PhabricatorRemarkupRuleImageMacro.php', 1895 1896 'PhabricatorRemarkupRuleMeme' => 'applications/macro/remarkup/PhabricatorRemarkupRuleMeme.php', ··· 4682 4683 'PhabricatorRemarkupControl' => 'AphrontFormTextAreaControl', 4683 4684 'PhabricatorRemarkupCustomBlockRule' => 'PhutilRemarkupEngineBlockRule', 4684 4685 'PhabricatorRemarkupCustomInlineRule' => 'PhutilRemarkupRule', 4686 + 'PhabricatorRemarkupExample' => 'PhabricatorUIExample', 4685 4687 'PhabricatorRemarkupRuleEmbedFile' => 'PhabricatorRemarkupRuleObject', 4686 4688 'PhabricatorRemarkupRuleImageMacro' => 'PhutilRemarkupRule', 4687 4689 'PhabricatorRemarkupRuleMeme' => 'PhutilRemarkupRule',
+57
src/applications/uiexample/examples/PhabricatorRemarkupExample.php
··· 1 + <?php 2 + 3 + final class PhabricatorRemarkupExample extends PhabricatorUIExample { 4 + 5 + public function getName() { 6 + return pht('Remarkup'); 7 + } 8 + 9 + public function getDescription() { 10 + return pht( 11 + 'Demonstrates the visual appearance of various Remarkup elements.'); 12 + } 13 + 14 + public function renderExample() { 15 + $viewer = $this->getRequest()->getUser(); 16 + 17 + $content = pht(<<<EOCONTENT 18 + This is some **remarkup text** using ~~exactly one style~~ //various styles//. 19 + 20 + - Fruit 21 + - Apple 22 + - Banana 23 + - Cherry 24 + - Vegetables 25 + 1. Carrot 26 + 2. Celery 27 + 28 + NOTE: This is a note. 29 + 30 + (NOTE) This is also a note. 31 + 32 + WARNING: This is a warning. 33 + 34 + (WARNING) This is also a warning. 35 + 36 + IMPORTANT: This is not really important. 37 + 38 + (IMPORTANT) This isn't important either. 39 + 40 + EOCONTENT 41 + ); 42 + 43 + $remarkup = PhabricatorMarkupEngine::renderOneObject( 44 + id(new PhabricatorMarkupOneOff())->setContent($content), 45 + 'default', 46 + $viewer); 47 + 48 + $frame = id(new PHUIBoxView()) 49 + ->addPadding(PHUI::PADDING_LARGE) 50 + ->appendChild($remarkup); 51 + 52 + return id(new PHUIObjectBoxView()) 53 + ->setHeaderText(pht('Remarkup Example')) 54 + ->appendChild($frame); 55 + } 56 + 57 + }
+5
webroot/rsrc/css/core/remarkup.css
··· 198 198 background: {$lightred}; 199 199 } 200 200 201 + .phabricator-remarkup .remarkup-note-word { 202 + font-weight: bold; 203 + color: {$darkbluetext}; 204 + } 205 + 201 206 .phabricator-remarkup-toc { 202 207 float: right; 203 208 border: 1px solid {$lightblueborder};