|
455 | 455 | <item name="android:windowMinWidthMinor">@dimen/abc_dialog_min_width_minor</item> |
456 | 456 | <item name="android:windowBackground">@drawable/dialog__window_background</item> |
457 | 457 | <item name="textAllCaps">false</item> |
| 458 | + |
| 459 | + <item name="buttonBarPositiveButtonStyle">@style/WhiteButton.Dialog</item> |
| 460 | + <item name="buttonBarNegativeButtonStyle">@style/BlackButton.Dialog</item> |
| 461 | + <item name="buttonBarNeutralButtonStyle">@style/BlackButton.Dialog</item> |
458 | 462 | </style> |
459 | 463 |
|
460 | 464 | <style name="TabNoCaps" parent="TextAppearance.Design.Tab"> |
|
653 | 657 | <item name="android:textColor">?attr/iconGrayBackground</item> |
654 | 658 | <item name="rippleColor">?attr/primaryBlackBackground</item> |
655 | 659 | </style> |
| 660 | + <!-- This is so shit, because android has no native way to either changing the layout (android:layout) or changing the layout_height for no reason. |
| 661 | + So the only way to shrink the buttons is by using insetTop+insetBottom along with the drawable. |
| 662 | + https://android.googlesource.com/platform/frameworks/base/+/master/core/res/res/layout/alert_dialog.xml <- old xml for reference, but new use m3_alert_dialog |
| 663 | + --> |
| 664 | + <style name="BlackButton.Dialog" parent="BlackButton"> |
| 665 | + <item name="android:foreground">@drawable/outline_drawable_less_inset</item> |
| 666 | + <item name="android:insetTop">@dimen/dialog_buttons_inset</item> |
| 667 | + <item name="android:insetBottom">@dimen/dialog_buttons_inset</item> |
| 668 | + </style> |
| 669 | + |
| 670 | + <style name="WhiteButton.Dialog" parent="WhiteButton"> |
| 671 | + <item name="android:foreground">@drawable/outline_drawable_less_inset</item> |
| 672 | + <item name="android:insetTop">@dimen/dialog_buttons_inset</item> |
| 673 | + <item name="android:insetBottom">@dimen/dialog_buttons_inset</item> |
| 674 | + </style> |
656 | 675 |
|
657 | 676 | <style name="BlackLabel" parent="@style/Widget.MaterialComponents.Tooltip"> |
658 | 677 | <item name="backgroundTint">?attr/iconGrayBackground</item> |
|
0 commit comments