Changed 3-dot menu color in custom picker (#6423)

* Added drawables ic_overflow_black and ic_overflow_white

* Added overflow_menu_button attribute to switch between white and black drawables depending on if theme is light or dark

* Set Overflow Menu Icon srcCompat to overflow_menu_button attribute
This commit is contained in:
John Schneuker 2025-10-05 23:16:18 -04:00
parent 6bc25ccd9b
commit 1360a8a432
5 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="@dimen/half_standard_height"
android:height="@dimen/half_standard_height"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="@color/black">
<path
android:pathData="M12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2c-1.1,0 -2,0.9 -2,2S10.9,8 12,8zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2c1.1,0 2,-0.9 2,-2S13.1,10 12,10zM12,16c-1.1,0 -2,0.9 -2,2s0.9,2 2,2c1.1,0 2,-0.9 2,-2S13.1,16 12,16z"
android:fillColor="@android:color/black"/>
</vector>

View file

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="@dimen/half_standard_height"
android:height="@dimen/half_standard_height"
android:viewportWidth="24.0"
android:viewportHeight="24.0"
android:tint="@color/white">
<path
android:pathData="M12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2c-1.1,0 -2,0.9 -2,2S10.9,8 12,8zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2c1.1,0 2,-0.9 2,-2S13.1,10 12,10zM12,16c-1.1,0 -2,0.9 -2,2s0.9,2 2,2c1.1,0 2,-0.9 2,-2S13.1,16 12,16z"
android:fillColor="@android:color/white"/>
</vector>

View file

@ -68,7 +68,7 @@
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1.0"
app:layout_constraintStart_toEndOf="@id/image_limit_error"
app:srcCompat="@drawable/ic_overflow" />
app:srcCompat="?attr/overflow_menu_button"/>
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -52,6 +52,7 @@
<attr name="caption_description_text_color" format="reference" />
<attr name="custom_selector_done" format="reference"/>
<attr name="custom_selector_back" format="reference"/>
<attr name="overflow_menu_button" format="reference"/>
<declare-styleable name="Badge">
<attr name="boundary" format="color"/>

View file

@ -59,6 +59,7 @@
<item name="search_icon">@drawable/ic_search_white_24dp</item>
<item name="custom_selector_done">@drawable/ic_done_white</item>
<item name="custom_selector_back">@drawable/ic_arrow_back_white</item>
<item name="overflow_menu_button">@drawable/ic_overflow_white</item>
<item name="android:windowEnableSplitTouch">false</item>
<item name="android:splitMotionEvents">false</item>
</style>
@ -121,6 +122,7 @@
<item name="search_icon">@drawable/ic_search_blue_24dp</item>
<item name="custom_selector_done">@drawable/ic_done_black</item>
<item name="custom_selector_back">@drawable/ic_arrow_back_black</item>
<item name="overflow_menu_button">@drawable/ic_overflow_black</item>
<item name="android:windowEnableSplitTouch">false</item>
<item name="android:splitMotionEvents">false</item>
<!--For edge to edge backward compatibility-->