@@ 714-717 (lines=4) @@ | ||
711 | // Cannot be resolved already in XF record, because PALETTE record comes afterwards |
|
712 | if (!$this->readDataOnly) { |
|
713 | foreach ($this->objFonts as $objFont) { |
|
714 | if (isset($objFont->colorIndex)) { |
|
715 | $color = Xls\Color::map($objFont->colorIndex, $this->palette, $this->version); |
|
716 | $objFont->getColor()->setRGB($color['rgb']); |
|
717 | } |
|
718 | } |
|
719 | ||
720 | foreach ($this->spreadsheet->getCellXfCollection() as $objStyle) { |
|
@@ 740-743 (lines=4) @@ | ||
737 | $left = $objStyle->getBorders()->getLeft(); |
|
738 | $diagonal = $objStyle->getBorders()->getDiagonal(); |
|
739 | ||
740 | if (isset($top->colorIndex)) { |
|
741 | $borderTopColor = Xls\Color::map($top->colorIndex, $this->palette, $this->version); |
|
742 | $top->getColor()->setRGB($borderTopColor['rgb']); |
|
743 | } |
|
744 | if (isset($right->colorIndex)) { |
|
745 | $borderRightColor = Xls\Color::map($right->colorIndex, $this->palette, $this->version); |
|
746 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
@@ 744-747 (lines=4) @@ | ||
741 | $borderTopColor = Xls\Color::map($top->colorIndex, $this->palette, $this->version); |
|
742 | $top->getColor()->setRGB($borderTopColor['rgb']); |
|
743 | } |
|
744 | if (isset($right->colorIndex)) { |
|
745 | $borderRightColor = Xls\Color::map($right->colorIndex, $this->palette, $this->version); |
|
746 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
747 | } |
|
748 | if (isset($bottom->colorIndex)) { |
|
749 | $borderBottomColor = Xls\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
750 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
@@ 748-751 (lines=4) @@ | ||
745 | $borderRightColor = Xls\Color::map($right->colorIndex, $this->palette, $this->version); |
|
746 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
747 | } |
|
748 | if (isset($bottom->colorIndex)) { |
|
749 | $borderBottomColor = Xls\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
750 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
751 | } |
|
752 | if (isset($left->colorIndex)) { |
|
753 | $borderLeftColor = Xls\Color::map($left->colorIndex, $this->palette, $this->version); |
|
754 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
@@ 752-755 (lines=4) @@ | ||
749 | $borderBottomColor = Xls\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
750 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
751 | } |
|
752 | if (isset($left->colorIndex)) { |
|
753 | $borderLeftColor = Xls\Color::map($left->colorIndex, $this->palette, $this->version); |
|
754 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
755 | } |
|
756 | if (isset($diagonal->colorIndex)) { |
|
757 | $borderDiagonalColor = Xls\Color::map($diagonal->colorIndex, $this->palette, $this->version); |
|
758 | $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); |
|
@@ 756-759 (lines=4) @@ | ||
753 | $borderLeftColor = Xls\Color::map($left->colorIndex, $this->palette, $this->version); |
|
754 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
755 | } |
|
756 | if (isset($diagonal->colorIndex)) { |
|
757 | $borderDiagonalColor = Xls\Color::map($diagonal->colorIndex, $this->palette, $this->version); |
|
758 | $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); |
|
759 | } |
|
760 | } |
|
761 | } |
|
762 |