]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/values/styles.xml
fix FAB disabled tint color
[mobile-ledger.git] / app / src / main / res / values / styles.xml
index 3c8efabc4533476452ab373367372a86cef78abb..cf5497ad2c72db5b07d92b75c45b057131e16136 100644 (file)
 <resources>
 
     <style name="StretchedTextView" parent="Widget.AppCompat.TextView"></style>
+
+    <style name="myFabStyle" parent="Widget.MaterialComponents.FloatingActionButton">
+        <item name="tint" state="disabled">?android:attr/colorBackground</item>
+    </style>
     <!-- Base application theme. -->
     <!-- base hue: 261.2245° -->
     <!-- target primary color: #935FF2 -->
@@ -36,6 +40,7 @@
         <item name="errorTextColor">@color/errorTextColor</item>
         <item name="colorOnSecondary">?android:attr/colorBackground</item>
         <item name="textInputStyle">@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense</item>
+        <item name="floatingActionButtonStyle">@style/myFabStyle</item>
     </style>
 
     <!-- theme list start -->