mirror of
https://github.com/transmission/transmission
synced 2024-12-26 17:47:37 +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
|