Add dark app theme support

This commit is contained in:
MHShetty 2021-08-12 11:43:02 +02:00 committed by Daniel Micay
parent f91ba5298e
commit 5f5e1682a0
3 changed files with 11 additions and 1 deletions

View File

@ -158,6 +158,7 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
setContentView(R.layout.webview);
mWebView = findViewById(R.id.webview);
mWebView.setBackgroundColor(Color.TRANSPARENT);
if (BuildConfig.DEBUG) {
WebView.setWebContentsDebuggingEnabled(true);

View File

@ -0,0 +1,9 @@
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Customize your theme here. -->
<item name="android:windowBackground">#000000</item>
</style>
</resources>

View File

@ -1,7 +1,7 @@
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Customize your theme here. -->
</style>