From 0b87f4c304a64a5affb53fc8e035d2cbfd0463ef Mon Sep 17 00:00:00 2001 From: kanoi Date: Mon, 10 Nov 2014 13:52:09 +1100 Subject: [PATCH] php - use colour names for blocks font --- pool/page_blocks.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pool/page_blocks.php b/pool/page_blocks.php index b8487b48..b77d426e 100644 --- a/pool/page_blocks.php +++ b/pool/page_blocks.php @@ -4,8 +4,8 @@ function pctcolour($pct) { if ($pct == 100) { - $fg = '#fff'; - $bg = '#000'; + $fg = 'white'; + $bg = 'black'; } if ($pct < 100) @@ -17,9 +17,9 @@ function pctcolour($pct) $grn = 255; if ($grn > 190) - $fg = '#00f'; + $fg = 'blue'; else - $fg = '#fff'; + $fg = 'white'; $bg = sprintf("#00%02x00", $grn); } @@ -31,7 +31,7 @@ function pctcolour($pct) if ($red > 255) $red = 255; - $fg = '#fff'; + $fg = 'white'; $bg = sprintf("#%02x0000", $red); }