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 @@
#include <svtools/ruler.hxx>
#include <svtools/svtresid.hxx>
#include <svtools/svtools.hrc>
#include <svtools/colorcfg.hxx>
#include <boost/scoped_array.hpp>
#include <vector>
......@@ -1021,7 +1022,10 @@ void Ruler::ImplInitSettings( bool bFont, bool bForeground, bool bBackground )
if ( IsControlBackground() )
aColor = GetControlBackground();
else
aColor = rStyleSettings.GetDialogColor();
{
svtools::ColorConfig aColorConfig;
aColor = Color( aColorConfig.GetColorValue( svtools::APPBACKGROUND ).nColor );
}
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