mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Tightening up space in feed detail toolbar buttons.
This commit is contained in:
parent
d76fb024c8
commit
0485336f48
4 changed files with 16 additions and 3 deletions
|
@ -41,6 +41,8 @@
|
|||
@property (nonatomic) IBOutlet UIBarButtonItem * feedMarkReadButton;
|
||||
@property (nonatomic) IBOutlet UIBarButtonItem * settingsBarButton;
|
||||
@property (nonatomic) IBOutlet UIBarButtonItem * spacerBarButton;
|
||||
@property (nonatomic) IBOutlet UIBarButtonItem * spacer2BarButton;
|
||||
@property (nonatomic) IBOutlet UIBarButtonItem * spacer3BarButton;
|
||||
@property (nonatomic) IBOutlet UIBarButtonItem * separatorBarButton;
|
||||
@property (nonatomic) IBOutlet TransparentToolbar * rightToolbar;
|
||||
@property (nonatomic, retain) WEPopoverController *popoverController;
|
||||
|
|
|
@ -44,7 +44,8 @@
|
|||
@synthesize popoverController;
|
||||
@synthesize storyTitlesTable, feedMarkReadButton;
|
||||
@synthesize settingsBarButton;
|
||||
@synthesize spacerBarButton, separatorBarButton;
|
||||
@synthesize separatorBarButton;
|
||||
@synthesize spacerBarButton, spacer2BarButton, spacer3BarButton;
|
||||
@synthesize stories;
|
||||
@synthesize rightToolbar;
|
||||
@synthesize appDelegate;
|
||||
|
@ -68,12 +69,18 @@
|
|||
self.storyTitlesTable.backgroundColor = UIColorFromRGB(0xf4f4f4);
|
||||
|
||||
rightToolbar = [[TransparentToolbar alloc]
|
||||
initWithFrame:CGRectMake(0, 0, 80,
|
||||
initWithFrame:CGRectMake(0, 0, 76,
|
||||
self.navigationController.view.frame.size.height)];
|
||||
|
||||
spacerBarButton = [[UIBarButtonItem alloc]
|
||||
initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
|
||||
spacerBarButton.width = -16;
|
||||
spacerBarButton.width = -12;
|
||||
spacer2BarButton = [[UIBarButtonItem alloc]
|
||||
initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
|
||||
spacer2BarButton.width = -4;
|
||||
spacer3BarButton = [[UIBarButtonItem alloc]
|
||||
initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace target:nil action:nil];
|
||||
spacer3BarButton.width = -4;
|
||||
|
||||
UIImage *separatorImage = [UIImage imageNamed:@"bar-separator.png"];
|
||||
separatorBarButton = [UIBarButtonItem barItemWithImage:separatorImage target:nil action:nil];
|
||||
|
@ -125,14 +132,18 @@
|
|||
[rightToolbar setItems: [NSArray arrayWithObjects:
|
||||
spacerBarButton,
|
||||
feedMarkReadButton,
|
||||
spacer2BarButton,
|
||||
separatorBarButton,
|
||||
spacer3BarButton,
|
||||
titleImageBarButton, nil]];
|
||||
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:rightToolbar];
|
||||
} else {
|
||||
[rightToolbar setItems: [NSArray arrayWithObjects:
|
||||
spacerBarButton,
|
||||
feedMarkReadButton,
|
||||
spacer2BarButton,
|
||||
separatorBarButton,
|
||||
spacer3BarButton,
|
||||
settingsBarButton, nil]];
|
||||
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:rightToolbar];
|
||||
}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 230 B |
Binary file not shown.
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 239 B |
Loading…
Add table
Reference in a new issue