diff options
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/backingwindow.cxx | 16 | ||||
-rw-r--r-- | sfx2/source/dialog/backingwindow.hxx | 1 |
2 files changed, 0 insertions, 17 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index ead00a2beeb9..48bb6c1cf416 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -68,7 +68,6 @@ float const fMultiplier = 1.4f; BackingWindow::BackingWindow( vcl::Window* i_pParent ) : Window( i_pParent ), mbLocalViewInitialized(false), - maButtonsTextColor(Color(officecfg::Office::Common::Help::StartCenter::StartCenterTextColor::get())), mbInitControls( false ) { m_pUIBuilder.reset(new VclBuilder(this, AllSettings::GetUIRootDir(), "sfx/ui/startcenter.ui", "StartCenter" )); @@ -255,19 +254,10 @@ void BackingWindow::initControls() mpExtensionsButton->SetClickHdl(LINK(this, BackingWindow, ExtLinkClickHdl)); // setup nice colors - mpCreateLabel->SetControlForeground(maButtonsTextColor); vcl::Font aFont(mpCreateLabel->GetSettings().GetStyleSettings().GetLabelFont()); aFont.SetFontSize(Size(0, aFont.GetFontSize().Height() * fMultiplier)); mpCreateLabel->SetControlFont(aFont); - mpHelpButton->SetControlForeground(maButtonsTextColor); - mpExtensionsButton->SetControlForeground(maButtonsTextColor); - - const Color aButtonsBackground(officecfg::Office::Common::Help::StartCenter::StartCenterBackgroundColor::get()); - - mpAllButtonsBox->SetBackground(aButtonsBackground); - mpSmallButtonsBox->SetBackground(aButtonsBackground); - // motif image under the buttons Wallpaper aWallpaper(get<FixedImage>("motif")->GetImage().GetBitmapEx()); aWallpaper.SetStyle(WallpaperStyle::BottomRight); @@ -307,9 +297,6 @@ void BackingWindow::setupButton( PushButton* pButton ) vcl::Font aFont(pButton->GetSettings().GetStyleSettings().GetPushButtonFont()); aFont.SetFontSize(Size(0, aFont.GetFontSize().Height() * fMultiplier)); pButton->SetControlFont(aFont); - - // color that fits the theme - pButton->SetControlForeground(maButtonsTextColor); pButton->SetClickHdl( LINK( this, BackingWindow, ClickHdl ) ); } @@ -319,9 +306,6 @@ void BackingWindow::setupButton( MenuToggleButton* pButton ) aFont.SetFontSize(Size(0, aFont.GetFontSize().Height() * fMultiplier)); pButton->SetControlFont(aFont); - // color that fits the theme - 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 15ab2fe0728f..99d7bd6b7ccc 100644 --- a/sfx2/source/dialog/backingwindow.hxx +++ b/sfx2/source/dialog/backingwindow.hxx @@ -78,7 +78,6 @@ class BackingWindow : public vcl::Window, public VclBuilderContainer std::vector< VclPtr<vcl::Window> > maDndWindows; - Color maButtonsTextColor; tools::Rectangle maStartCentButtons; bool mbInitControls; |