mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
15 lines
302 B
Objective-C
15 lines
302 B
Objective-C
#import "DisableTextField.h"
|
|
|
|
@implementation DisableTextField
|
|
|
|
- (void) setEnabled: (BOOL) enabled
|
|
{
|
|
[super setEnabled: enabled];
|
|
|
|
if (!enabled)
|
|
[self setTextColor: [NSColor secondarySelectedControlColor]];
|
|
else
|
|
[self setTextColor: [NSColor controlTextColor]];
|
|
}
|
|
|
|
@end
|