@@ 738-741 (lines=4) @@ | ||
735 | // Cannot be resolved already in XF record, because PALETTE record comes afterwards |
|
736 | if (!$this->readDataOnly) { |
|
737 | foreach ($this->objFonts as $objFont) { |
|
738 | if (isset($objFont->colorIndex)) { |
|
739 | $color = Xls\Color::map($objFont->colorIndex, $this->palette, $this->version); |
|
740 | $objFont->getColor()->setRGB($color['rgb']); |
|
741 | } |
|
742 | } |
|
743 | ||
744 | foreach ($this->spreadsheet->getCellXfCollection() as $objStyle) { |
|
@@ 764-767 (lines=4) @@ | ||
761 | $left = $objStyle->getBorders()->getLeft(); |
|
762 | $diagonal = $objStyle->getBorders()->getDiagonal(); |
|
763 | ||
764 | if (isset($top->colorIndex)) { |
|
765 | $borderTopColor = Xls\Color::map($top->colorIndex, $this->palette, $this->version); |
|
766 | $top->getColor()->setRGB($borderTopColor['rgb']); |
|
767 | } |
|
768 | if (isset($right->colorIndex)) { |
|
769 | $borderRightColor = Xls\Color::map($right->colorIndex, $this->palette, $this->version); |
|
770 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
@@ 768-771 (lines=4) @@ | ||
765 | $borderTopColor = Xls\Color::map($top->colorIndex, $this->palette, $this->version); |
|
766 | $top->getColor()->setRGB($borderTopColor['rgb']); |
|
767 | } |
|
768 | if (isset($right->colorIndex)) { |
|
769 | $borderRightColor = Xls\Color::map($right->colorIndex, $this->palette, $this->version); |
|
770 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
771 | } |
|
772 | if (isset($bottom->colorIndex)) { |
|
773 | $borderBottomColor = Xls\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
774 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
@@ 772-775 (lines=4) @@ | ||
769 | $borderRightColor = Xls\Color::map($right->colorIndex, $this->palette, $this->version); |
|
770 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
771 | } |
|
772 | if (isset($bottom->colorIndex)) { |
|
773 | $borderBottomColor = Xls\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
774 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
775 | } |
|
776 | if (isset($left->colorIndex)) { |
|
777 | $borderLeftColor = Xls\Color::map($left->colorIndex, $this->palette, $this->version); |
|
778 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
@@ 776-779 (lines=4) @@ | ||
773 | $borderBottomColor = Xls\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
774 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
775 | } |
|
776 | if (isset($left->colorIndex)) { |
|
777 | $borderLeftColor = Xls\Color::map($left->colorIndex, $this->palette, $this->version); |
|
778 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
779 | } |
|
780 | if (isset($diagonal->colorIndex)) { |
|
781 | $borderDiagonalColor = Xls\Color::map($diagonal->colorIndex, $this->palette, $this->version); |
|
782 | $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); |
|
@@ 780-783 (lines=4) @@ | ||
777 | $borderLeftColor = Xls\Color::map($left->colorIndex, $this->palette, $this->version); |
|
778 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
779 | } |
|
780 | if (isset($diagonal->colorIndex)) { |
|
781 | $borderDiagonalColor = Xls\Color::map($diagonal->colorIndex, $this->palette, $this->version); |
|
782 | $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); |
|
783 | } |
|
784 | } |
|
785 | } |
|
786 |