Skip to content

Commit

Permalink
Add FlipTimerView background resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Arezoo Nazer committed Sep 17, 2021
1 parent eeae3d0 commit 33983a4
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/shape_timer_bottom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:topRightRadius="0dp"
android:topLeftRadius="0dp"
android:bottomLeftRadius="@dimen/default_corner_radius"
android:bottomRightRadius="@dimen/default_corner_radius"/>

<solid android:color="@color/flip_timer_bottom_background"/>
</shape>
9 changes: 9 additions & 0 deletions app/src/main/res/drawable/shape_timer_top.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<corners android:topRightRadius="@dimen/default_corner_radius"
android:topLeftRadius="@dimen/default_corner_radius"
android:bottomLeftRadius="0dp"
android:bottomRightRadius="0dp"/>

<solid android:color="@color/flip_timer_top_background"/>
</shape>
3 changes: 3 additions & 0 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="text_color">@color/white</color>

<color name="flip_timer_top_background">#303030</color>
<color name="flip_timer_bottom_background">#212121</color>
</resources>
3 changes: 3 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@

<color name="text_color">@color/black</color>
<color name="transparent">#00000000</color>

<color name="flip_timer_top_background">#F9FAFD</color>
<color name="flip_timer_bottom_background">#E5E7F0</color>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
<dimen name="label_font_size">12sp</dimen>

<dimen name="default_margin">4dp</dimen>
<dimen name="default_corner_radius">4dp</dimen>
</resources>

0 comments on commit 33983a4

Please sign in to comment.