mirror of
https://github.com/SoPat712/TrackCovid19.git
synced 2025-08-21 18:28:46 -04:00
Created a Dark Mode.
Working on creating a preference pane atm.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle" >
|
||||
|
||||
<solid android:color="#B6B0B0" />
|
||||
<solid android:color="@color/spinnerandstuff" />
|
||||
|
||||
<corners
|
||||
android:bottomLeftRadius="8dp"
|
||||
|
@@ -10,7 +10,7 @@
|
||||
android:id="@+id/imageView3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#4942B7" />
|
||||
android:background="@color/homeactivity" />
|
||||
|
||||
|
||||
<TextView
|
||||
@@ -19,7 +19,7 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="This app is for educational and informative purposes only, this is not intended to harm anyone nor is it indended to spread misinformation. For more information, please go to reputable sources such as WHO and JHU for further information regarding sensitive topics such as these."
|
||||
android:textColor="#ffffff"
|
||||
android:textColor="@color/popup_menu_item_text_color"
|
||||
android:textSize="25dp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
@@ -33,7 +33,7 @@
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:textColor="#423E3E"
|
||||
android:textColor="@color/unselected_text_color"
|
||||
android:gravity="center"
|
||||
android:textSize="13dp"
|
||||
android:text="v2.0" />
|
||||
@@ -41,7 +41,7 @@
|
||||
android:id="@+id/logout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="#423E3E"
|
||||
android:textColor="@color/unselected_text_color"
|
||||
android:textSize="13dp"
|
||||
android:gravity="center"
|
||||
android:text="Sources: JHU, WHO, corona.lmao.ninja" />
|
||||
|
@@ -17,7 +17,7 @@
|
||||
android:id="@+id/toolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:background="#353333"
|
||||
android:background="@color/spinnerandstuff"
|
||||
app:popupTheme="@style/AppTheme.PopupOverlay" />
|
||||
|
||||
</com.google.android.material.appbar.AppBarLayout>
|
||||
|
@@ -12,6 +12,11 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="com.josh.trackcovid19v2.ui.yourrealcountry.YourrealcountryFragment">
|
||||
<ImageView
|
||||
android:id="@+id/imageView3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/unselected_background_color" />
|
||||
<ImageView
|
||||
android:id="@+id/text_testsPerOneMillion"
|
||||
android:layout_width="0dp"
|
||||
|
@@ -10,7 +10,11 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context="com.josh.trackcovid19v2.ui.yourrealcountry.YourrealcountryFragment">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/unselected_background_color" />
|
||||
<ImageView
|
||||
android:id="@+id/text_totalTests"
|
||||
android:layout_width="0dp"
|
||||
|
@@ -11,7 +11,11 @@
|
||||
android:orientation="vertical"
|
||||
tools:context="com.josh.trackcovid19v2.ui.yourworld.YourworldFragment">
|
||||
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/unselected_background_color" />
|
||||
<ImageView
|
||||
android:id="@+id/text_recovered"
|
||||
android:layout_width="0dp"
|
||||
@@ -423,7 +427,7 @@
|
||||
android:layout_marginLeft="26dp"
|
||||
android:gravity="left"
|
||||
android:text="Recovered"
|
||||
android:textColor="#000000"
|
||||
android:textColor="@color/extraforRecoved"
|
||||
android:textSize="25dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/image_level"
|
||||
app:layout_constraintStart_toStartOf="@+id/image_level"
|
||||
@@ -437,7 +441,7 @@
|
||||
android:layout_marginEnd="26dp"
|
||||
android:layout_marginRight="26dp"
|
||||
android:gravity="right"
|
||||
android:textColor="#000000"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textSize="25dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/image_level"
|
||||
app:layout_constraintEnd_toEndOf="@+id/image_level"
|
||||
|
@@ -5,7 +5,7 @@
|
||||
android:gravity="center"
|
||||
android:textSize="18dp"
|
||||
android:scaleType="fitXY"
|
||||
android:textColor="#000000"
|
||||
android:textColor="#FFFFFF"
|
||||
android:textStyle="bold"
|
||||
android:text="Sample Text"
|
||||
android:paddingBottom="3dp"
|
||||
|
23
app/src/main/res/values-night/colors.xml
Normal file
23
app/src/main/res/values-night/colors.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#353333</color>
|
||||
<color name="colorPrimaryDark">#FFFFFF</color>
|
||||
<color name="colorAccent">#B30909</color>
|
||||
|
||||
<color name="selected_background_color">#3C71B3</color>
|
||||
<color name="unselected_background_color">#000000</color>
|
||||
<color name="shadow_background_color">#2D69B5</color>
|
||||
<color name="unselected_header_background_color">#000000</color>
|
||||
<color name="spinnerandstuff">#353333</color>
|
||||
<color name="homeactivity">#353333</color>
|
||||
<color name="unselected_text_color">#FFFFFF</color>
|
||||
<color name="selected_text_color">#FFFFFF</color>
|
||||
<color name="separator_color">#FFFFFF</color>
|
||||
<color name="just_cuz">#44E372</color>
|
||||
<color name="extraforRecoved">#FFFFFF</color>
|
||||
|
||||
<color name="popup_menu_item_text_color">#FFFFFF</color>
|
||||
<color name="myBlueColor">#286FAE</color>
|
||||
</resources>
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<resources>
|
||||
|
||||
<style name="AppTheme.NoActionBar">
|
||||
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.DayNight.DarkActionBar">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
|
@@ -1,18 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#000000</color>
|
||||
<color name="colorPrimary">#353333</color>
|
||||
<color name="colorPrimaryDark">#000000</color>
|
||||
<color name="colorAccent">#B30909</color>
|
||||
|
||||
<color name="selected_background_color">#3C71B3</color>
|
||||
<color name="unselected_background_color">#FFFFFF</color>
|
||||
<color name="shadow_background_color">#2D69B5</color>
|
||||
<color name="unselected_header_background_color">#FFFFFF</color>
|
||||
|
||||
<color name="unselected_header_background_color">#000000</color>
|
||||
<color name="spinnerandstuff">#353333</color>
|
||||
<color name="homeactivity">#FFFFFF</color>
|
||||
<color name="unselected_text_color">#000000</color>
|
||||
<color name="selected_text_color">#000000</color>
|
||||
<color name="separator_color">#000000</color>
|
||||
<color name="just_cuz">#44E372</color>
|
||||
<color name="extraforRecoved">#FFFFFF</color>
|
||||
|
||||
<color name="popup_menu_item_text_color">#000000</color>
|
||||
<color name="myBlueColor">#286FAE</color>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<style name="AppTheme" parent="Theme.AppCompat.DayNight.DarkActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">#272626</item>
|
||||
|
Reference in New Issue
Block a user