officecfg/registry/schema/org/openoffice/Office/Common.xcs |    9 ++++++++-
 sfx2/source/dialog/backingwindow.cxx                       |    5 ++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

New commits:
commit 895efd4f399fd717343bbc1ba3538fa01cf0a40a
Author: Andras Timar <andras.ti...@collabora.com>
Date:   Mon Aug 25 20:50:27 2014 +0200

    make background color of startcenter configurable
    
    Change-Id: Ice6a92186d641e9446b9d328518e4000c840a142

diff --git a/officecfg/registry/schema/org/openoffice/Office/Common.xcs 
b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
index 408874f..8ac7f69 100644
--- a/officecfg/registry/schema/org/openoffice/Office/Common.xcs
+++ b/officecfg/registry/schema/org/openoffice/Office/Common.xcs
@@ -2196,7 +2196,7 @@
         <prop oor:name="GenerateThumbnail" oor:type="xs:boolean" 
oor:nillable="false">
           <!-- UIHints: Tools  Options - General  Save - [Section] Save -->
           <info>
-            <desc>Specifies whether to generate a thumbnail image and place it 
inside the 
+            <desc>Specifies whether to generate a thumbnail image and place it 
inside the
              the odf archive file, which makes it possible to see a preview of 
the document.</desc>
             <label>Store a preview of this document</label>
           </info>
@@ -3599,6 +3599,13 @@
           </info>
           <value>0</value>
         </prop>
+        <prop oor:name="StartCenterBackgroundColor" oor:type="xs:int" 
oor:nillable="false">
+          <!--Default 7514196 = TDF Green-->
+          <info>
+            <desc>Specifies the background color of the start center.</desc>
+          </info>
+          <value>7514196</value>
+        </prop>
       </group>
     </group>
     <group oor:name="Java">
diff --git a/sfx2/source/dialog/backingwindow.cxx 
b/sfx2/source/dialog/backingwindow.cxx
index 1e6c4c8..e258b30 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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to