2022-12-22 02:01:52 +00:00
|
|
|
// This file Copyright © 2022 Transmission authors and contributors.
|
2022-06-03 00:05:15 +00:00
|
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
|
|
// License text can be found in the licenses/ folder.
|
|
|
|
|
|
|
|
#import "PriorityPopUpButtonCell.h"
|
|
|
|
|
2022-10-19 19:28:21 +00:00
|
|
|
static CGFloat const kFrameInset = 2.0;
|
2022-06-03 00:05:15 +00:00
|
|
|
|
|
|
|
@implementation PriorityPopUpButtonCell
|
|
|
|
|
|
|
|
- (void)drawTitleWithFrame:(NSRect)cellFrame inView:(NSView*)controlView
|
|
|
|
{
|
|
|
|
NSRect textFrame = cellFrame;
|
2022-10-19 19:28:21 +00:00
|
|
|
textFrame.origin.x += 2 * kFrameInset;
|
2022-06-03 00:05:15 +00:00
|
|
|
|
|
|
|
[super drawTitleWithFrame:textFrame inView:controlView];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|