@@ 749-752 (lines=4) @@ | ||
746 | // Cannot be resolved already in XF record, because PALETTE record comes afterwards |
|
747 | if (!$this->readDataOnly) { |
|
748 | foreach ($this->objFonts as $objFont) { |
|
749 | if (isset($objFont->colorIndex)) { |
|
750 | $color = Xls\Color::map($objFont->colorIndex, $this->palette, $this->version); |
|
751 | $objFont->getColor()->setRGB($color['rgb']); |
|
752 | } |
|
753 | } |
|
754 | ||
755 | foreach ($this->spreadsheet->getCellXfCollection() as $objStyle) { |
|
@@ 775-778 (lines=4) @@ | ||
772 | $left = $objStyle->getBorders()->getLeft(); |
|
773 | $diagonal = $objStyle->getBorders()->getDiagonal(); |
|
774 | ||
775 | if (isset($top->colorIndex)) { |
|
776 | $borderTopColor = Xls\Color::map($top->colorIndex, $this->palette, $this->version); |
|
777 | $top->getColor()->setRGB($borderTopColor['rgb']); |
|
778 | } |
|
779 | if (isset($right->colorIndex)) { |
|
780 | $borderRightColor = Xls\Color::map($right->colorIndex, $this->palette, $this->version); |
|
781 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
@@ 779-782 (lines=4) @@ | ||
776 | $borderTopColor = Xls\Color::map($top->colorIndex, $this->palette, $this->version); |
|
777 | $top->getColor()->setRGB($borderTopColor['rgb']); |
|
778 | } |
|
779 | if (isset($right->colorIndex)) { |
|
780 | $borderRightColor = Xls\Color::map($right->colorIndex, $this->palette, $this->version); |
|
781 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
782 | } |
|
783 | if (isset($bottom->colorIndex)) { |
|
784 | $borderBottomColor = Xls\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
785 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
@@ 783-786 (lines=4) @@ | ||
780 | $borderRightColor = Xls\Color::map($right->colorIndex, $this->palette, $this->version); |
|
781 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
782 | } |
|
783 | if (isset($bottom->colorIndex)) { |
|
784 | $borderBottomColor = Xls\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
785 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
786 | } |
|
787 | if (isset($left->colorIndex)) { |
|
788 | $borderLeftColor = Xls\Color::map($left->colorIndex, $this->palette, $this->version); |
|
789 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
@@ 787-790 (lines=4) @@ | ||
784 | $borderBottomColor = Xls\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
785 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
786 | } |
|
787 | if (isset($left->colorIndex)) { |
|
788 | $borderLeftColor = Xls\Color::map($left->colorIndex, $this->palette, $this->version); |
|
789 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
790 | } |
|
791 | if (isset($diagonal->colorIndex)) { |
|
792 | $borderDiagonalColor = Xls\Color::map($diagonal->colorIndex, $this->palette, $this->version); |
|
793 | $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); |
|
@@ 791-794 (lines=4) @@ | ||
788 | $borderLeftColor = Xls\Color::map($left->colorIndex, $this->palette, $this->version); |
|
789 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
790 | } |
|
791 | if (isset($diagonal->colorIndex)) { |
|
792 | $borderDiagonalColor = Xls\Color::map($diagonal->colorIndex, $this->palette, $this->version); |
|
793 | $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); |
|
794 | } |
|
795 | } |
|
796 | } |
|
797 |