summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-06-25 13:33:11 +0000
committerKurt Zenker <kz@openoffice.org>2008-06-25 13:33:11 +0000
commitf68797f95517777b731676f1e291fb989ad52560 (patch)
tree117cf32f5f5326f87590a93b6116eb4816c542cc /vcl/source/window
parent51f84e70306e6a2303175e9f9980177fa0b83556 (diff)
INTEGRATION: CWS vcl89 (1.161.16); FILE MERGED
2008/05/09 08:44:02 pl 1.161.16.2: RESYNC: (1.161-1.162); FILE MERGED 2008/04/23 17:38:35 pl 1.161.16.1: #i87559# highcontrast should not draw black to white gradient
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/menu.cxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 0f9951685557..e0b805821826 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: menu.cxx,v $
- * $Revision: 1.163 $
+ * $Revision: 1.164 $
*
* This file is part of OpenOffice.org.
*
@@ -5637,6 +5637,19 @@ void MenuBarWindow::Paint( const Rectangle& )
pMenu->ImplPaint( this, 0 );
if ( nHighlightedItem != ITEMPOS_INVALID )
HighlightItem( nHighlightedItem, TRUE );
+
+ // in high contrast mode draw a separating line on the lower edge
+ if( ! IsNativeControlSupported( CTRL_MENUBAR, PART_ENTIRE_CONTROL) &&
+ GetSettings().GetStyleSettings().GetFaceColor().IsDark() )
+ {
+ Push( PUSH_LINECOLOR | PUSH_MAPMODE );
+ SetLineColor( Color( COL_WHITE ) );
+ SetMapMode( MapMode( MAP_PIXEL ) );
+ Size aSize = GetSizePixel();
+ DrawLine( Point( 0, aSize.Height()-1 ), Point( aSize.Width()-1, aSize.Height()-1 ) );
+ Pop();
+ }
+
}
void MenuBarWindow::Resize()