diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2015-06-25 09:47:37 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2015-06-26 09:56:15 +0000 |
commit | 1c481fe6522f4c7d883e77a4ac32f855b9bcb323 (patch) | |
tree | 5e33e28c730cddb4cdf6362cd0730f22e012c849 /sd/source/ui/view/drviews1.cxx | |
parent | af8143bc40cf2cfbc12e77c9bb7de01b655f7b30 (diff) |
tdf#87905: Use darker background colour for master view
for the area behind the slide, that is
Change-Id: Ie020f43a81e5eaa257c20d0a7b6feffce1614205
Reviewed-on: https://gerrit.libreoffice.org/16466
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Philippe Jung <phil.jung@free.fr>
Diffstat (limited to 'sd/source/ui/view/drviews1.cxx')
-rw-r--r-- | sd/source/ui/view/drviews1.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index 109d82c72e74..8b605b02f51c 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -316,6 +316,7 @@ bool DrawViewShell::PrepareClose( bool bUI ) return true; } + /** * Set status (enabled/disabled) of menu SfxSlots */ @@ -377,6 +378,9 @@ void DrawViewShell::ChangeEditMode(EditMode eEMode, bool bIsLayerModeActive) GetViewShellBase().GetToolBarManager()->ResetToolBars(ToolBarManager::TBG_COMMON_TASK); } + svtools::ColorConfig aColorConfig; + Color aFillColor = Color( aColorConfig.GetColorValue( svtools::APPBACKGROUND ).nColor ); + if (meEditMode == EM_PAGE) { /****************************************************************** @@ -402,6 +406,8 @@ void DrawViewShell::ChangeEditMode(EditMode eEMode, bool bIsLayerModeActive) maTabControl->SetCurPageId(nActualPageNum + 1); + SetAppBackgroundColor( aFillColor ); + SwitchPage(nActualPageNum); } else @@ -438,6 +444,9 @@ void DrawViewShell::ChangeEditMode(EditMode eEMode, bool bIsLayerModeActive) } } + aFillColor.DecreaseLuminance( 64 ); + SetAppBackgroundColor( aFillColor ); + maTabControl->SetCurPageId(nActualMasterPageNum + 1); SwitchPage(nActualMasterPageNum); } @@ -477,6 +486,7 @@ void DrawViewShell::ChangeEditMode(EditMode eEMode, bool bIsLayerModeActive) Invalidate( SID_TITLE_MASTERPAGE ); Invalidate( SID_NOTES_MASTERPAGE ); Invalidate( SID_HANDOUT_MASTERPAGE ); + InvalidateWindows(); SetContextName(GetSidebarContextName()); } |