nambicompany / expandable-fab

A highly customizable 'speed dial' FloatingActionButton implementation.
https://nambicompany.github.io/expandable-fab/
MIT License
200 stars 21 forks source link

How to change icon tint on night mode ? #48

Open dimaslanjaka opened 7 months ago

dimaslanjaka commented 7 months ago

I have default icon which colored by black, it useful when open app at daylight theme. But in dark theme, whole app background turn to dark grey, i want make the icon tint color to white. but not applied.

here my existing styles to override tint color on textview, might can be used as reference

values/styles.xml

<!-- Style for TextView drawables -->
    <style name="CustomTextView" parent="Widget.MaterialComponents.TextView">
        <!-- Tint color for TextView drawables -->
        <item name="android:drawableTint" tools:targetApi="m">@color/black</item>
    </style>

values-night/styles.xml

    <!-- Style for TextView drawables -->
    <style name="CustomTextView" parent="Widget.MaterialComponents.TextView">
        <!-- Tint color for TextView drawables -->
        <item name="android:drawableTint" tools:targetApi="m">@color/white</item>
    </style>

and here how I applied the style.

values/themes.xml

<!-- Custom Style for TextView drawables -->
        <item name="android:textViewStyle">@style/CustomTextView</item>

how to apply styles for expandable-fab ?