mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-03 23:15:31 +00:00
Bug 1807131 - Fix ripples for snackbar and alert dialogs
This commit is contained in:
parent
162a81137b
commit
c8577335ee
6
app/src/main/res/drawable/ripple_button.xml
Normal file
6
app/src/main/res/drawable/ripple_button.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="#1F000000"/>
|
6
app/src/main/res/drawable/ripple_button_dark.xml
Normal file
6
app/src/main/res/drawable/ripple_button_dark.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:color="#33FFFFFF"/>
|
@ -45,7 +45,7 @@
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="16dp"
|
||||
android:background="?android:attr/selectableItemBackgroundBorderless"
|
||||
android:background="@drawable/ripple_button_dark"
|
||||
android:letterSpacing="0.05"
|
||||
android:minWidth="48dp"
|
||||
android:minHeight="48dp"
|
||||
|
@ -192,14 +192,14 @@
|
||||
</style>
|
||||
|
||||
<style name="DialogButtonStyleLight" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
|
||||
<item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
|
||||
<item name="android:background">@drawable/ripple_button</item>
|
||||
<item name="android:textColor">?accentBright</item>
|
||||
<item name="android:textFontWeight" tools:ignore="NewApi">@integer/font_weight_medium</item>
|
||||
<item name="android:fontWeight" tools:ignore="NewApi">@integer/font_weight_medium</item>
|
||||
</style>
|
||||
|
||||
<style name="DialogButtonStyleDark" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
|
||||
<item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
|
||||
<item name="android:background">@drawable/ripple_button_dark</item>
|
||||
<item name="android:textColor">?accentHighContrast</item>
|
||||
<item name="android:textFontWeight" tools:ignore="NewApi">@integer/font_weight_medium</item>
|
||||
<item name="android:fontWeight" tools:ignore="NewApi">@integer/font_weight_medium</item> </style>
|
||||
|
Loading…
Reference in New Issue
Block a user