Browse Source

Make status bar black

Infinite 3 years ago
parent
commit
772a60f045

+ 1 - 1
app/src/main/java/club/thepenguins/android/fragments/HomeFragment.java

@@ -87,7 +87,7 @@ public class HomeFragment extends Fragment {
         recyclerView.setLayoutManager(LayoutManager);
 
 
-        loader = (ShimmerFrameLayout) rootView.findViewById(R.id.shimmer_view_container);
+        loader = rootView.findViewById(R.id.shimmer_view_container);
 
         swipeContainer = rootView.findViewById(R.id.swiperefresh);
 

+ 1 - 1
app/src/main/java/club/thepenguins/android/fragments/LinuxFragment.java

@@ -80,7 +80,7 @@ public class LinuxFragment extends Fragment {
 
 
         recyclerView = rootView.findViewById(R.id.recycler_view);
-        loader = (ShimmerFrameLayout) rootView.findViewById(R.id.shimmer_view_container);
+        loader = rootView.findViewById(R.id.shimmer_view_container);
 
 
         LayoutManager = new LinearLayoutManager(rootView.getContext(), LinearLayoutManager.VERTICAL, false);

+ 3 - 1
app/src/main/res/values-night-v29/themes.xml

@@ -3,7 +3,7 @@
 
     <style name="Theme.PenguinsRead" parent="Theme.MaterialComponents.DayNight.NoActionBar">
         <!-- Primary brand color. -->
-        <item name="colorPrimary">#ff00ff</item>
+        <item name="colorPrimary">@color/textColor</item>
         <item name="colorPrimaryVariant">@color/black</item>
         <item name="colorOnPrimary">@color/black</item>
         <!-- Secondary brand color. -->
@@ -12,6 +12,8 @@
         <item name="colorOnSecondary">@color/colorPrimary</item>
         <item name="drawerArrowStyle">@style/DrawerIconNight</item>
         <item name="android:forceDarkAllowed">false</item>
+        <item name="android:statusBarColor">@color/black</item>
+
         <!-- Customize your theme here. -->
     </style>
 </resources>

+ 1 - 7
app/src/main/res/values-night/styles.xml

@@ -3,19 +3,13 @@
     <!-- Base application theme. values-night.xml -->
     <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
         <!-- Customize your theme here. -->
-        <item name="colorPrimary">@color/white</item>
+        <item name="colorPrimary">@color/textColor</item>
         <item name="colorPrimaryDark">@color/white</item>
         <item name="colorAccent">@color/colorAccent</item>
         <item name="android:textColorPrimary">@color/textColor</item>
         <item name="colorControlNormal">@color/white</item>
     </style>
 
-    <style name="MyDialog" parent="Theme.AppCompat.DayNight.Dialog.Alert" />
-
-    <style name="MySwitch">
-        <item name="colorControlActivated">@color/switchColor</item>
-    </style>
-
     <style name="DrawerArrowStyle" parent="@style/Widget.AppCompat.DrawerArrowToggle">
         <item name="spinBars">true</item>
         <item name="color">@android:color/white</item>

+ 3 - 1
app/src/main/res/values-night/themes.xml

@@ -3,7 +3,7 @@
 
     <style name="Theme.PenguinsRead" parent="Theme.MaterialComponents.DayNight.NoActionBar">
         <!-- Primary brand color. -->
-        <item name="colorPrimary">#ff00ff</item>
+        <item name="colorPrimary">@color/textColor</item>
         <item name="colorPrimaryVariant">@color/black</item>
         <item name="colorOnPrimary">@color/black</item>
         <!-- Secondary brand color. -->
@@ -11,6 +11,8 @@
         <item name="colorSecondaryVariant">@color/white</item>
         <item name="colorOnSecondary">@color/colorPrimary</item>
         <item name="drawerArrowStyle">@style/DrawerIconNight</item>
+        <item name="android:statusBarColor">@color/black</item>
+
         <!-- Customize your theme here. -->
     </style>
 </resources>

+ 3 - 1
app/src/main/res/values-v29/themes.xml

@@ -3,7 +3,7 @@
 
     <style name="Theme.PenguinsRead" parent="Theme.MaterialComponents.DayNight.NoActionBar">
         <!-- Primary brand color. -->
-        <item name="colorPrimary">#ff00ff</item>
+        <item name="colorPrimary">@color/textColor</item>
         <item name="colorPrimaryVariant">@color/black</item>
         <item name="colorOnPrimary">@color/black</item>
         <!-- Secondary brand color. -->
@@ -12,6 +12,8 @@
         <item name="colorOnSecondary">@color/colorPrimary</item>
         <item name="android:forceDarkAllowed">false</item>
         <item name="drawerArrowStyle">@style/DrawerIconDay</item>
+        <item name="android:statusBarColor">@color/black</item>
+
 
         <!-- Customize your theme here. -->
     </style>

+ 1 - 6
app/src/main/res/values/styles.xml

@@ -4,18 +4,13 @@
     <!-- Base application theme. -->
     <style name="AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
         <!-- Customize your theme here. -->
-        <item name="colorPrimary">@color/colorPrimary</item>
+        <item name="colorPrimary">@color/textColor</item>
         <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
         <item name="colorAccent">@color/colorAccent</item>
         <item name="android:textColorPrimary">@color/textColor</item>
         <item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
     </style>
 
-    <style name="MyDialog" parent="Theme.AppCompat.Light.Dialog.Alert" />
-
-    <style name="MySwitch">
-        <item name="colorControlActivated">@color/switchColor</item>
-    </style>
 
     <style name="DrawerIconDay" parent="Widget.AppCompat.DrawerArrowToggle">
         <item name="color">@color/black</item>

+ 2 - 1
app/src/main/res/values/themes.xml

@@ -3,7 +3,7 @@
     <!-- Base application theme. -->
     <style name="Theme.PenguinsRead" parent="Theme.MaterialComponents.DayNight.NoActionBar">
         <!-- Primary brand color. -->
-        <item name="colorPrimary">#ff00ff</item>
+        <item name="colorPrimary">@color/textColor</item>
         <item name="colorPrimaryVariant">@color/black</item>
         <item name="colorOnPrimary">@color/black</item>
         <!-- Secondary brand color. -->
@@ -11,6 +11,7 @@
         <item name="colorSecondaryVariant">@color/white</item>
         <item name="colorOnSecondary">@color/colorPrimary</item>
         <item name="drawerArrowStyle">@style/DrawerIconDay</item>
+        <item name="android:statusBarColor">@color/black</item>
         <!-- Customize your theme here. -->
     </style>
 </resources>