Add background-color to styles (#211)

Removed default background color, cosmetics
Remove default background color
reuse bg colors
Cosmetics
Moved reusing fills to XLSX StyleHelper
Tests and inline doc
This commit is contained in:
madflow authored and Adrien Loison committed 2016-08-10 13:11:47 -07:00
1 parent b2dc0c3fa9
commit 584121d478
7 files changed
+196 -10

No files matched your search

+13
View File
@@ -133,6 +133,19 @@ class StyleBuilder
return $this;
}
/**
* Sets a background color
*
* @api
* @param string $color ARGB color (@see Color)
* @return StyleBuilder
*/
public function setBackgroundColor($color)
{
$this->style->setBackgroundColor($color);
return $this;
}
/**
* Returns the configured style. The style is cached and can be reused.
*