macOS: Use system font for help window HTML
authorMarvin Scholz <epirat07@gmail.com>
Fri, 2 Jun 2017 15:33:44 +0000 (17:33 +0200)
committerMarvin Scholz <epirat07@gmail.com>
Fri, 2 Jun 2017 15:33:44 +0000 (17:33 +0200)
modules/gui/macosx/VLCHelpWindowController.m

index 3bf9fdb..43d7ad6 100644 (file)
 
 - (IBAction)helpGoHome:(id)sender
 {
-    [[helpWebView mainFrame] loadHTMLString:_NS(I_LONGHELP)
+    NSString *htmlWithStyle = [NSString
+                               stringWithFormat:@"<style>body { font-family: -apple-system, %@; }</style>%@",
+                               ((OSX_YOSEMITE) ? @"Helvetica Neue" : @"Lucida Grande"), _NS(I_LONGHELP)];
+
+    [[helpWebView mainFrame] loadHTMLString:htmlWithStyle
                                     baseURL:[NSURL URLWithString:@"http://videolan.org"]];
 }