summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2014-08-25 20:50:27 +0200
committerAndras Timar <andras.timar@collabora.com>2014-09-15 18:01:27 +0200
commitcc260437fe9442d1f267d10e65848d68c62ad6c1 (patch)
tree188500ceb52aa0b2b92dd3b581d10f5942a299f7 /sfx2
parent789d346675f788ce3bfd091bcc96b2ff7ca588de (diff)
make background color of startcenter configurable
(cherry picked from commit 895efd4f399fd717343bbc1ba3538fa01cf0a40a) Conflicts: officecfg/registry/schema/org/openoffice/Office/Common.xcs sfx2/source/dialog/backingwindow.cxx Conflicts: sfx2/source/dialog/backingwindow.cxx Change-Id: Ice6a92186d641e9446b9d328518e4000c840a142
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/backingwindow.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index 764337a7743e..cefc017a6ad6 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -44,6 +44,8 @@
#include <com/sun/star/util/URLTransformer.hpp>
#include <com/sun/star/task/InteractionHandler.hpp>
+#include <officecfg/Office/Common.hxx>
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::beans;
using namespace ::com::sun::star::frame;
@@ -61,7 +63,6 @@ const char OPEN_URL[] = ".uno:Open";
const char SERVICENAME_CFGREADACCESS[] = "com.sun.star.configuration.ConfigurationAccess";
float fMultiplier = 1.2;
-const Color aButtonsBackground(114, 168, 84); // TDF green
const Color aButtonsText(COL_WHITE);
BackingWindow::BackingWindow( Window* i_pParent ) :
@@ -249,6 +250,8 @@ void BackingWindow::initControls()
mpHelpButton->SetControlForeground(aButtonsText);
mpExtensionsButton->SetControlForeground(aButtonsText);
+ const Color aButtonsBackground(officecfg::Office::Common::Help::StartCenter::StartCenterBackgroundColor::get());
+
mpAllButtonsBox->SetBackground(aButtonsBackground);
mpSmallButtonsBox->SetBackground(aButtonsBackground);
mpHelpBox->SetBackground(aButtonsBackground);