fix Picker text color in DarkMode, tweak text size (#401)

* fix Picker text color in DarkMode, tweak text size

* review tweaks
This commit is contained in:
Bartosz Kaszubowski 2020-05-21 18:35:55 +02:00 коммит произвёл GitHub
Родитель c8d7ad9c06
Коммит d0387aa6c5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -23,16 +23,17 @@
- (instancetype)initWithFrame:(CGRect)frame
{
if ((self = [super initWithFrame:frame])) {
_color = [RCTUIColor blackColor]; // TODO(OSS Candidate ISS#2710739)
#if !TARGET_OS_OSX // TODO(macOS ISS#2323203)
_color = [RCTUIColor blackColor]; // TODO(OSS Candidate ISS#2710739)
_font = [UIFont systemFontOfSize:21]; // TODO: selected title default should be 23.5
#else // [TODO(macOS ISS#2323203)
_font = [UIFont systemFontOfSize:11];
_color = [NSColor labelColor];
_font = [NSFont systemFontOfSize:[NSFont systemFontSize]];
#endif // ]TODO(macOS ISS#2323203)
_selectedIndex = NSNotFound;
_textAlign = NSTextAlignmentCenter;
self.delegate = self;
#if TARGET_OS_OSX // [TODO(macOS ISS#2323203)
self.controlSize = NSControlSizeRegular;
self.editable = NO;