Commit b2daf359 authored by Shenghan Chen's avatar Shenghan Chen Committed by Felix Paul Kühne
Browse files

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


Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 53c01e7a
......@@ -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;
......
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