This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch AOO42X
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/AOO42X by this push:
     new af89ef6112 Draw rectangle around menu button in toolbar for better 
visibility on e.g. Linux)
af89ef6112 is described below

commit af89ef611203bd4a1553a90a0a68d8381402aa3f
Author: mseidel <[email protected]>
AuthorDate: Tue Mar 8 00:20:10 2022 +0100

    Draw rectangle around menu button in toolbar for better visibility on e.g. 
Linux)
    
    (cherry picked from commit ece403fc08af8500f61e7046a79182a00b9e270f)
---
 main/vcl/source/window/toolbox.cxx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/main/vcl/source/window/toolbox.cxx 
b/main/vcl/source/window/toolbox.cxx
index 23fe53642b..315cddf3ac 100644
--- a/main/vcl/source/window/toolbox.cxx
+++ b/main/vcl/source/window/toolbox.cxx
@@ -3278,6 +3278,7 @@ void ToolBox::ImplDrawMenubutton( ToolBox *pThis, 
sal_Bool bHighlight )
             g.SetEndColor( 
pThis->GetSettings().GetStyleSettings().GetShadowColor() );
 
             pThis->DrawGradient( aInnerRect, g );
+            pThis->DrawRect( aInnerRect );
         }
 
         Rectangle aRect( aInnerRect );
@@ -3669,7 +3670,7 @@ void ToolBox::ImplDrawItem( sal_uInt16 nPos, sal_Bool 
bHighlight, sal_Bool bPain
         {
             // left align also to leave space for drop down arrow
             // and when drawing text+image
-            // just center in y, except for vertical (ie rotated text)
+            // just center in y, except for vertical (i.e. rotated text)
             if( mbHorz || !bText )
                 nImageOffY += (nBtnHeight-aImageSize.Height())/2;
         }
@@ -5561,7 +5562,7 @@ void ToolBox::LoseFocus()
 
 // -----------------------------------------------------------------------
 
-// performs the action associated with an item, ie simulates clicking the item
+// performs the action associated with an item, i.e. simulates clicking the 
item
 void ToolBox::TriggerItem( sal_uInt16 nItemId, sal_Bool bShift, sal_Bool bCtrl 
)
 {
     mnHighItemId = nItemId;

Reply via email to