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-26 00:57:59 -0700 |
commit | db644424d663aca64c76bcbe5040846af5930741 (patch) | |
tree | d27af5f164f1cbc1eeb7672663a89b4b3b40fcb6 /sfx2 | |
parent | 9403a3fe41aa7203d2769d54de5f70c49f42d880 (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
Change-Id: Ice6a92186d641e9446b9d328518e4000c840a142
Diffstat (limited to 'sfx2')
-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 de2c5f3de4c3..6ac80fa453a3 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -43,6 +43,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; @@ -60,7 +62,6 @@ const char OPEN_URL[] = ".uno:Open"; const char SERVICENAME_CFGREADACCESS[] = "com.sun.star.configuration.ConfigurationAccess"; const int nButtonsFontSize = 15; -const Color aButtonsBackground(92, 61, 204); // Collabora purple const Color aButtonsText(COL_WHITE); BackingWindow::BackingWindow( Window* i_pParent ) : @@ -241,6 +242,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); |