Kaynağa Gözat

replace the light gray by VLCDarkBackgroundColor background color in bounce area of UITableView. when search bar is enable.

Pierre SAGASPE 9 yıl önce
ebeveyn
işleme
a1e80a8054

+ 5 - 0
Sources/VLCLibraryViewController.m

@@ -112,6 +112,11 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
         if(!_tableView) {
             _tableView = [[UITableView alloc] initWithFrame:viewDimensions style:UITableViewStylePlain];
             _tableView.backgroundColor = [UIColor VLCDarkBackgroundColor];
+            CGRect frame = _tableView.bounds;
+            frame.origin.y = -frame.size.height;
+            UIView *topView = [[UIView alloc] initWithFrame:frame];
+            topView.backgroundColor = [UIColor VLCDarkBackgroundColor];
+            [_tableView addSubview:topView];
             _tableView.rowHeight = [VLCPlaylistTableViewCell heightOfCell];
             _tableView.separatorColor = [UIColor VLCDarkBackgroundColor];
             _tableView.delegate = self;

+ 5 - 0
Sources/VLCLocalPlexFolderListViewController.m

@@ -56,6 +56,11 @@
 {
     _tableView = [[UITableView alloc] initWithFrame:[UIScreen mainScreen].bounds style:UITableViewStylePlain];
     _tableView.backgroundColor = [UIColor VLCDarkBackgroundColor];
+    CGRect frame = _tableView.bounds;
+    frame.origin.y = -frame.size.height;
+    UIView *topView = [[UIView alloc] initWithFrame:frame];
+    topView.backgroundColor = [UIColor VLCDarkBackgroundColor];
+    [_tableView addSubview:topView];
     _tableView.delegate = self;
     _tableView.dataSource = self;
     _tableView.rowHeight = [VLCNetworkListCell heightOfCell];

+ 5 - 0
Sources/VLCNetworkListViewController.m

@@ -37,6 +37,11 @@ NSString *VLCNetworkListCellIdentifier = @"VLCNetworkListCellIdentifier";
 {
     _tableView = [[UITableView alloc] initWithFrame:[UIScreen mainScreen].bounds style:UITableViewStylePlain];
     _tableView.backgroundColor = [UIColor VLCDarkBackgroundColor];
+    CGRect frame = _tableView.bounds;
+    frame.origin.y = -frame.size.height;
+    UIView *topView = [[UIView alloc] initWithFrame:frame];
+    topView.backgroundColor = [UIColor VLCDarkBackgroundColor];
+    [_tableView addSubview:topView];
     _tableView.delegate = self;
     _tableView.dataSource = self;
     _tableView.opaque = YES;

+ 5 - 0
Sources/VLCSharedLibraryListViewController.m

@@ -50,6 +50,11 @@
 {
     _tableView = [[UITableView alloc] initWithFrame:[UIScreen mainScreen].bounds style:UITableViewStylePlain];
     _tableView.backgroundColor = [UIColor VLCDarkBackgroundColor];
+    CGRect frame = _tableView.bounds;
+    frame.origin.y = -frame.size.height;
+    UIView *topView = [[UIView alloc] initWithFrame:frame];
+    topView.backgroundColor = [UIColor VLCDarkBackgroundColor];
+    [_tableView addSubview:topView];
     _tableView.delegate = self;
     _tableView.dataSource = self;
     _tableView.rowHeight = [VLCNetworkListCell heightOfCell];