Kaydet (Commit) b0cdd038 authored tarafından Michael Meeks's avatar Michael Meeks

fdo#51534 - rulers should have app-background by default (apparently).

Change-Id: I981febb02074ed323732ef7c19e89f1e946604f1
üst d60cec0e
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <svtools/ruler.hxx> #include <svtools/ruler.hxx>
#include <svtools/svtresid.hxx> #include <svtools/svtresid.hxx>
#include <svtools/svtools.hrc> #include <svtools/svtools.hrc>
#include <svtools/colorcfg.hxx>
#include <boost/scoped_array.hpp> #include <boost/scoped_array.hpp>
#include <vector> #include <vector>
...@@ -1021,7 +1022,10 @@ void Ruler::ImplInitSettings( bool bFont, bool bForeground, bool bBackground ) ...@@ -1021,7 +1022,10 @@ void Ruler::ImplInitSettings( bool bFont, bool bForeground, bool bBackground )
if ( IsControlBackground() ) if ( IsControlBackground() )
aColor = GetControlBackground(); aColor = GetControlBackground();
else else
aColor = rStyleSettings.GetDialogColor(); {
svtools::ColorConfig aColorConfig;
aColor = Color( aColorConfig.GetColorValue( svtools::APPBACKGROUND ).nColor );
}
SetBackground( aColor ); SetBackground( aColor );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment