diff options
Diffstat (limited to 'dbaccess/source/ui/control/VertSplitView.cxx')
-rw-r--r-- | dbaccess/source/ui/control/VertSplitView.cxx | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/dbaccess/source/ui/control/VertSplitView.cxx b/dbaccess/source/ui/control/VertSplitView.cxx index f23f9becbbd7..cb086c037006 100644 --- a/dbaccess/source/ui/control/VertSplitView.cxx +++ b/dbaccess/source/ui/control/VertSplitView.cxx @@ -34,7 +34,7 @@ OSplitterView::OSplitterView(vcl::Window* _pParent,bool _bVertical) : Window(_pP ,m_pRight(nullptr) ,m_bVertical(_bVertical) { - ImplInitSettings( true, true, true ); + ImplInitSettings( true ); } OSplitterView::~OSplitterView() @@ -64,27 +64,21 @@ IMPL_LINK_NOARG_TYPED( OSplitterView, SplitHdl, Splitter*, void ) Resize(); } -void OSplitterView::ImplInitSettings( bool bFont, bool bForeground, bool bBackground ) +void OSplitterView::ImplInitSettings( bool bBackground ) { // FIXME RenderContext const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings(); - if ( bFont ) - { - vcl::Font aFont = rStyleSettings.GetAppFont(); - if ( IsControlFont() ) - aFont.Merge( GetControlFont() ); - SetPointFont(*this, aFont); -// Set/*Zoomed*/PointFont( aFont ); - } + vcl::Font aFont = rStyleSettings.GetAppFont(); + if ( IsControlFont() ) + aFont.Merge( GetControlFont() ); + SetPointFont(*this, aFont); +// Set/*Zoomed*/PointFont( aFont ); - if ( bFont || bForeground ) - { - Color aTextColor = rStyleSettings.GetButtonTextColor(); - if ( IsControlForeground() ) - aTextColor = GetControlForeground(); - SetTextColor( aTextColor ); - } + Color aTextColor = rStyleSettings.GetButtonTextColor(); + if ( IsControlForeground() ) + aTextColor = GetControlForeground(); + SetTextColor( aTextColor ); if ( bBackground ) { @@ -102,7 +96,7 @@ void OSplitterView::DataChanged( const DataChangedEvent& rDCEvt ) if ( (rDCEvt.GetType() == DataChangedEventType::SETTINGS) && (rDCEvt.GetFlags() & AllSettingsFlags::STYLE) ) { - ImplInitSettings( true, true, true ); + ImplInitSettings( true ); Invalidate(); } } |