mirror of
https://github.com/transmission/transmission.git
synced 2026-04-02 08:33:11 +01:00
* Remove torrents group title field setup. * Return selected color in group cell. * Apply linter rules.
18 lines
526 B
Plaintext
18 lines
526 B
Plaintext
// This file Copyright © Transmission authors and contributors.
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
// License text can be found in the licenses/ folder.
|
|
|
|
#import "GroupCell.h"
|
|
|
|
@implementation GroupCell
|
|
|
|
- (void)setBackgroundStyle:(NSBackgroundStyle)backgroundStyle
|
|
{
|
|
[super setBackgroundStyle:backgroundStyle];
|
|
|
|
__auto_type isEmphasized = backgroundStyle == NSBackgroundStyleEmphasized;
|
|
self.fGroupTitleField.textColor = isEmphasized ? NSColor.labelColor : NSColor.secondaryLabelColor;
|
|
}
|
|
|
|
@end
|