Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit 021df88

Browse files
authored
Merge pull request #346 from wordpress-mobile/fix/12759-action_bar_background
Media Picker action bar: Allow customizing background color.
2 parents 0266079 + 0088e4d commit 021df88

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

Pod/Classes/WPActionBar.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
*/
88
@property (nonatomic, strong) UIColor *lineColor UI_APPEARANCE_SELECTOR;
99

10+
/**
11+
The color for the action bar background.
12+
*/
13+
@property (nonatomic, strong) UIColor *barBackgroundColor UI_APPEARANCE_SELECTOR;
14+
1015
/**
1116
Adds the given button to the left side of the bar
1217

Pod/Classes/WPActionBar.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,16 @@ - (UIStackView *)stackView
8383

8484
#pragma mark - public methods
8585

86+
- (UIColor *)barBackgroundColor
87+
{
88+
return self.backgroundColor;
89+
}
90+
91+
- (void)setBarBackgroundColor:(UIColor *)barBackgroundColor
92+
{
93+
self.backgroundColor = barBackgroundColor;
94+
}
95+
8696
- (UIColor *)lineColor
8797
{
8898
return self.lineView.backgroundColor;

WPMediaPicker.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "WPMediaPicker"
3-
s.version = "1.6.0"
3+
s.version = "1.6.1-beta.1"
44
s.summary = "WPMediaPicker is an iOS controller that allows capture and picking of media assets."
55
s.description = <<-DESC
66
WPMediaPicker is an iOS controller that allows capture and picking of media assets.

0 commit comments

Comments
 (0)