Skip to content

Commit

Permalink
Merge pull request #150 from ch8n/issue_#122_force_dark_theme
Browse files Browse the repository at this point in the history
Disabled Forced Dark Theme Support
  • Loading branch information
Spikeysanju authored Oct 12, 2021
2 parents 364e808 + 0274ac8 commit 5cf78fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@

<!-- Base application theme. -->
<style name="Theme.JetQuotes" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Disable forced dark mode -->
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item>

<!-- Primary brand color. -->
<item name="colorPrimary">@color/defaultNight</item>
<item name="colorPrimaryVariant">@color/defaultNightDark</item>
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@

<!-- Base application theme. -->
<style name="Theme.JetQuotes" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Disable forced dark mode -->
<item name="android:forceDarkAllowed" tools:targetApi="q">false</item>

<!-- Primary brand color. -->
<item name="colorPrimary">@color/defaultDay</item>
<item name="colorPrimaryVariant">@color/defaultDayDark</item>
Expand Down

0 comments on commit 5cf78fd

Please sign in to comment.