Kaydet (Commit) 895efd4f authored tarafından Andras Timar's avatar Andras Timar

make background color of startcenter configurable

Change-Id: Ice6a92186d641e9446b9d328518e4000c840a142
üst c64945bc
......@@ -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">
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment