diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2014-07-24 14:24:25 -0400 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-07-24 14:26:54 -0400 |
commit | b0cdd038ee192dcc0d83182a33fc8c0242ceb1dd (patch) | |
tree | 98288f62805e0062142dccece5a78ddd6c01b485 /svtools | |
parent | d60cec0e60c5c0880f8098d39443c391abed80b2 (diff) |
fdo#51534 - rulers should have app-background by default (apparently).
Change-Id: I981febb02074ed323732ef7c19e89f1e946604f1
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/ruler.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx index bf719a328fa3..9d7e288657f4 100644 --- a/svtools/source/control/ruler.cxx +++ b/svtools/source/control/ruler.cxx @@ -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 ); } |