From f012b5341c051d508853018a4aa60b5043e726ff Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 29 Sep 2006 11:47:02 +0000 Subject: [PATCH] use smaller statusbar margins in mono theme git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/univ/themes/mono.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/univ/themes/mono.cpp b/src/univ/themes/mono.cpp index ccb665577c..1769ce0b26 100644 --- a/src/univ/themes/mono.cpp +++ b/src/univ/themes/mono.cpp @@ -205,6 +205,12 @@ public: const wxMenu& menu) const; #endif // wxUSE_MENUS +#if wxUSE_STATUSBAR + virtual wxCoord GetStatusBarBorderBetweenFields() const; + + virtual wxSize GetStatusBarFieldMargins() const; +#endif // wxUSE_STATUSBAR + protected: // override base class border drawing routines: we always draw just a // single simple border @@ -1029,6 +1035,24 @@ void wxMonoRenderer::DrawScrollbarShaft(wxDC& dc, DrawSolidRect(dc, wxMONO_BG_COL, rect); } +// ---------------------------------------------------------------------------- +// status bar +// ---------------------------------------------------------------------------- + +#if wxUSE_STATUSBAR + +wxCoord wxMonoRenderer::GetStatusBarBorderBetweenFields() const +{ + return 1; +} + +wxSize wxMonoRenderer::GetStatusBarFieldMargins() const +{ + return wxSize(1, 1); +} + +#endif // wxUSE_STATUSBAR + // ---------------------------------------------------------------------------- // top level windows // ---------------------------------------------------------------------------- -- 2.45.2