parameters: (self, dc, rect)
docstring: Draws the menu bar background according to the active theme.
  
          :param `dc`: an instance of :class:`DC`;
          :param `rect`: an instance of :class:`Rect`, representing the menubar client rectangle.
docstring_summary: Draws the menu bar background according to the active theme.
docstring_tokens: Draws the menu bar background according to the active theme .
function: def DrawMenuBarBackground(self, dc, rect):
          """
          Draws the menu bar background according to the active theme.
  
          :param `dc`: an instance of :class:`DC`;
          :param `rect`: an instance of :class:`Rect`, representing the menubar client rectangle.
          """
  
          # For office style, we simple draw a rectangle with a gradient colouring
          artMgr = ArtManager.Get()
          vertical = artMgr.GetMBVerticalGradient()
  
          dcsaver = DCSaver(dc)
  
          # fill with gradient
          startColour = artMgr.GetMenuBarFaceColour()
          if artMgr.IsDark(startColour):
              startColour = artMgr.LightColour(startColour, 50)
  
          endColour = artMgr.LightColour(startColour, 90)
          artMgr.PaintStraightGradientBox(dc, rect, startColour, endColour, vertical)
  
          # Draw the border
          if artMgr.GetMenuBarBorder():
  
              dc.SetPen(wx.Pen(startColour))
              dc.SetBrush(wx.TRANSPARENT_BRUSH)
              dc.DrawRectangleRect(rect)
function_tokens: def DrawMenuBarBackground ( self , dc , rect ) : # For office style, we simple draw a rectangle with a gradient colouring artMgr = ArtManager . Get ( ) vertical = artMgr . GetMBVerticalGradient ( ) dcsaver = DCSaver ( dc ) # fill with gradient startColour = artMgr . GetMenuBarFaceColour ( ) if artMgr . IsDark ( startColour ) : startColour = artMgr . LightColour ( startColour , 50 ) endColour = artMgr . LightColour ( startColour , 90 ) artMgr . PaintStraightGradientBox ( dc , rect , startColour , endColour , vertical ) # Draw the border if artMgr . GetMenuBarBorder ( ) : dc . SetPen ( wx . Pen ( startColour ) ) dc . SetBrush ( wx . TRANSPARENT_BRUSH ) dc . DrawRectangleRect ( rect )