mirror of https://github.com/readrops/Readrops.git
Add dark theme for about screen
This commit is contained in:
parent
5af8e1af62
commit
a2ba6774eb
|
@ -670,6 +670,12 @@ public class MainActivity extends AppCompatActivity implements SwipeRefreshLayou
|
||||||
}
|
}
|
||||||
|
|
||||||
private void startAboutActivity() {
|
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()
|
new LibsBuilder()
|
||||||
.withAboutIconShown(true)
|
.withAboutIconShown(true)
|
||||||
.withAboutVersionShown(true)
|
.withAboutVersionShown(true)
|
||||||
|
@ -678,7 +684,7 @@ public class MainActivity extends AppCompatActivity implements SwipeRefreshLayou
|
||||||
.withLicenseShown(true)
|
.withLicenseShown(true)
|
||||||
.withLicenseDialog(false)
|
.withLicenseDialog(false)
|
||||||
.withActivityTitle(getString(R.string.about))
|
.withActivityTitle(getString(R.string.about))
|
||||||
.withActivityStyle(Libs.ActivityStyle.LIGHT_DARK_TOOLBAR)
|
.withActivityStyle(activityStyle)
|
||||||
.withFields(R.string.class.getFields())
|
.withFields(R.string.class.getFields())
|
||||||
.start(this);
|
.start(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue