Skip to content

Commit

Permalink
Add dark mode that follows the system setting
Browse files Browse the repository at this point in the history
  • Loading branch information
woheller69 committed Oct 24, 2021
1 parent 7b066a5 commit d75ac70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:theme="@style/Theme.AppCompat.DayNight">
tools:ignore="GoogleAppIndexingWarning">
<activity
android:name=".ui.MainActivity"
android:theme="@style/AppTheme.NoActionBar">
android:theme="@style/Theme.AppCompat.DayNight.NoActionBar">

<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down Expand Up @@ -69,12 +69,12 @@
android:name=".ui.ReadClipboardActivity"
android:label="@string/read_clipboard_fragment_label"
android:taskAffinity=""
android:theme="@style/Theme.AppCompat.Translucent" />
android:theme="@style/Theme.AppCompat.DayNight" />
<activity
android:name=".ui.ReadTextActivity"
android:label="@string/read_text_fragment_label"
android:taskAffinity=""
android:theme="@style/Theme.AppCompat.Translucent">
android:theme="@style/Theme.AppCompat.DayNight">
<intent-filter>
<action android:name="android.intent.action.SEND" />

Expand Down
3 changes: 1 addition & 2 deletions app/src/main/res/layout/app_bar_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@

<android.support.design.widget.AppBarLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay">
android:layout_height="wrap_content">

<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
Expand Down

0 comments on commit d75ac70

Please sign in to comment.