Differential D17269 Diff 41842 src/applications/transactions/view/PhabricatorApplicationTransactionTextDiffDetailView.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/view/PhabricatorApplicationTransactionTextDiffDetailView.php
Show All 13 Lines | final class PhabricatorApplicationTransactionTextDiffDetailView | ||||
public function setOldText($old_text) { | public function setOldText($old_text) { | ||||
$this->oldText = $old_text; | $this->oldText = $old_text; | ||||
return $this; | return $this; | ||||
} | } | ||||
public function renderForMail() { | public function renderForMail() { | ||||
$diff = $this->buildDiff(); | $diff = $this->buildDiff(); | ||||
$viewer = $this->getViewer(); | |||||
$old_bright = $viewer->getCSSValue('old-bright'); | |||||
$new_bright = $viewer->getCSSValue('new-bright'); | |||||
$old_styles = array( | $old_styles = array( | ||||
'padding: 0 2px;', | 'padding: 0 2px;', | ||||
'color: #333333;', | 'color: #333333;', | ||||
'background: #f8cbcb;', | "background: {$old_bright};", | ||||
); | ); | ||||
$old_styles = implode(' ', $old_styles); | $old_styles = implode(' ', $old_styles); | ||||
$new_styles = array( | $new_styles = array( | ||||
'padding: 0 2px;', | 'padding: 0 2px;', | ||||
'color: #333333;', | 'color: #333333;', | ||||
'background: #a6f3a6;', | "background: {$new_bright};", | ||||
); | ); | ||||
$new_styles = implode(' ', $new_styles); | $new_styles = implode(' ', $new_styles); | ||||
$omit_styles = array( | $omit_styles = array( | ||||
'padding: 8px 0;', | 'padding: 8px 0;', | ||||
); | ); | ||||
$omit_styles = implode(' ', $omit_styles); | $omit_styles = implode(' ', $omit_styles); | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |