Changeset 12863


Ignore:
Timestamp:
Sep 14, 2011, 3:15:58 AM (10 years ago)
Author:
livings124
Message:

when drawing gradients in the status and filter bar, always draw the full height

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FilterBarView.m

    r12493 r12863  
    8383    NSRectFillListWithColors(gridRects, colorRects, count);
    8484   
    85     [fGradient drawInRect: rect angle: 270.0];
     85    const NSRect gradientRect = NSMakeRect(NSMinX(rect), 1.0, NSWidth(rect), NSHeight([self bounds]) - 1.0 - 1.0); //proper gradient requires the full height of the bar
     86    [fGradient drawInRect: gradientRect angle: 270.0];
    8687}
    8788
  • trunk/macosx/StatusBarView.m

    r12493 r12863  
    101101   
    102102    if (active)
    103         [fGradient drawInRect: rect angle: 270.0];
     103    {
     104        const NSRect gradientRect = NSMakeRect(NSMinX(rect), 1.0, NSWidth(rect), NSHeight([self bounds]) - 1.0 - 1.0); //proper gradient requires the full height of the bar
     105        [fGradient drawInRect: gradientRect angle: 270.0];
     106    }
    104107    else
    105108    {
Note: See TracChangeset for help on using the changeset viewer.