Skip to content

Commit

Permalink
Merge pull request #289 from Automattic/fix/checklist-preview-color
Browse files Browse the repository at this point in the history
Fix checklists displaying in wrong color in the notes list.
  • Loading branch information
roundhill authored Jan 22, 2019
2 parents 1c75979 + 9343ae2 commit 4d920b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DB5/VSTheme.m
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ - (NSColor *)getMojaveColorForKey: (NSString *)key {
return NSColor.controlBackgroundColor;
} else if ([key isEqualToString:@"textColor"] || [key isEqualToString:@"noteHeadlineFontColor"]) {
return NSColor.textColor;
} else if ([key isEqualToString:@"secondaryTextColor"] || [key isEqualToString:@"noteBodyFontPreviewColor"]) {
} else if ([key isEqualToString:@"secondaryTextColor"]) {
return NSColor.secondaryLabelColor;
}
}
Expand Down
2 changes: 2 additions & 0 deletions Simplenote/NoteListViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ - (void)applyStyle
{
VSTheme *theme = [[VSThemeManager sharedManager] theme];
statusField.textColor = [theme colorForKey:@"emptyListViewFontColor"];

[self.tableView reloadData];
}

- (IBAction)filterNotes:(id)sender {
Expand Down
8 changes: 4 additions & 4 deletions Simplenote/Simplenote-DB5.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>dividerColor</key>
<string>dbdee0</string>
<key>secondaryTextColor</key>
<string>899199</string>
<string>808080</string>
<key>noteHeadlineFont</key>
<string>@boldFontName</string>
<key>noteHeadlineFontSize</key>
Expand All @@ -39,7 +39,7 @@
<key>noteBodyFontSize~ipad</key>
<string>19</string>
<key>noteBodyFontPreviewColor</key>
<string>@secondaryTextColor</string>
<string>808080</string>
<key>noteCellBackgroundSelectionColor</key>
<string>@lightBlueColor</string>
<key>noteSidePadding</key>
Expand Down Expand Up @@ -344,13 +344,13 @@
<key>textColor</key>
<string>dbdee0</string>
<key>secondaryTextColor</key>
<string>899199</string>
<string>999999</string>
<key>dividerColor</key>
<string>4b5157</string>
<key>noteHeadlineFontColor</key>
<string>@textColor</string>
<key>noteBodyFontPreviewColor</key>
<string>@secondaryTextColor</string>
<string>999999</string>
<key>noteCellBackgroundSelectionColor</key>
<string>@lightBlueColor</string>
<key>switchTintColor</key>
Expand Down
1 change: 1 addition & 0 deletions Simplenote/SimplenoteAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,7 @@ - (void)applyStyle
[window applyMojaveThemeOverrideIfNecessary];
[self.noteEditorViewController applyStyle];
[self.noteEditorViewController fixChecklistColoring];
[self.noteListViewController applyStyle];
return;
}

Expand Down

0 comments on commit 4d920b6

Please sign in to comment.