Skip to content

Commit

Permalink
KOA-6242 BPKCalendar, update range color (#1726)
Browse files Browse the repository at this point in the history
* feat: update calendar range highlight color to `surfaceSubtle`

* chore: update snapshot tests

* fix: tap different cell to showcase range

* chore: update docs screenshot
  • Loading branch information
gert-janvercauteren authored Aug 8, 2023
1 parent 5559da4 commit f4f87c9
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Backpack/Calendar/Classes/BPKCalendarCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ - (void)layoutSubviews {
- (void)configureAppearance {
[super configureAppearance];

UIColor *rangeColor = BPKColor.surfaceHighlightColor;
UIColor *rangeColor = BPKColor.surfaceSubtleColor;
UIColor *selectedColor = self.preferredTitleSelectionColor ?: self.appearance.titleColors[@(FSCalendarCellStateSelected)];
UIColor *color = self.preferredTitleDefaultColor ?: [self colorForCurrentStateInDictionary:self.appearance.titleColors];

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Example/Backpack Screenshot/Screenshots.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class Screenshots: BackpackSnapshotTestCase {
saveScreenshot(component: "calendar", scenario: "single", userInterfaceStyle: userInterfaceStyle)
app.buttons["Range"].tap()
app.cells.element(boundBy: 25).tap()
app.cells.element(boundBy: 32).tap()
app.cells.element(boundBy: 30).tap()
saveScreenshot(component: "calendar", scenario: "range", userInterfaceStyle: userInterfaceStyle)
app.buttons["Multiple"].tap()
app.cells.element(boundBy: 25).tap()
Expand Down
Binary file modified screenshots/iPhone-calendar___range_dm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/iPhone-calendar___range_lm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f4f87c9

Please sign in to comment.