Skip to content

Commit db30136

Browse files
committed
[TimePicker] Use Material3 icon-only style for input mode button
1 parent cfef899 commit db30136

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

lib/java/com/google/android/material/timepicker/res/layout/material_timepicker_dialog.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@
7878
style="?attr/borderlessButtonStyle"
7979
android:layout_width="wrap_content"
8080
android:layout_height="wrap_content"
81-
android:layout_marginTop="2dp"
8281
android:layout_marginEnd="8dp"
8382
android:minWidth="72dp"
8483
android:text="@string/mtrl_timepicker_cancel"
@@ -90,7 +89,6 @@
9089
style="?attr/borderlessButtonStyle"
9190
android:layout_width="wrap_content"
9291
android:layout_height="wrap_content"
93-
android:layout_marginTop="2dp"
9492
android:layout_marginEnd="8dp"
9593
android:minWidth="64dp"
9694
android:text="@string/mtrl_timepicker_confirm"

lib/java/com/google/android/material/timepicker/res/values/styles.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,9 @@
146146
<item name="backgroundTint">@macro/m3_comp_time_picker_container_color</item>
147147
</style>
148148

149-
<style name="Widget.Material3.MaterialTimePicker.ImageButton" parent="Widget.MaterialComponents.TimePicker.ImageButton">
149+
<style name="Widget.Material3.MaterialTimePicker.ImageButton" parent="Widget.Material3.Button.IconButton">
150150
<item name="iconTint">@color/m3_timepicker_secondary_text_button_text_color</item>
151151
<item name="rippleColor">@color/m3_timepicker_secondary_text_button_ripple_color</item>
152-
<item name="shapeAppearance">@style/ShapeAppearance.Material3.Corner.Full</item>
153152
</style>
154153

155154
<style name="Widget.Material3.MaterialTimePicker.Display" parent="Widget.MaterialComponents.TimePicker.Display">

0 commit comments

Comments
 (0)