From 4e535b03e53ed6b79047df241c8fb2f8284563fa Mon Sep 17 00:00:00 2001 From: vrana Date: Thu, 7 Mar 2013 22:38:08 -0800 Subject: [PATCH] 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 --- .../diffusion/controller/DiffusionBrowseFileController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/diffusion/controller/DiffusionBrowseFileController.php b/src/applications/diffusion/controller/DiffusionBrowseFileController.php index 80898a2f71..2355fdb4b6 100644 --- a/src/applications/diffusion/controller/DiffusionBrowseFileController.php +++ b/src/applications/diffusion/controller/DiffusionBrowseFileController.php @@ -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,