mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-21 04:50:55 +01:00
Adjust the shade of green in blame
Summary: We are loading blame on background which confuses me a bit - I'm not sure if it's still loading or it's already loaded and the commit changed lots of lines (so I don't see the author) and it was a long time ago (so I don't see green). Provide a visual feedback even for very old commits. I want to point out that I really enjoy this kind of work. Also, this diff is my masterpiece at least for today. Test Plan: ?view=blame - verified that the gray changed to a decent shade of green even for very old commits. Reviewers: epriestley, chad Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5292
This commit is contained in:
parent
c05115b367
commit
4e535b03e5
1 changed files with 1 additions and 1 deletions
|
@ -485,7 +485,7 @@ final class DiffusionBrowseFileController extends DiffusionController {
|
|||
$color = '#ffd'; // Render as warning.
|
||||
} else {
|
||||
$color_ratio = ($blame['epoch'] - $epoch_min) / $epoch_range;
|
||||
$color_value = 0xF6 * (1.0 - $color_ratio);
|
||||
$color_value = 0xE6 * (1.0 - $color_ratio);
|
||||
$color = sprintf(
|
||||
'#%02x%02x%02x',
|
||||
$color_value,
|
||||
|
|
Loading…
Reference in a new issue