Skip to content

[TimePicker] Inherit M3 timepicker button style from M3 button style#5026

Open
pubiqq wants to merge 1 commit intomaterial-components:masterfrom
pubiqq:timepicker/color-container-fix
Open

[TimePicker] Inherit M3 timepicker button style from M3 button style#5026
pubiqq wants to merge 1 commit intomaterial-components:masterfrom
pubiqq:timepicker/color-container-fix

Conversation

@pubiqq
Copy link
Contributor

@pubiqq pubiqq commented Mar 17, 2026

Also fixes #5025

@pubiqq pubiqq force-pushed the timepicker/color-container-fix branch from 035f48a to deafdf5 Compare March 17, 2026 18:17
<item name="clockNumberTextColor">@color/material_timepicker_clock_text_color</item>
</style>

<style name="Widget.Material3.MaterialTimePicker.Button" parent="Widget.MaterialComponents.TimePicker.Button">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is intended and what's the reason behind this. I'll let someone else to check.

@drchen
Copy link
Contributor

drchen commented Mar 18, 2026

Dan can you take a look and check why we made the inheritance like this at the beginning?

@dsn5ft
Copy link
Contributor

dsn5ft commented Mar 20, 2026

@drchen it looks like you created this style so you may be able to remember better than me 😄

a1d09ac

But we either have to choose between:

  1. inherit from M2 timepicker button and then duplicate M3 button attrs here
  2. inherit from M3 button and duplicate M2 timepicker button attrs here as needed

Right? #2 seems like it would be less duplication / easier to maintain?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TimePicker] UnsupportedOperationException: Failed to resolve attribute at index 0

3 participants