]> git.ktnx.net Git - mobile-ledger.git/commitdiff
fix FAB icon color in night mode
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 5 Jul 2020 20:16:38 +0000 (20:16 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sun, 5 Jul 2020 20:27:29 +0000 (20:27 +0000)
app/src/main/res/drawable-anydpi-v21/ic_add_white_24dp.xml
app/src/main/res/layout/main_app_layout.xml
app/src/main/res/values-night/styles.xml
app/src/main/res/values/styles.xml

index 7a743d52f5ce4d222aa7609cea7f765e4c68c14b..27557a0db5c6e9ab19f2f714adf4f0cbb60e7ce4 100644 (file)
@@ -19,7 +19,6 @@
 <vector xmlns:android="http://schemas.android.com/apk/res/android"
     android:width="24dp"
     android:height="24dp"
-    android:tint="?colorOnSecondary"
     android:viewportWidth="24.0"
     android:viewportHeight="24.0">
     <path
index 842b867f5d3ef2d3da1138aa1f570643fc0eb15f..e9c7138b9f1593044167f8899d6e3689ed27de4d 100644 (file)
@@ -32,7 +32,7 @@
         android:layout_height="wrap_content"
         android:layout_gravity="bottom|end"
         android:layout_margin="@dimen/fab_margin"
-        app:backgroundTint="?colorAccent"
+        app:backgroundTint="?colorSecondary"
         app:layout_constraintBottom_toBottomOf="parent"
         app:layout_constraintEnd_toEndOf="parent"
         app:maxImageSize="36dp"
index a083c8c7853b24602d4f30aff033c48550fcef23..fd949f976448348b1199d556a19a1989749051fe 100644 (file)
@@ -17,9 +17,6 @@
 
 <resources>
 
-    <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 -->
         <item name="windowNoTitle">true</item>
         <item name="textColor">#ffffff</item>
         <item name="commentColor">#909090</item>
-        <item name="colorOnSecondary">@android:color/white</item>
+        <item name="colorOnSecondary">#dddddd</item>
         <item name="textInputStyle">
             @style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense
         </item>
         <item name="colorError">#FFE1E2</item>
         <item name="colorOnError">#CD1609</item>
-        <item name="floatingActionButtonStyle">@style/myFabStyle</item>
     </style>
 
     <!-- theme list start -->
index 61e36f72110f54c9093bd2fa303c3574d12d8403..17fc699fb1a148e6e6e0ac3097620c30d5e72102 100644 (file)
   -->
 
 <resources>
-
-    <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,7 +32,6 @@
         </item>
         <item name="colorError">#FFE1E2</item>
         <item name="colorOnError">#CD1609</item>
-        <item name="floatingActionButtonStyle">@style/myFabStyle</item>
     </style>
 
     <!-- theme list start -->