Преглед изворни кода

playlist: fix scaling and alignment issues of the older button (closes #14948)

Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
Shenghan Chen пре 10 година
родитељ
комит
b2daf359c9
1 измењених фајлова са 2 додато и 5 уклоњено
  1. 2 5
      Sources/VLCPlaylistViewController.m

+ 2 - 5
Sources/VLCPlaylistViewController.m

@@ -164,11 +164,8 @@ static NSString *kUsingTableViewToShowData = @"UsingTableViewToShowData";
     UIBarButtonItem *createFolderItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemOrganize target:self action:@selector(createFolder)];
 
     // Better visual alignment with the action button
-    UIEdgeInsets insets = UIEdgeInsetsMake(4, 0, 0, 0);
-    if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
-        insets.top += 1;
-    }
-    createFolderItem.imageInsets = insets;
+    createFolderItem.imageInsets = UIEdgeInsetsMake(4, 0, -4, 0);
+    createFolderItem.landscapeImagePhoneInsets = UIEdgeInsetsMake(3, 0, -3, 0);
 
     _actionBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(actOnSelection:)];
     _actionBarButtonItem.enabled = NO;