@@ 707-710 (lines=4) @@ | ||
704 | // Cannot be resolved already in XF record, because PALETTE record comes afterwards |
|
705 | if (!$this->readDataOnly) { |
|
706 | foreach ($this->objFonts as $objFont) { |
|
707 | if (isset($objFont->colorIndex)) { |
|
708 | $color = Xls\Color::map($objFont->colorIndex, $this->palette, $this->version); |
|
709 | $objFont->getColor()->setRGB($color['rgb']); |
|
710 | } |
|
711 | } |
|
712 | ||
713 | foreach ($this->spreadsheet->getCellXfCollection() as $objStyle) { |
|
@@ 733-736 (lines=4) @@ | ||
730 | $left = $objStyle->getBorders()->getLeft(); |
|
731 | $diagonal = $objStyle->getBorders()->getDiagonal(); |
|
732 | ||
733 | if (isset($top->colorIndex)) { |
|
734 | $borderTopColor = Xls\Color::map($top->colorIndex, $this->palette, $this->version); |
|
735 | $top->getColor()->setRGB($borderTopColor['rgb']); |
|
736 | } |
|
737 | if (isset($right->colorIndex)) { |
|
738 | $borderRightColor = Xls\Color::map($right->colorIndex, $this->palette, $this->version); |
|
739 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
@@ 737-740 (lines=4) @@ | ||
734 | $borderTopColor = Xls\Color::map($top->colorIndex, $this->palette, $this->version); |
|
735 | $top->getColor()->setRGB($borderTopColor['rgb']); |
|
736 | } |
|
737 | if (isset($right->colorIndex)) { |
|
738 | $borderRightColor = Xls\Color::map($right->colorIndex, $this->palette, $this->version); |
|
739 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
740 | } |
|
741 | if (isset($bottom->colorIndex)) { |
|
742 | $borderBottomColor = Xls\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
743 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
@@ 741-744 (lines=4) @@ | ||
738 | $borderRightColor = Xls\Color::map($right->colorIndex, $this->palette, $this->version); |
|
739 | $right->getColor()->setRGB($borderRightColor['rgb']); |
|
740 | } |
|
741 | if (isset($bottom->colorIndex)) { |
|
742 | $borderBottomColor = Xls\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
743 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
744 | } |
|
745 | if (isset($left->colorIndex)) { |
|
746 | $borderLeftColor = Xls\Color::map($left->colorIndex, $this->palette, $this->version); |
|
747 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
@@ 745-748 (lines=4) @@ | ||
742 | $borderBottomColor = Xls\Color::map($bottom->colorIndex, $this->palette, $this->version); |
|
743 | $bottom->getColor()->setRGB($borderBottomColor['rgb']); |
|
744 | } |
|
745 | if (isset($left->colorIndex)) { |
|
746 | $borderLeftColor = Xls\Color::map($left->colorIndex, $this->palette, $this->version); |
|
747 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
748 | } |
|
749 | if (isset($diagonal->colorIndex)) { |
|
750 | $borderDiagonalColor = Xls\Color::map($diagonal->colorIndex, $this->palette, $this->version); |
|
751 | $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); |
|
@@ 749-752 (lines=4) @@ | ||
746 | $borderLeftColor = Xls\Color::map($left->colorIndex, $this->palette, $this->version); |
|
747 | $left->getColor()->setRGB($borderLeftColor['rgb']); |
|
748 | } |
|
749 | if (isset($diagonal->colorIndex)) { |
|
750 | $borderDiagonalColor = Xls\Color::map($diagonal->colorIndex, $this->palette, $this->version); |
|
751 | $diagonal->getColor()->setRGB($borderDiagonalColor['rgb']); |
|
752 | } |
|
753 | } |
|
754 | } |
|
755 |