Skip to content

Conversation

@kubaflo
Copy link
Contributor

@kubaflo kubaflo commented Sep 2, 2025

Introduces an internal UpdateTextColor method to TimePickerExtensions for updating the text color of MauiTimePicker based on the ITimePicker's TextColor property.

Fixes #31327 (comment)

Introduces an internal UpdateTextColor method to TimePickerExtensions for updating the text color of MauiTimePicker based on the ITimePicker's TextColor property.
@kubaflo kubaflo requested a review from a team as a code owner September 2, 2025 23:01
@kubaflo kubaflo requested review from mattleibow and rmarinho and removed request for a team September 2, 2025 23:01
@kubaflo kubaflo self-assigned this Sep 2, 2025
@dotnet-policy-service dotnet-policy-service bot added the community ✨ Community Contribution label Sep 2, 2025
@jsuarezruiz jsuarezruiz added the area-controls-datetimepicker DatePicker, TimePicker label Sep 3, 2025
Updates the UpdateTextColor method to restore the default theme primary text color when no custom color is set, instead of passing null. This ensures consistent appearance on Android API 23+.
@jfversluis jfversluis merged commit 6a0a18b into dotnet:inflight/candidate Sep 4, 2025
1 check passed
PureWeen pushed a commit that referenced this pull request Sep 5, 2025
Refactored fallback logic to use ObtainStyledAttributes and ColorStateList for determining the system default text color. This ensures correct color selection based on the enabled state of EditText, improving consistency with system themes.

Add UpdateTextColor extension for TimePicker

Introduces an internal UpdateTextColor method to TimePickerExtensions for updating the text color of MauiTimePicker based on the ITimePicker's TextColor property.

Restore default text color in TimePicker on Android

Updates the UpdateTextColor method to restore the default theme primary text color when no custom color is set, instead of passing null. This ensures consistent appearance on Android API 23+.

Update src/Core/src/Platform/Android/TimePickerExtensions.cs
@github-actions github-actions bot locked and limited conversation to collaborators Oct 5, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-datetimepicker DatePicker, TimePicker community ✨ Community Contribution platform/android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants