diff options
author | Andras Timar <andras.timar@collabora.com> | 2014-08-25 20:50:27 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-08-25 20:53:45 +0200 |
commit | 895efd4f399fd717343bbc1ba3538fa01cf0a40a (patch) | |
tree | f08ab9c1bdcd7bf0bff63685bfd13fc2cf9d1826 /sfx2/source/dialog | |
parent | c64945bcb9a69a2c4f69c673fa1935d91f70b238 (diff) |
make background color of startcenter configurable
Change-Id: Ice6a92186d641e9446b9d328518e4000c840a142
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r-- | sfx2/source/dialog/backingwindow.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index 1e6c4c82d534..e258b30b759f 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -53,6 +53,8 @@ #include <com/sun/star/task/InteractionHandler.hpp> #include <com/sun/star/ui/dialogs/TemplateDescription.hpp> +#include <officecfg/Office/Common.hxx> + using namespace ::com::sun::star; using namespace ::com::sun::star::beans; using namespace ::com::sun::star::frame; @@ -70,7 +72,6 @@ const char OPEN_URL[] = ".uno:Open"; const char SERVICENAME_CFGREADACCESS[] = "com.sun.star.configuration.ConfigurationAccess"; float fMultiplier = 1.4f; -const Color aButtonsBackground(114, 168, 84); // TDF green const Color aButtonsText(COL_WHITE); /*** @@ -292,6 +293,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); |