tdf#151610 chart colors should be the same regardless of the desktop theme
Change-Id: I47ae80f744401bd13452ec8879cb8f420e35b9ce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142383
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack@redhat.com>
(cherry picked from commit f8ad054de38a6592b60ab850e938e6e81ec4cc0d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142310
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/sc/source/filter/excel/xlstyle.cxx b/sc/source/filter/excel/xlstyle.cxx
index b5de24d..886a3a6 100644
--- a/sc/source/filter/excel/xlstyle.cxx
+++ b/sc/source/filter/excel/xlstyle.cxx
@@ -147,12 +147,12 @@ Color XclDefaultPalette::GetDefColor( sal_uInt16 nXclIndex ) const
else switch( nXclIndex )
{
case EXC_COLOR_WINDOWTEXT3:
case EXC_COLOR_WINDOWTEXT:
case EXC_COLOR_CHWINDOWTEXT: nColor = mnWindowText; break;
case EXC_COLOR_WINDOWTEXT: nColor = mnWindowText; break;
case EXC_COLOR_WINDOWBACK3:
case EXC_COLOR_WINDOWBACK:
case EXC_COLOR_CHWINDOWBACK: nColor = mnWindowBack; break;
case EXC_COLOR_WINDOWBACK: nColor = mnWindowBack; break;
case EXC_COLOR_BUTTONBACK: nColor = mnFaceColor; break;
case EXC_COLOR_CHWINDOWTEXT: nColor = COL_BLACK; break;
case EXC_COLOR_CHWINDOWBACK: nColor = COL_WHITE; break;
case EXC_COLOR_CHBORDERAUTO: nColor = COL_BLACK; break; // TODO: really always black?
case EXC_COLOR_NOTEBACK: nColor = mnNoteBack; break;
case EXC_COLOR_NOTETEXT: nColor = mnNoteText; break;
diff --git a/sc/source/filter/inc/xlstyle.hxx b/sc/source/filter/inc/xlstyle.hxx
index 3581f77..69f4f9d 100644
--- a/sc/source/filter/inc/xlstyle.hxx
+++ b/sc/source/filter/inc/xlstyle.hxx
@@ -207,8 +207,8 @@ const sal_uInt16 EXC_COLOR_WINDOWBACK3 = 25; /// System window backgr
const sal_uInt16 EXC_COLOR_WINDOWTEXT = 64; /// System window text color (>=BIFF5).
const sal_uInt16 EXC_COLOR_WINDOWBACK = 65; /// System window background color (>=BIFF5).
const sal_uInt16 EXC_COLOR_BUTTONBACK = 67; /// System button background color (face color).
const sal_uInt16 EXC_COLOR_CHWINDOWTEXT = 77; /// System window text color (BIFF8 charts).
const sal_uInt16 EXC_COLOR_CHWINDOWBACK = 78; /// System window background color (BIFF8 charts).
const sal_uInt16 EXC_COLOR_CHWINDOWTEXT = 77; /// Chart window text color (BIFF8 charts).
const sal_uInt16 EXC_COLOR_CHWINDOWBACK = 78; /// Chart window background color (BIFF8 charts).
const sal_uInt16 EXC_COLOR_CHBORDERAUTO = 79; /// Automatic frame border for series (BIFF8 charts).
const sal_uInt16 EXC_COLOR_NOTEBACK = 80; /// Note background color.
const sal_uInt16 EXC_COLOR_NOTETEXT = 81; /// Note text color.