Skip to content

Commit

Permalink
Merge pull request #346 from wordpress-mobile/fix/12759-action_bar_ba…
Browse files Browse the repository at this point in the history
…ckground

Media Picker action bar: Allow customizing background color.
  • Loading branch information
ScoutHarris authored Mar 11, 2020
2 parents 0266079 + 0088e4d commit 021df88
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Pod/Classes/WPActionBar.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
*/
@property (nonatomic, strong) UIColor *lineColor UI_APPEARANCE_SELECTOR;

/**
The color for the action bar background.
*/
@property (nonatomic, strong) UIColor *barBackgroundColor UI_APPEARANCE_SELECTOR;

/**
Adds the given button to the left side of the bar
Expand Down
10 changes: 10 additions & 0 deletions Pod/Classes/WPActionBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,16 @@ - (UIStackView *)stackView

#pragma mark - public methods

- (UIColor *)barBackgroundColor
{
return self.backgroundColor;
}

- (void)setBarBackgroundColor:(UIColor *)barBackgroundColor
{
self.backgroundColor = barBackgroundColor;
}

- (UIColor *)lineColor
{
return self.lineView.backgroundColor;
Expand Down
2 changes: 1 addition & 1 deletion WPMediaPicker.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "WPMediaPicker"
s.version = "1.6.0"
s.version = "1.6.1-beta.1"
s.summary = "WPMediaPicker is an iOS controller that allows capture and picking of media assets."
s.description = <<-DESC
WPMediaPicker is an iOS controller that allows capture and picking of media assets.
Expand Down

0 comments on commit 021df88

Please sign in to comment.