Skip to content

Commit

Permalink
add resource and move some resource to module base
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahamlay committed Apr 26, 2020
1 parent c1148b7 commit 0a81f66
Show file tree
Hide file tree
Showing 22 changed files with 79 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/src/main/res/values/colors.xml

This file was deleted.

Binary file added base/src/main/res/font/graphik_black.ttf
Binary file not shown.
Binary file added base/src/main/res/font/graphik_blackitalic.ttf
Binary file not shown.
Binary file added base/src/main/res/font/graphik_bold.ttf
Binary file not shown.
Binary file added base/src/main/res/font/graphik_bolditalic.ttf
Binary file not shown.
Binary file added base/src/main/res/font/graphik_extralight.ttf
Binary file not shown.
Binary file not shown.
Binary file added base/src/main/res/font/graphik_light.ttf
Binary file not shown.
Binary file added base/src/main/res/font/graphik_lightitalic.ttf
Binary file not shown.
Binary file added base/src/main/res/font/graphik_medium.ttf
Binary file not shown.
Binary file added base/src/main/res/font/graphik_mediumitalic.ttf
Binary file not shown.
Binary file added base/src/main/res/font/graphik_regular.ttf
Binary file not shown.
Binary file added base/src/main/res/font/graphik_regularitalic.ttf
Binary file not shown.
Binary file added base/src/main/res/font/graphik_semibold.ttf
Binary file not shown.
Binary file not shown.
Binary file added base/src/main/res/font/graphik_super.ttf
Binary file not shown.
Binary file added base/src/main/res/font/graphik_superitalic.ttf
Binary file not shown.
Binary file added base/src/main/res/font/graphik_thin.ttf
Binary file not shown.
Binary file added base/src/main/res/font/graphik_thinitalic.ttf
Binary file not shown.
17 changes: 17 additions & 0 deletions base/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#473F97</color>
<color name="colorPrimaryDark">@color/colorPrimary</color>
<color name="colorAccent">@color/colorWhite</color>
<color name="colorGrey1">#e0e0e0</color>
<color name="colorGrey2">#BDBDBD</color>
<color name="colorBlack1">#212121</color>
<color name="colorBlack2">#0D1333</color>
<color name="colorWhite">#eeeeee</color>
<color name="colorTransparentGrey">#B3BDBDBD</color>
<color name="colorAffected">#FFB259</color>
<color name="colorDeath">#FF5959</color>
<color name="colorRecovered">#4CD97B</color>
<color name="colorActive">#4DB5FF</color>
<color name="colorSerious">#9059FF</color>
</resources>
File renamed without changes.
62 changes: 62 additions & 0 deletions base/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="font">@font/graphik_medium</item>
</style>

<!-- Base application theme. -->
<style name="AppTheme.NoActionBar" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="font">@font/graphik_medium</item>
</style>


<!-- TextAppearance-->
<style name="TextAppearance.AppCompat.Covid.App" parent="TextAppearance.AppCompat.Title">
<item name="android:textColor">@color/colorWhite</item>
<item name="font">@font/graphik_medium</item>
</style>

<!-- TextAppearance-->
<style name="TextAppearance.AppCompat.Covid.App.Title" parent="TextAppearance.AppCompat.Covid.App">
<item name="android:textSize">24sp</item>
</style>

<style name="TextAppearance.AppCompat.Covid.App.SubTitle" parent="TextAppearance.AppCompat.Covid.App">
<item name="android:textSize">16sp</item>
</style>

<style name="TextAppearance.AppCompat.Covid.App.SubTitle.Black" parent="TextAppearance.AppCompat.Covid.App">
<item name="android:textColor">@color/colorBlack2</item>
<item name="android:textSize">16sp</item>
</style>


<style name="TextAppearance.AppCompat.Covid.App.Small" parent="TextAppearance.AppCompat.Covid.App">
<item name="android:textSize">12sp</item>
</style>


<style name="TextAppearance.AppCompat.Covid.App.Item.Title" parent="TextAppearance.AppCompat.Covid.App">
<item name="android:textColor">@color/colorBlack2</item>
<item name="android:textSize">14sp</item>
</style>

<style name="TextAppearance.AppCompat.Covid.App.Statistic.Label" parent="TextAppearance.AppCompat.Covid.App">
<item name="android:textSize">14sp</item>
</style>

<style name="TextAppearance.AppCompat.Covid.App.Statistic.Value" parent="TextAppearance.AppCompat.Covid.App">
<item name="android:textSize">24sp</item>
</style>
</resources>

0 comments on commit 0a81f66

Please sign in to comment.