You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by ms...@apache.org on 2023/08/10 13:37:03 UTC

[openoffice] 01/01: Update colorcfg.cxx

This is an automated email from the ASF dual-hosted git repository.

mseidel pushed a commit to branch Pilot-Pirx-fontcolor
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit dac41d27255e1347d2f01be62459e3bf0da4587f
Author: Matthias Seidel <ms...@apache.org>
AuthorDate: Thu Aug 10 15:36:56 2023 +0200

    Update colorcfg.cxx
    
    We should always set the fontcolor to black.
    
    Some themes on Linux use a slightly different color, for example Ubuntu uses a dark gray.
    That drove me mad, because I thought my printer was broken.
    At the moment I have set the fontcolor manually to black.
---
 main/svtools/source/config/colorcfg.cxx | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/main/svtools/source/config/colorcfg.cxx b/main/svtools/source/config/colorcfg.cxx
index b8dad758d2..3a11f8953c 100644
--- a/main/svtools/source/config/colorcfg.cxx
+++ b/main/svtools/source/config/colorcfg.cxx
@@ -449,7 +449,7 @@ Color ColorConfig::GetDefaultColor(ColorConfigEntry eEntry)
         0x808080, // APPBACKGROUND
         0xc0c0c0, // OBJECTBOUNDARIES
         0xc0c0c0, // TABLEBOUNDARIES
-        0, // FONTCOLOR
+        COL_BLACK, // FONTCOLOR
         0xcc, // LINKS
         0x80, // LINKSVISITED
         0, // ANCHOR
@@ -518,10 +518,6 @@ Color ColorConfig::GetDefaultColor(ColorConfigEntry eEntry)
 					rStyleSettings.OutlineMode??? : */	aAutoColors[eEntry];
         break;
 
-		case FONTCOLOR :
-            aRet = Application::GetSettings().GetStyleSettings().GetWindowTextColor();
-			break;
-
 		case LINKS :
             aRet = Application::GetSettings().GetStyleSettings().GetLinkColor();
 			break;