Commit 0943c501 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

UPNP File List: improve appearance

parent 3f379915
...@@ -107,10 +107,13 @@ ...@@ -107,10 +107,13 @@
if (![item isContainer]) { if (![item isContainer]) {
MediaServer1ItemObject *mediaItem = _objectList[indexPath.row]; MediaServer1ItemObject *mediaItem = _objectList[indexPath.row];
[cell setSubtitle:[NSString stringWithFormat:@"%@", mediaItem.size]]; [cell setSubtitle: [NSString stringWithFormat:@"%0.2f MB", (float)([mediaItem.size intValue] / 1e6)]];
[cell setIsDirectory:NO]; [cell setIsDirectory:NO];
} else [cell setIcon:[UIImage imageNamed:@"blank"]];
} else {
[cell setIsDirectory:YES]; [cell setIsDirectory:YES];
[cell setIcon:[UIImage imageNamed:@"folder"]];
}
[cell setTitle:[item title]]; [cell setTitle:[item title]];
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<object class="IBUILabel" id="207506414"> <object class="IBUILabel" id="207506414">
<reference key="NSNextResponder" ref="162418872"/> <reference key="NSNextResponder" ref="162418872"/>
<int key="NSvFlags">290</int> <int key="NSvFlags">290</int>
<string key="NSFrame">{{45, 8}, {270, 18}}</string> <string key="NSFrame">{{45, 7}, {270, 18}}</string>
<reference key="NSSuperview" ref="162418872"/> <reference key="NSSuperview" ref="162418872"/>
<reference key="NSWindow"/> <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="816829197"/> <reference key="NSNextKeyView" ref="816829197"/>
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
<object class="IBUILabel" id="625431089"> <object class="IBUILabel" id="625431089">
<reference key="NSNextResponder" ref="162418872"/> <reference key="NSNextResponder" ref="162418872"/>
<int key="NSvFlags">266</int> <int key="NSvFlags">266</int>
<string key="NSFrame">{{45, 25}, {270, 15}}</string> <string key="NSFrame">{{45, 26}, {270, 15}}</string>
<reference key="NSSuperview" ref="162418872"/> <reference key="NSSuperview" ref="162418872"/>
<reference key="NSWindow"/> <reference key="NSWindow"/>
<string key="NSReuseIdentifierKey">_NS:9</string> <string key="NSReuseIdentifierKey">_NS:9</string>
......
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