浏览代码

About panel: minor appearance fix

Felix Paul Kühne 12 年之前
父节点
当前提交
47c27542b4
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 1 1
      AspenProject/VLCAboutViewController.m
  2. 1 2
      Resources/About Contents.html

+ 1 - 1
AspenProject/VLCAboutViewController.m

@@ -28,7 +28,7 @@
     self.navigationItem.leftBarButtonItem = [UIBarButtonItem themedRevealMenuButtonWithTarget:self andSelector:@selector(goBack:)];
 
     NSMutableString *htmlContent = [NSMutableString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"About Contents" ofType:@"html"] encoding:NSUTF8StringEncoding error:nil];
-    [htmlContent replaceOccurrencesOfString:@"ASPENVERSION" withString:[[NSString stringWithFormat:NSLocalizedString(@"VERSION_FORMAT",@""), [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]] stringByAppendingFormat:@" %@", kVLCVersionCodename] options:NSLiteralSearch range:NSMakeRange(0, 1000)];
+    [htmlContent replaceOccurrencesOfString:@"ASPENVERSION" withString:[[NSString stringWithFormat:NSLocalizedString(@"VERSION_FORMAT",@""), [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"]] stringByAppendingFormat:@"<br /><i>%@</i>", kVLCVersionCodename] options:NSLiteralSearch range:NSMakeRange(0, 1000)];
     [htmlContent replaceOccurrencesOfString:@"MOBILEVLCKITVERSION" withString:[NSString stringWithFormat:NSLocalizedString(@"BASED_ON_FORMAT",@""),[[VLCLibrary sharedLibrary] version]] options:NSLiteralSearch range:NSMakeRange(0, 1000)];
     [self.webView loadHTMLString:[NSString stringWithString:htmlContent] baseURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]]];
     htmlContent = nil;

+ 1 - 2
Resources/About Contents.html

@@ -18,8 +18,7 @@
 </td>
 <td width=160 valign="middle">
 <h3>VLC for iOS</h2>
-<h5>ASPENVERSION</h3>
-<h5>MOBILEVLCKITVERSION</h3>
+<h5>ASPENVERSION<br /><br />MOBILEVLCKITVERSION</h5>
 </td>
 </tr>
 </table>