diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-06-30 16:13:23 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-08-06 12:53:02 +0200 |
commit | e4293feedd792cb7f06f0a6f9a69f7d5020654af (patch) | |
tree | dfa2c028ba3f83f59f45167259252a6c730d80fc /sfx2/source/dialog | |
parent | 5ffade3b37282bae9613bee41c2dfeaba2b4fe6e (diff) |
tdf#90452: Implement the new design of the startcenter.
See the comment 45 in the bug for the agreed design.
Change-Id: I428f339df48f530f606525434a4a2be8a79acaab
Reviewed-on: https://gerrit.libreoffice.org/16622
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source/dialog')
-rw-r--r-- | sfx2/source/dialog/backingwindow.cxx | 19 | ||||
-rw-r--r-- | sfx2/source/dialog/backingwindow.hxx | 3 |
2 files changed, 12 insertions, 10 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index b09bf8fe9e99..5430c7609643 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -71,8 +71,8 @@ const char TEMPLATE_URL[] = ".uno:NewDoc"; const char OPEN_URL[] = ".uno:Open"; const char SERVICENAME_CFGREADACCESS[] = "com.sun.star.configuration.ConfigurationAccess"; +// increase size of the text in the buttons on the left fMultiplier-times float fMultiplier = 1.4f; -const Color aButtonsText(COL_WHITE); /*** * @@ -91,6 +91,7 @@ BackingWindow::BackingWindow( vcl::Window* i_pParent ) : Window( i_pParent ), mxDesktop( Desktop::create(comphelper::getProcessComponentContext()) ), mbLocalViewInitialized(false), + maButtonsTextColor(officecfg::Office::Common::Help::StartCenter::StartCenterTextColor::get()), mbIsSaveMode( false ), mbInitControls( false ), mnHideExternalLinks( 0 ), @@ -310,13 +311,13 @@ void BackingWindow::initControls() mpExtensionsButton->SetClickHdl(LINK(this, BackingWindow, ExtLinkClickHdl)); // setup nice colors - mpCreateLabel->SetControlForeground(aButtonsText); + mpCreateLabel->SetControlForeground(maButtonsTextColor); vcl::Font aFont(mpCreateLabel->GetSettings().GetStyleSettings().GetLabelFont()); aFont.SetSize(Size(0, aFont.GetSize().Height() * fMultiplier)); mpCreateLabel->SetControlFont(aFont); - mpHelpButton->SetControlForeground(aButtonsText); - mpExtensionsButton->SetControlForeground(aButtonsText); + mpHelpButton->SetControlForeground(maButtonsTextColor); + mpExtensionsButton->SetControlForeground(maButtonsTextColor); const Color aButtonsBackground(officecfg::Office::Common::Help::StartCenter::StartCenterBackgroundColor::get()); @@ -332,9 +333,9 @@ void BackingWindow::initControls() mpButtonsBox->SetBackground(aWallpaper); - // thin white rectangle aronud the Help and Extensions buttons - mpThinBox1->SetBackground(aButtonsText); - mpThinBox2->SetBackground(aButtonsText); + // thin white rectangle around the Help and Extensions buttons + mpThinBox1->SetBackground(maButtonsTextColor); + mpThinBox2->SetBackground(maButtonsTextColor); Resize(); @@ -371,7 +372,7 @@ void BackingWindow::setupButton( PushButton* pButton ) pButton->SetControlFont(aFont); // color that fits the theme - pButton->SetControlForeground(aButtonsText); + pButton->SetControlForeground(maButtonsTextColor); pButton->SetClickHdl( LINK( this, BackingWindow, ClickHdl ) ); } @@ -382,7 +383,7 @@ void BackingWindow::setupButton( MenuButton* pButton ) pButton->SetControlFont(aFont); // color that fits the theme - pButton->SetControlForeground(aButtonsText); + pButton->SetControlForeground(maButtonsTextColor); PopupMenu* pMenu = pButton->GetPopupMenu(); pMenu->SetMenuFlags(pMenu->GetMenuFlags() | MenuFlags::AlwaysShowDisabledEntries); diff --git a/sfx2/source/dialog/backingwindow.hxx b/sfx2/source/dialog/backingwindow.hxx index 796d8ad06e5b..8ef01fb5d09e 100644 --- a/sfx2/source/dialog/backingwindow.hxx +++ b/sfx2/source/dialog/backingwindow.hxx @@ -89,10 +89,11 @@ class BackingWindow : public vcl::Window, public VclBuilderContainer std::vector< VclPtr<vcl::Window> > maDndWindows; + Color maButtonsTextColor; Rectangle maStartCentButtons; bool mbIsSaveMode; - bool mbInitControls; + bool mbInitControls; sal_Int32 mnHideExternalLinks; svt::AcceleratorExecute* mpAccExec; |