Files
transmission/macosx/GroupCell.mm
Dmitry Lobanov 5dbe953152 perf: remove torrents group title field setup. (#8498)
* Remove torrents group title field setup.

* Return selected color in group cell.

* Apply linter rules.
2026-02-16 12:00:57 -05:00

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