From e4735aa9c66d365fbbfb82e1d50c29ea26f3557c Mon Sep 17 00:00:00 2001 From: Robert Roebling Date: Tue, 6 Nov 2007 18:41:36 +0000 Subject: [PATCH] Minor optical corrections git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@49690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/minifram.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/gtk/minifram.cpp b/src/gtk/minifram.cpp index 3a25d85556..47aebabed5 100644 --- a/src/gtk/minifram.cpp +++ b/src/gtk/minifram.cpp @@ -94,18 +94,20 @@ static gboolean gtk_window_own_expose_callback(GtkWidget* widget, GdkEventExpose (style & wxTINY_CAPTION_VERT))) { dc.SetFont( *wxSMALL_FONT ); - int height = dc.GetCharHeight(); wxBrush brush( LightContrastColour( wxSystemSettings::GetColour(wxSYS_COLOUR_HIGHLIGHT) ) ); dc.SetBrush( brush ); dc.SetPen( *wxTRANSPARENT_PEN ); - dc.DrawRectangle( 3, 3, win->m_width - 7, height ); + dc.DrawRectangle( win->m_miniEdge-1, + win->m_miniEdge-1, + win->m_width - (2*(win->m_miniEdge-1)), + 15 ); dc.SetTextForeground( *wxWHITE ); - dc.DrawText( win->GetTitle(), 6, 3 ); + dc.DrawText( win->GetTitle(), 6, 4 ); if (style & wxCLOSE_BOX) - dc.DrawBitmap( win->m_closeButton, win->m_width-19, 2, true ); + dc.DrawBitmap( win->m_closeButton, win->m_width-18, 3, true ); } return false; }