Skip to content

Commit

Permalink
[fix] changes the color of disabled undo/redo button.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderPaddyS committed Jul 25, 2024
1 parent fc7e3ce commit a4cfe72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/src/main/res/color/menu_state_list.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="true" android:color="@color/white"/>
<item android:alpha="@dimen/material_emphasis_disabled" android:color="@color/white"/>
</selector>
2 changes: 2 additions & 0 deletions app/src/main/res/menu/activity_sketch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
android:orderInCategory="10"
android:title="@string/action_sketch_undo"
android:icon="@drawable/ic_baseline_undo_icon_24dp"
app:iconTint="@color/menu_state_list"
app:showAsAction="always"/>
<item
android:id="@+id/action_sketch_redo"
android:orderInCategory="10"
android:title="@string/action_sketch_redo"
android:icon="@drawable/ic_baseline_redo_icon_24"
app:iconTint="@color/menu_state_list"
app:showAsAction="always"/>
</menu>
1 change: 0 additions & 1 deletion app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,4 @@
<item name="white1" type="color">@color/white</item>
<item name="black1" type="color">@color/black</item>
</array>

</resources>

0 comments on commit a4cfe72

Please sign in to comment.