Commit afce80d7 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx dialog provider: use default system font for the scripted dialogs

parent ec59e9f7
......@@ -964,6 +964,7 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self)
[field setEditable:NO];
[field setBordered:NO];
[field setDrawsBackground:NO];
[field setFont:[NSFont systemFontOfSize:0]];
[[field cell] setControlSize:NSRegularControlSize];
[field setAutoresizingMask:NSViewNotSizable];
return field;
......@@ -973,6 +974,7 @@ static NSView *createControlFromWidget(extension_widget_t *widget, id self)
VLCDialogTextField *field = [[VLCDialogTextField alloc] init];
[field setWidget:widget];
[field setAutoresizingMask:NSViewWidthSizable];
[field setFont:[NSFont systemFontOfSize:0]];
[[field cell] setControlSize:NSRegularControlSize];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(syncTextField:) name:NSControlTextDidChangeNotification object:field];
return field;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment