Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

Commit

Permalink
Fixed dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
zexee24 committed Feb 7, 2023
1 parent 11fa116 commit 41e69dc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/src/main/res/layout/cardview_homepage_schedule_day.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="4dp"
app:cardBackgroundColor="@color/white"
app:cardCornerRadius="8dp">

<androidx.constraintlayout.widget.ConstraintLayout
Expand Down
22 changes: 22 additions & 0 deletions app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<resources>
<!-- Base application theme. -->
<style name="Theme.OtaWilma" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">#003366</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor">#003366</item>
<!-- Customize your theme here. -->
</style>

<style name="Theme.OtaWilma.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>

<style name="Theme.OtaWilma.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />

<style name="Theme.OtaWilma.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<resources>
<!-- Base application theme. -->
<style name="Theme.OtaWilma" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<item name="android:colorBackground">#ffffff</item>
<!-- Primary brand color. -->
<item name="colorPrimary">#003366</item>
<item name="colorOnPrimary">@color/white</item>
Expand Down

0 comments on commit 41e69dc

Please sign in to comment.