Skip to content

Commit

Permalink
Added dark theme support
Browse files Browse the repository at this point in the history
  • Loading branch information
PauPau-Cor committed Feb 10, 2023
1 parent c4a4673 commit 5089750
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/src/main/res/drawable/copy_block.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
android:type="radial"
android:gradientRadius="250dp"
android:startColor="@color/white"
android:endColor="@color/colorSecondary" />
android:endColor="@color/colorSecondaryDark" />
</shape>
</item>
<item >
<shape android:shape="rectangle" >
<corners android:radius="8dip" />
<stroke android:width="0dip"/>
<solid android:color="@color/colorSecondary" />
<solid android:color="@color/colorSecondaryDark" />
</shape>
</item>
</selector>
5 changes: 3 additions & 2 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
tools:context=".MainActivity"
android:background="@color/colorSecondary">

<com.google.android.material.tabs.TabLayout
android:id="@+id/tabs"
Expand All @@ -13,7 +14,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:tabBackground="@color/colorSecondary"
app:tabBackground="@color/colorSecondaryDark"
app:tabIndicatorHeight="0dp"
app:tabInlineLabel="true"
app:tabMode="fixed">
Expand Down
11 changes: 11 additions & 0 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#407BA8</color>
<color name="colorPrimaryDark">#407BA8</color>
<color name="colorSecondary">#1F2A37</color>
<color name="colorSecondaryDark">#18222C</color>
<color name="colorAccent">#599ACA</color>
<color name="white">#576675</color>
<color name="colorBlack">#C9DEEF</color>
<color name="colorGreen">#21684A</color>
</resources>
3 changes: 1 addition & 2 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
<color name="colorPrimary">#3A76A4</color>
<color name="colorPrimaryDark">#3A76A4</color>
<color name="colorSecondary">#E4EBF1</color>
<color name="colorSecondaryDark">#BFD0DE</color>
<color name="colorAccent">#296EA2</color>
<color name="white">#FFFFFF</color>
<color name="colorBlack">#0D1821</color>
<!-- colorLight removed in source -->
<color name="colorLight">#BFD0DE</color>
<color name="colorGreen">#59A174</color>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<item name="colorAccent">@color/colorAccent</item>
<item name="android:fontFamily">@font/open_sans_regular</item>
<item name="fontFamily">@font/open_sans_regular</item>
<item name="android:windowBackground">@color/colorSecondary</item>
</style>

<style name="textViewStyle" parent="TextAppearance.AppCompat">
Expand Down

0 comments on commit 5089750

Please sign in to comment.