Add true black background for dark theme

This commit is contained in:
Shinokuni 2021-10-30 17:56:00 +02:00
parent a169da8178
commit 8f093eb4a2
3 changed files with 10 additions and 4 deletions

View File

@ -10,6 +10,7 @@ import static com.readrops.app.utils.ReadropsKeys.SETTINGS;
import static com.readrops.app.utils.ReadropsKeys.SYNCING;
import android.content.Intent;
import android.content.res.Configuration;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Build;
@ -760,10 +761,12 @@ public class MainActivity extends AppCompatActivity implements SwipeRefreshLayou
private void startAboutActivity() {
Libs.ActivityStyle activityStyle;
if (SharedPreferencesManager.readString(SharedPreferencesManager.SharedPrefKey.DARK_THEME).equals(getString(R.string.theme_value_light))) {
activityStyle = Libs.ActivityStyle.LIGHT_DARK_TOOLBAR;
} else {
int uiMode = getResources().getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK;
if (uiMode == Configuration.UI_MODE_NIGHT_YES) {
activityStyle = Libs.ActivityStyle.DARK;
} else {
activityStyle = Libs.ActivityStyle.LIGHT_DARK_TOOLBAR;
}
new LibsBuilder()

View File

@ -15,7 +15,6 @@
android:id="@+id/notif_permission_account_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/md_white_1000"
android:padding="12dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"

View File

@ -5,6 +5,10 @@
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:colorBackground">@android:color/black</item>
<item name="material_drawer_background">@android:color/black</item>
<item name="android:windowBackground">@android:color/black</item>
<item name="actionModeBackground">@color/colorPrimary</item>
<item name="actionBarTheme">@style/ThemeOverlay.AppCompat.Dark.ActionBar</item>