Changeset 12844


Ignore:
Timestamp:
Sep 6, 2011, 2:56:55 AM (10 years ago)
Author:
livings124
Message:

the progress bar placement should factor in the icon's left padding

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentCell.m

    r12775 r12844  
    4949#define PADDING_HORIZONTAL 3.0
    5050#define PADDING_BETWEEN_IMAGE_AND_TITLE 5.0
    51 #define PADDING_BETWEEN_IMAGE_AND_BAR 7.0
     51#define PADDING_BETWEEN_IMAGE_AND_BAR 4.0
    5252#define PADDING_BETWEEN_TITLE_AND_PRIORITY 3.0
    5353#define PADDING_ABOVE_TITLE 4.0
     
    738738    NSRect result;
    739739    result.size.height = BAR_HEIGHT;
    740     result.origin.x = NSMinX(bounds) + IMAGE_SIZE_REG + PADDING_BETWEEN_IMAGE_AND_BAR;
     740    result.origin.x = NSMinX(bounds) + PADDING_HORIZONTAL + IMAGE_SIZE_REG + PADDING_BETWEEN_IMAGE_AND_BAR;
    741741    result.origin.y = NSMinY(bounds) + PADDING_ABOVE_TITLE + HEIGHT_TITLE + PADDING_BETWEEN_TITLE_AND_PROGRESS
    742742                        + HEIGHT_STATUS + PADDING_BETWEEN_PROGRESS_AND_BAR;
     
    751751{
    752752    NSRect result;
    753     result.origin.x = NSMinX(bounds) + IMAGE_SIZE_MIN + PADDING_BETWEEN_IMAGE_AND_BAR;
     753    result.origin.x = NSMinX(bounds) + PADDING_HORIZONTAL + IMAGE_SIZE_MIN + PADDING_BETWEEN_IMAGE_AND_BAR;
    754754    result.origin.y = NSMinY(bounds) + PADDING_BETWEEN_BAR_AND_EDGE_MIN;
    755755    result.size.height = NSHeight(bounds) - 2.0 * PADDING_BETWEEN_BAR_AND_EDGE_MIN;
Note: See TracChangeset for help on using the changeset viewer.