summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appserv.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sfx2/source/appl/appserv.cxx')
-rw-r--r--sfx2/source/appl/appserv.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index 1505e3944d55..23358e7f8cfe 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -732,7 +732,24 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq )
Invalidate(FN_CHANGE_THEME);
break;
}
+ case FN_INVERT_BACKGROUND:
+ {
+ svtools::EditableColorConfig aColorConfig;
+ ::Color aCurrentColor = aColorConfig.GetColorValue(svtools::DOCCOLOR).nColor;
+ ::Color aDefLightColor = svtools::ColorConfig::GetDefaultColor(svtools::DOCCOLOR, 0);
+ ::Color aDefDarkColor = svtools::ColorConfig::GetDefaultColor(svtools::DOCCOLOR, 1);
+
+ svtools::ColorConfigValue aValue;
+ aValue.bIsVisible = true;
+
+ if(aCurrentColor == aDefLightColor)
+ aValue.nColor = aDefDarkColor;
+ else
+ aValue.nColor = aDefLightColor;
+ aColorConfig.SetColorValue(svtools::DOCCOLOR, aValue);
+ break;
+ }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
case SID_HELPINDEX:
{