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

Commit 7d15c4e

Browse files
committed
Merge branch 'release/0.4.1'
2 parents 62ac5ae + 189a03b commit 7d15c4e

File tree

4 files changed

+42
-36
lines changed

4 files changed

+42
-36
lines changed

WordPress-iOS-Shared-Example/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ PODS:
2828
- CocoaLumberjack/Core
2929
- CocoaLumberjack/Extensions (2.0.0):
3030
- CocoaLumberjack/Default
31-
- WordPress-iOS-Shared (0.3.5):
31+
- WordPress-iOS-Shared (0.4.1):
3232
- AFNetworking (~> 2.5)
3333
- CocoaLumberjack (= 2.0.0)
3434

@@ -42,6 +42,6 @@ EXTERNAL SOURCES:
4242
SPEC CHECKSUMS:
4343
AFNetworking: 05edc0ac4c4c8cf57bcf4b84be5b0744b6d8e71e
4444
CocoaLumberjack: a6f77d987d65dc7ba86b0f84db7d0b9084f77bcb
45-
WordPress-iOS-Shared: 155109cd666b8416ce0d2bdb2b8f6f6f6ec2ac50
45+
WordPress-iOS-Shared: 1fa8e955d895f3b14d11fe0ddc54f857332aba2d
4646

4747
COCOAPODS: 0.37.2

WordPress-iOS-Shared.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 = "WordPress-iOS-Shared"
3-
s.version = "0.4.0"
3+
s.version = "0.4.1"
44
s.summary = "Shared components used in building the WordPress iOS apps and other library components."
55

66
s.description = <<-DESC

WordPress-iOS-Shared/Core/WPStyleGuide.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@
6161
// View and TableView Helpers
6262
+ (void)configureColorsForView:(UIView *)view andTableView:(UITableView *)tableView;
6363
+ (void)configureColorsForView:(UIView *)view collectionView:(UICollectionView *)collectionView;
64-
+ (void)configureTableViewActionCell:(UITableViewCell *)cell;
6564
+ (void)configureTableViewCell:(UITableViewCell *)cell;
66-
+ (void)configureTableViewTextCell:(WPTextFieldTableViewCell *)cell;
6765
+ (void)configureTableViewSmallSubtitleCell:(UITableViewCell *)cell;
66+
+ (void)configureTableViewActionCell:(UITableViewCell *)cell;
67+
+ (void)configureTableViewDestructiveActionCell:(UITableViewCell *)cell;
68+
+ (void)configureTableViewTextCell:(WPTextFieldTableViewCell *)cell;
6869

6970
// Move to a feature category
7071
+ (UIColor *)buttonActionColor;

WordPress-iOS-Shared/Core/WPStyleGuide.m

Lines changed: 36 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,17 @@ + (NSDictionary *)regularTextAttributes
127127

128128
+ (UIFont *)tableviewTextFont
129129
{
130-
return [WPFontManager openSansRegularFontOfSize:18.0];
130+
return [WPFontManager openSansRegularFontOfSize:17.0];
131131
}
132132

133133
+ (UIFont *)tableviewSubtitleFont
134134
{
135-
return [WPFontManager openSansLightFontOfSize:18.0];
135+
return [WPFontManager openSansRegularFontOfSize:17.0];
136136
}
137137

138138
+ (UIFont *)tableviewSectionHeaderFont
139139
{
140-
return [WPFontManager openSansBoldFontOfSize:12.0];
140+
return [WPFontManager openSansRegularFontOfSize:13.0];
141141
}
142142

143143

@@ -287,18 +287,18 @@ + (UIColor *)tableViewActionColor
287287
return [self wordPressBlue];
288288
}
289289

290-
// TODO: Move to fetaure category
290+
// TODO: Move to feature category
291291
+ (UIColor *)buttonActionColor
292292
{
293293
return [self wordPressBlue];
294294
}
295295

296-
// TODO: Move to fetaure category
296+
// TODO: Move to feature category
297297
+ (UIColor *)nuxFormText {
298298
return [self darkGrey];
299299
}
300300

301-
// TODO: Move to fetaure category
301+
// TODO: Move to feature category
302302
+ (UIColor *)nuxFormPlaceholderText {
303303
return [self grey];
304304
}
@@ -339,22 +339,16 @@ + (UIBarButtonItem *)spacerForNavigationBarButtonItems
339339
+ (void)configureColorsForView:(UIView *)view andTableView:(UITableView *)tableView
340340
{
341341
tableView.backgroundView = nil;
342-
view.backgroundColor = [WPStyleGuide itsEverywhereGrey];
343-
tableView.backgroundColor = [WPStyleGuide itsEverywhereGrey];
344-
tableView.separatorColor = [WPStyleGuide readGrey];
342+
view.backgroundColor = [WPStyleGuide greyLighten30];
343+
tableView.backgroundColor = [WPStyleGuide greyLighten30];
344+
tableView.separatorColor = [WPStyleGuide greyLighten20];
345345
}
346346

347347
+ (void)configureColorsForView:(UIView *)view collectionView:(UICollectionView *)collectionView
348348
{
349349
collectionView.backgroundView = nil;
350-
collectionView.backgroundColor = [WPStyleGuide itsEverywhereGrey];
351-
view.backgroundColor = [WPStyleGuide itsEverywhereGrey];
352-
}
353-
354-
+ (void)configureTableViewActionCell:(UITableViewCell *)cell
355-
{
356-
cell.textLabel.font = [self tableviewTextFont];
357-
cell.textLabel.textColor = [self tableViewActionColor];
350+
collectionView.backgroundColor = [WPStyleGuide greyLighten30];
351+
view.backgroundColor = [WPStyleGuide greyLighten30];
358352
}
359353

360354
+ (void)configureTableViewCell:(UITableViewCell *)cell
@@ -365,12 +359,29 @@ + (void)configureTableViewCell:(UITableViewCell *)cell
365359
cell.detailTextLabel.font = [self tableviewSubtitleFont];
366360
[cell.detailTextLabel sizeToFit];
367361

368-
cell.textLabel.textColor = [self whisperGrey];
369-
cell.detailTextLabel.textColor = [self whisperGrey];
370-
if ([cell isKindOfClass:[WPTextFieldTableViewCell class]]) {
371-
WPTextFieldTableViewCell *tfcell = (WPTextFieldTableViewCell *)cell;
372-
[tfcell.textField setTextColor:[self whisperGrey]];
373-
}
362+
cell.textLabel.textColor = [self darkGrey];
363+
cell.detailTextLabel.textColor = [self grey];
364+
}
365+
366+
+ (void)configureTableViewSmallSubtitleCell:(UITableViewCell *)cell
367+
{
368+
[self configureTableViewCell:cell];
369+
cell.detailTextLabel.font = [self subtitleFont];
370+
cell.detailTextLabel.textColor = [self darkGrey];
371+
}
372+
373+
+ (void)configureTableViewActionCell:(UITableViewCell *)cell
374+
{
375+
[self configureTableViewCell:cell];
376+
cell.textLabel.font = [self tableviewTextFont];
377+
cell.textLabel.textColor = [self tableViewActionColor];
378+
}
379+
380+
+ (void)configureTableViewDestructiveActionCell:(UITableViewCell *)cell
381+
{
382+
[self configureTableViewActionCell:cell];
383+
cell.textLabel.textAlignment = NSTextAlignmentCenter;
384+
cell.textLabel.textColor = [self errorRed];
374385
}
375386

376387
+ (void)configureTableViewTextCell:(WPTextFieldTableViewCell *)cell
@@ -379,20 +390,14 @@ + (void)configureTableViewTextCell:(WPTextFieldTableViewCell *)cell
379390
cell.textField.font = [self tableviewSubtitleFont];
380391

381392
if (cell.textField.enabled) {
382-
cell.textField.textColor = [self darkAsNightGrey];
393+
cell.textField.textColor = [self darkBlue];
383394
cell.textField.textAlignment = NSTextAlignmentLeft;
384395
} else {
385-
cell.textField.textColor = [self textFieldPlaceholderGrey];
396+
cell.textField.textColor = [self grey];
386397
cell.textField.textAlignment = NSTextAlignmentRight;
387398
}
388399
}
389400

390-
+ (void)configureTableViewSmallSubtitleCell:(UITableViewCell *)cell
391-
{
392-
[self configureTableViewCell:cell];
393-
cell.detailTextLabel.font = [self subtitleFont];
394-
}
395-
396401
// TODO: Move to fetaure category
397402
+ (void)configureFollowButton:(UIButton *)followButton {
398403
followButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;

0 commit comments

Comments
 (0)