[vlc-commits] macOS: Use system font for help window HTML

Marvin Scholz git at videolan.org
Fri Jun 2 17:34:08 CEST 2017


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Jun  2 17:33:44 2017 +0200| [17b5af4ab87ea607cf4ae8f6088d19bd0335a51a] | committer: Marvin Scholz

macOS: Use system font for help window HTML

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=17b5af4ab87ea607cf4ae8f6088d19bd0335a51a
---

 modules/gui/macosx/VLCHelpWindowController.m | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCHelpWindowController.m b/modules/gui/macosx/VLCHelpWindowController.m
index 3bf9fdb989..43d7ad6a3a 100644
--- a/modules/gui/macosx/VLCHelpWindowController.m
+++ b/modules/gui/macosx/VLCHelpWindowController.m
@@ -58,7 +58,11 @@
 
 - (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"]];
 }
 



More information about the vlc-commits mailing list