[Libreoffice-commits] .: vcl/source
Jan Holesovsky
kendy at kemper.freedesktop.org
Sun Oct 9 15:10:24 PDT 2011
vcl/source/window/toolbox.cxx | 23 +++--------------------
1 file changed, 3 insertions(+), 20 deletions(-)
New commits:
commit 16f5c269890156395644caa5f557570c1c65ca50
Author: Jan Holesovsky <kendy at suse.cz>
Date: Mon Oct 10 00:09:24 2011 +0200
Improve the look of the 'More' toolbar indicator in the non-NWF case.
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index c19e6fb..f458fdc 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -3141,7 +3141,6 @@ void ToolBox::ImplDrawMenubutton( ToolBox *pThis, sal_Bool bHighlight )
sal_Bool bLineColor = pThis->IsLineColor();
Color aOldFillCol = pThis->GetFillColor();
Color aOldLineCol = pThis->GetLineColor();
- sal_Bool bNativeButtons = pThis->IsNativeControlSupported( CTRL_TOOLBAR, PART_BUTTON );
Rectangle aInnerRect( pThis->mpData->maMenubuttonItem.maRect );
if( pThis->mpData->mnMenuButtonWidth > TB_MENUBUTTON_SIZE )
@@ -3176,27 +3175,11 @@ void ToolBox::ImplDrawMenubutton( ToolBox *pThis, sal_Bool bHighlight )
aInnerRect.nBottom-=1;
}
- ImplErase( pThis, bNativeButtons ? pThis->mpData->maMenubuttonItem.maRect : aInnerRect, bHighlight );
+ // draw the 'more' indicator / button (>>)
+ ImplErase( pThis, pThis->mpData->maMenubuttonItem.maRect, bHighlight );
if( bHighlight )
- {
- if( bNativeButtons )
- ImplDrawButton( pThis, pThis->mpData->maMenubuttonItem.maRect, 2, sal_False, sal_True, sal_False );
- else
- pThis->DrawSelectionBackground( aInnerRect, 2, sal_False, sal_False, sal_False );
- }
- else if( !bNativeButtons )
- {
- // improve visibility by using a dark gradient
- Gradient g;
- g.SetAngle( pThis->mbHorz ? 0 : 900 );
- g.SetStyle( GRADIENT_LINEAR );
-
- g.SetStartColor( pThis->GetSettings().GetStyleSettings().GetFaceColor() );
- g.SetEndColor( pThis->GetSettings().GetStyleSettings().GetShadowColor() );
-
- pThis->DrawGradient( aInnerRect, g );
- }
+ ImplDrawButton( pThis, pThis->mpData->maMenubuttonItem.maRect, 2, sal_False, sal_True, sal_False );
Rectangle aRect( aInnerRect );
if( pThis->mbHorz )
More information about the Libreoffice-commits
mailing list