Procházet zdrojové kódy

don't use image stack for server, use single layer but transparent PNG instead
fix spacing between server image view and title label for focused state

Tobias Conradi před 9 roky
rodič
revize
6164586dac
14 změnil soubory, kde provedl 24 přidání a 76 odebrání
  1. 21 0
      Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imageset/Contents.json
  2. binární
      Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imageset/ServerIcon.png
  3. 0 13
      Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json
  4. binární
      Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Back.imagestacklayer/Content.imageset/ServerIconSlice-back.png
  5. 0 6
      Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Back.imagestacklayer/Contents.json
  6. 0 17
      Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Contents.json
  7. 0 13
      Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json
  8. binární
      Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Front.imagestacklayer/Content.imageset/ServerIconSlice-front.png
  9. 0 6
      Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Front.imagestacklayer/Contents.json
  10. 0 13
      Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json
  11. binární
      Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Middle.imagestacklayer/Content.imageset/ServerIconSlice-middle.png
  12. 0 6
      Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Middle.imagestacklayer/Contents.json
  13. 3 2
      Apple-TV/VLCRemoteBrowsingTVCell.m
  14. binární
      share/AppleTV/ServerIcon.png

+ 21 - 0
Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imageset/Contents.json

@@ -0,0 +1,21 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "filename" : "ServerIcon.png",
+      "scale" : "1x"
+    },
+    {
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "version" : 1,
+    "author" : "xcode"
+  }
+}

binární
Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imageset/ServerIcon.png


+ 0 - 13
Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Back.imagestacklayer/Content.imageset/Contents.json

@@ -1,13 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "tv",
-      "filename" : "ServerIconSlice-back.png",
-      "scale" : "1x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

binární
Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Back.imagestacklayer/Content.imageset/ServerIconSlice-back.png


+ 0 - 6
Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Back.imagestacklayer/Contents.json

@@ -1,6 +0,0 @@
-{
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

+ 0 - 17
Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Contents.json

@@ -1,17 +0,0 @@
-{
-  "layers" : [
-    {
-      "filename" : "Front.imagestacklayer"
-    },
-    {
-      "filename" : "Middle.imagestacklayer"
-    },
-    {
-      "filename" : "Back.imagestacklayer"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

+ 0 - 13
Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Front.imagestacklayer/Content.imageset/Contents.json

@@ -1,13 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "tv",
-      "filename" : "ServerIconSlice-front.png",
-      "scale" : "1x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

binární
Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Front.imagestacklayer/Content.imageset/ServerIconSlice-front.png


+ 0 - 6
Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Front.imagestacklayer/Contents.json

@@ -1,6 +0,0 @@
-{
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

+ 0 - 13
Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Middle.imagestacklayer/Content.imageset/Contents.json

@@ -1,13 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "tv",
-      "filename" : "ServerIconSlice-middle.png",
-      "scale" : "1x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

binární
Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Middle.imagestacklayer/Content.imageset/ServerIconSlice-middle.png


+ 0 - 6
Apple-TV/Assets.xcassets/NetworkBrowsing/serverIcon.imagestack/Middle.imagestacklayer/Contents.json

@@ -1,6 +0,0 @@
-{
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

+ 3 - 2
Apple-TV/VLCRemoteBrowsingTVCell.m

@@ -32,10 +32,11 @@ NSString *const VLCRemoteBrowsingTVCellIdentifier = @"VLCRemoteBrowsingTVCell";
     [super awakeFromNib];
     _artworkProvider = [[VLCMDFBrowsingArtworkProvider alloc] init];
     _artworkProvider.artworkReceiver = self;
-    [self prepareForReuse];
     UILayoutGuide *focusedFrameGuide = self.thumbnailImageView.focusedFrameGuide;
-    NSLayoutConstraint *constraint = [self.titleLabel.topAnchor constraintEqualToAnchor:focusedFrameGuide.bottomAnchor];
+    NSLayoutConstraint *constraint = [self.titleLabel.topAnchor constraintEqualToAnchor:focusedFrameGuide.bottomAnchor constant:15];
     [self.contentView addConstraint:constraint];
+
+    [self prepareForReuse];
 }
 
 - (void)prepareForReuse

binární
share/AppleTV/ServerIcon.png