diff options
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/control/thumbnailviewacc.cxx | 8 | ||||
-rw-r--r-- | sfx2/source/dialog/backingwindow.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/sidebar/Tools.cxx | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx index 600e8d705e21..04a7435ccb54 100644 --- a/sfx2/source/control/thumbnailviewacc.cxx +++ b/sfx2/source/control/thumbnailviewacc.cxx @@ -394,14 +394,14 @@ void SAL_CALL ThumbnailViewAcc::grabFocus() sal_Int32 SAL_CALL ThumbnailViewAcc::getForeground( ) { ThrowIfDisposed(); - sal_uInt32 nColor = Application::GetSettings().GetStyleSettings().GetWindowTextColor().GetColor(); + Color nColor = Application::GetSettings().GetStyleSettings().GetWindowTextColor(); return static_cast<sal_Int32>(nColor); } sal_Int32 SAL_CALL ThumbnailViewAcc::getBackground( ) { ThrowIfDisposed(); - sal_uInt32 nColor = Application::GetSettings().GetStyleSettings().GetWindowColor().GetColor(); + Color nColor = Application::GetSettings().GetStyleSettings().GetWindowColor(); return static_cast<sal_Int32>(nColor); } @@ -884,13 +884,13 @@ void SAL_CALL ThumbnailViewItemAcc::grabFocus() sal_Int32 SAL_CALL ThumbnailViewItemAcc::getForeground( ) { - sal_uInt32 nColor = Application::GetSettings().GetStyleSettings().GetWindowTextColor().GetColor(); + Color nColor = Application::GetSettings().GetStyleSettings().GetWindowTextColor(); return static_cast<sal_Int32>(nColor); } sal_Int32 SAL_CALL ThumbnailViewItemAcc::getBackground( ) { - return static_cast<sal_Int32>(Application::GetSettings().GetStyleSettings().GetWindowColor().GetColor()); + return static_cast<sal_Int32>(Application::GetSettings().GetStyleSettings().GetWindowColor()); } sal_Int64 SAL_CALL ThumbnailViewItemAcc::getSomething( const uno::Sequence< sal_Int8 >& rId ) diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index 8966a27face4..d2a30e25acdf 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -72,7 +72,7 @@ float const fMultiplier = 1.4f; BackingWindow::BackingWindow( vcl::Window* i_pParent ) : Window( i_pParent ), mbLocalViewInitialized(false), - maButtonsTextColor(officecfg::Office::Common::Help::StartCenter::StartCenterTextColor::get()), + maButtonsTextColor(Color(officecfg::Office::Common::Help::StartCenter::StartCenterTextColor::get())), mbInitControls( false ) { m_pUIBuilder.reset(new VclBuilder(this, getUIRootDir(), "sfx/ui/startcenter.ui", "StartCenter" )); @@ -279,7 +279,7 @@ void BackingWindow::initControls() mpHelpButton->SetControlForeground(maButtonsTextColor); mpExtensionsButton->SetControlForeground(maButtonsTextColor); - const Color aButtonsBackground(officecfg::Office::Common::Help::StartCenter::StartCenterBackgroundColor::get()); + const Color aButtonsBackground = Color(officecfg::Office::Common::Help::StartCenter::StartCenterBackgroundColor::get()); mpAllButtonsBox->SetBackground(aButtonsBackground); mpSmallButtonsBox->SetBackground(aButtonsBackground); diff --git a/sfx2/source/sidebar/Tools.cxx b/sfx2/source/sidebar/Tools.cxx index deeb3eb56808..727cd6f24bec 100644 --- a/sfx2/source/sidebar/Tools.cxx +++ b/sfx2/source/sidebar/Tools.cxx @@ -97,8 +97,8 @@ Gradient Tools::AwtToVclGradient (const css::awt::Gradient& rAwtGradient) { Gradient aVclGradient ( GradientStyle(rAwtGradient.Style), - rAwtGradient.StartColor, - rAwtGradient.EndColor); + Color(rAwtGradient.StartColor), + Color(rAwtGradient.EndColor)); aVclGradient.SetAngle(rAwtGradient.Angle); aVclGradient.SetBorder(rAwtGradient.Border); aVclGradient.SetOfsX(rAwtGradient.XOffset); |