Skip to content

Commit

Permalink
More space for Picker font variance (#1675)
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke authored Sep 14, 2023
1 parent 6468713 commit b938ecc
Show file tree
Hide file tree
Showing 18 changed files with 618 additions and 551 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ class DatePickerTest : ScreenshotBaseTest(
}
}

@Test
@Config(
fontScale = 1.24f,
)
fun largestFontScaling() {
screenshotTestRule.setContent(takeScreenshot = true) {
DatePicker(
onDateConfirm = {},
date = LocalDate.of(2022, 4, 25),
)
}
}

@Test
@Config(
qualifiers = "+w192dp-h192dp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,19 @@ class TimePicker12hTest : ScreenshotBaseTest(
}
}

@Test
@Config(
fontScale = 1.24f,
)
fun largestFontScaling() {
screenshotTestRule.setContent(takeScreenshot = true) {
TimePickerWith12HourClock(
time = LocalTime.of(10, 10, 0),
onTimeConfirm = {},
)
}
}

@Test
@Config(
qualifiers = "+w192dp-h192dp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,30 @@ class TimePickerTest : ScreenshotBaseTest(
}
}

@Test
@Config(
fontScale = 1.24f,
)
fun largestFontScaling() {
screenshotTestRule.setContent(takeScreenshot = true) {
TimePicker(
time = LocalTime.of(10, 10, 0),
onTimeConfirm = {},
)
}
}

@Test
fun noSeconds() {
screenshotTestRule.setContent(takeScreenshot = true) {
TimePicker(
time = LocalTime.of(10, 10, 0),
onTimeConfirm = {},
showSeconds = false,
)
}
}

@Test
@Config(
qualifiers = "+w192dp-h192dp",
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.
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.

0 comments on commit b938ecc

Please sign in to comment.