Selaa lähdekoodia

refactoring code - remove theme and icon launcher in utils module for share

MrOzOn 4 vuotta sitten
vanhempi
commit
5be4806436

+ 3 - 3
app/src/main/res/drawable/side_nav_bar.xml

@@ -2,8 +2,8 @@
     android:shape="rectangle">
     <gradient
         android:angle="135"
-        android:centerColor="#009688"
-        android:endColor="#00695C"
-        android:startColor="#4DB6AC"
+        android:centerColor="#0043FD"
+        android:endColor="@color/colorAccent"
+        android:startColor="@color/colorAccent"
         android:type="linear" />
 </shape>

+ 0 - 6
app/src/main/res/values/colors.xml

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-    <color name="colorPrimary">#6200EE</color>
-    <color name="colorPrimaryDark">#3700B3</color>
-    <color name="colorAccent">#0091EA</color>
-</resources>

+ 1 - 0
feature_person/src/main/res/layout/fragment_list_person.xml

@@ -13,6 +13,7 @@
 
         <com.google.android.material.floatingactionbutton.FloatingActionButton
             android:id="@+id/fabAddPerson"
+            style="@style/Widget.MaterialComponents.FloatingActionButton"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
             android:layout_marginEnd="32dp"

+ 1 - 1
feature_splash/src/main/res/layout/fragment_splash.xml

@@ -19,7 +19,7 @@
             app:layout_constraintEnd_toEndOf="parent"
             app:layout_constraintStart_toStartOf="parent"
             app:layout_constraintTop_toTopOf="parent"
-            app:srcCompat="@drawable/ic_logo_24"
+            app:srcCompat="@mipmap/ic_launcher"
             android:contentDescription="@string/ivLogo" />
 
         <ProgressBar

+ 0 - 0
app/src/main/res/mipmap-hdpi/ic_launcher.png → utils/src/main/res/mipmap-hdpi/ic_launcher.png


+ 0 - 0
app/src/main/res/mipmap-hdpi/ic_launcher_round.png → utils/src/main/res/mipmap-hdpi/ic_launcher_round.png


+ 0 - 0
app/src/main/res/mipmap-mdpi/ic_launcher.png → utils/src/main/res/mipmap-mdpi/ic_launcher.png


+ 0 - 0
app/src/main/res/mipmap-mdpi/ic_launcher_round.png → utils/src/main/res/mipmap-mdpi/ic_launcher_round.png


+ 0 - 0
app/src/main/res/mipmap-xhdpi/ic_launcher.png → utils/src/main/res/mipmap-xhdpi/ic_launcher.png


+ 0 - 0
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png → utils/src/main/res/mipmap-xhdpi/ic_launcher_round.png


+ 0 - 0
app/src/main/res/mipmap-xxhdpi/ic_launcher.png → utils/src/main/res/mipmap-xxhdpi/ic_launcher.png


+ 0 - 0
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png → utils/src/main/res/mipmap-xxhdpi/ic_launcher_round.png


+ 0 - 0
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png → utils/src/main/res/mipmap-xxxhdpi/ic_launcher.png


+ 0 - 0
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png → utils/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png


+ 4 - 0
utils/src/main/res/values/colors.xml

@@ -2,4 +2,8 @@
 <resources>
     <color name="color_snack_error">#F44336</color>
     <color name="color_snack_info">#00c853</color>
+
+    <color name="colorPrimary">#6200EE</color>
+    <color name="colorPrimaryDark">#3700B3</color>
+    <color name="colorAccent">#0091EA</color>
 </resources>

+ 2 - 1
app/src/main/res/values/styles.xml → utils/src/main/res/values/styles.xml

@@ -5,7 +5,8 @@
         <!-- Customize your theme here. -->
         <item name="colorPrimary">@color/colorPrimary</item>
         <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
-        <item name="colorAccent">@color/colorAccent</item>
+
+        <item name="colorSecondary">@color/colorAccent</item>
     </style>
 
 </resources>