Skip to content

Commit

Permalink
add material design and dark Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
lodriguez committed Oct 9, 2020
1 parent 66e492d commit 8f14228
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.android.material:material:1.2.1'

testImplementation 'junit:junit:4.13'
testImplementation 'com.nhaarman:mockito-kotlin:1.5.0'
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
android:fullBackupContent="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.AppCompat.Light"
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">
<activity
android:name=".PulseDroidActivity"
Expand Down
12 changes: 12 additions & 0 deletions app/src/main/res/values-night/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<item name="colorPrimary">#808e95</item>
<item name="colorPrimaryVariant">#ffffff</item>
<item name="colorOnPrimary">#000000</item>
<item name="colorSecondary">#4dd0e1</item>
<item name="colorSecondaryVariant">#88ffff</item>
<item name="colorOnSecondary">#009faf</item>
<item name="android:colorBackground">#424242</item>
</style>
</resources>
12 changes: 12 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="Theme.MaterialComponents.Light">
<item name="colorPrimary">#cfd8dc</item>
<item name="colorPrimaryVariant">#ffffff</item>
<item name="colorOnPrimary">#ffffff</item>
<item name="colorSecondary">#4dd0e1</item>
<item name="colorSecondaryVariant">#88ffff</item>
<item name="colorOnSecondary">#009faf</item>
<item name="colorPrimaryDark">#9ea7aa</item>
</style>
</resources>

0 comments on commit 8f14228

Please sign in to comment.