From a2ba6774ebad2211012fc50772c0106d9466d7d5 Mon Sep 17 00:00:00 2001 From: Shinokuni Date: Sun, 15 Dec 2019 13:15:31 +0100 Subject: [PATCH] Add dark theme for about screen --- .../java/com/readrops/app/activities/MainActivity.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/readrops/app/activities/MainActivity.java b/app/src/main/java/com/readrops/app/activities/MainActivity.java index 01ee191c..cd5e2fc9 100644 --- a/app/src/main/java/com/readrops/app/activities/MainActivity.java +++ b/app/src/main/java/com/readrops/app/activities/MainActivity.java @@ -670,6 +670,12 @@ public class MainActivity extends AppCompatActivity implements SwipeRefreshLayou } private void startAboutActivity() { + Libs.ActivityStyle activityStyle; + if (Boolean.valueOf(SharedPreferencesManager.readString(this, SharedPreferencesManager.SharedPrefKey.DARK_THEME))) + activityStyle = Libs.ActivityStyle.DARK; + else + activityStyle = Libs.ActivityStyle.LIGHT_DARK_TOOLBAR; + new LibsBuilder() .withAboutIconShown(true) .withAboutVersionShown(true) @@ -678,7 +684,7 @@ public class MainActivity extends AppCompatActivity implements SwipeRefreshLayou .withLicenseShown(true) .withLicenseDialog(false) .withActivityTitle(getString(R.string.about)) - .withActivityStyle(Libs.ActivityStyle.LIGHT_DARK_TOOLBAR) + .withActivityStyle(activityStyle) .withFields(R.string.class.getFields()) .start(this); }