summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-07-24 14:24:25 -0400
committerJan Holesovsky <kendy@collabora.com>2014-07-24 20:08:35 +0000
commite0a7557e97de0bad7ff8510c768bdbed6cdae6f5 (patch)
tree98824898f2675efd3a42dfa747d10fb5b4002e0a /svtools
parent674f6cee2b42e26c1c6750c805d0d11ad08b655b (diff)
fdo#51534 - rulers should have app-background by default (apparently).
Change-Id: I981febb02074ed323732ef7c19e89f1e946604f1 Reviewed-on: https://gerrit.libreoffice.org/10519 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ruler.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 4332966babe5..29655de59487 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 );
}