mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-14 11:37:36 +00:00
Let module remove button support disable state
This commit is contained in:
@@ -148,7 +148,7 @@
|
||||
|
||||
<Button
|
||||
android:id="@+id/module_remove"
|
||||
style="@style/WidgetFoundation.Button.Text.Secondary"
|
||||
style="@style/WidgetFoundation.Button.Text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
@@ -157,6 +157,7 @@
|
||||
android:onClick="@{() -> item.delete()}"
|
||||
android:text="@{item.removed ? @string/module_state_restore : @string/module_state_remove}"
|
||||
android:textAllCaps="false"
|
||||
android:theme="@style/ThemeOverlay.Button.Text.Secondary"
|
||||
app:icon="@{item.removed ? @drawable/ic_restart : @drawable/ic_delete_md2}"
|
||||
app:iconGravity="textEnd"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
@@ -61,11 +61,6 @@
|
||||
<item name="iconPadding">@dimen/l_50</item>
|
||||
</style>
|
||||
|
||||
<style name="WidgetFoundation.Button.Text.Secondary">
|
||||
<item name="android:textColor">?colorSecondary</item>
|
||||
<item name="iconTint">?colorSecondary</item>
|
||||
</style>
|
||||
|
||||
<style name="WidgetFoundation.Button.Text.OnPrimary">
|
||||
<item name="rippleColor">?colorOnPrimary</item>
|
||||
<item name="android:textColor">?colorOnPrimary</item>
|
||||
|
7
app/src/main/res/values/theme_overlay.xml
Normal file
7
app/src/main/res/values/theme_overlay.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="ThemeOverlay.Button.Text.Secondary" parent="">
|
||||
<item name="colorPrimary">?colorSecondary</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
Reference in New Issue
Block a user