This is an automated email from the ASF dual-hosted git repository.
mseidel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git
The following commit(s) were added to refs/heads/trunk by this push:
new ece403f Draw rectangle around menu button in toolbar for better
visibility on e.g. Linux)
ece403f is described below
commit ece403fc08af8500f61e7046a79182a00b9e270f
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)
---
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 5435ce4..0c90597 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( COL_LIGHTGRAY );
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;