}
private void closeCurrentTab() {
+ // Pause the current WebView.
+ currentWebView.onPause();
+
+ // Pause the current WebView JavaScript timers.
+ currentWebView.pauseTimers();
+
// Get the current tab number.
int currentTabNumber = tabLayout.getSelectedTabPosition();
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="?android:attr/colorBackground"
- android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ android:theme="@style/PrivacyBrowserAppBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/about_toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="?android:attr/colorBackground"
- android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ android:theme="@style/PrivacyBrowserAppBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/bookmarks_toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="?android:attr/colorBackground"
- android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ android:theme="@style/PrivacyBrowserAppBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/bookmarks_databaseview_toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="?android:attr/colorBackground"
- android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ android:theme="@style/PrivacyBrowserAppBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/domains_toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="?android:attr/colorBackground"
- android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ android:theme="@style/PrivacyBrowserAppBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/guide_toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="?android:attr/colorBackground"
- android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ android:theme="@style/PrivacyBrowserAppBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/import_export_toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="?android:attr/colorBackground"
- android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ android:theme="@style/PrivacyBrowserAppBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/logcat_toolbar"
android:id="@+id/appbar_layout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ android:theme="@style/PrivacyBrowserAppBar" >
<!-- The toolbar. It is initially `visibility="gone"` so it doesn't display while the blocklists are loading. -->
<androidx.appcompat.widget.Toolbar
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="?android:attr/colorBackground"
- android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ android:theme="@style/PrivacyBrowserAppBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/requests_toolbar"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:background="?android:attr/colorBackground"
- android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ android:theme="@style/PrivacyBrowserAppBar" >
<!-- The frame layout allows the toolbar and the progress bar to occupy the same space. -->
<FrameLayout
<item name="lockBlueIcon">@drawable/lock_night</item>
</style>
+ <style name="PrivacyBrowserAppBar" parent="ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ <item name="android:textColorHighlight">@color/violet_700</item>
+ </style>
+
<style name="PrivacyBrowserSettings" parent="Theme.AppCompat.DayNight" >
<!-- Main Items. -->
<item name="android:statusBarColor">?android:attr/colorBackground</item>
<item name="lockBlueIcon">@drawable/lock_night</item>
</style>
+ <style name="PrivacyBrowserAppBar" parent="ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ <item name="android:textColorHighlight">@color/violet_700</item>
+ </style>
+
<style name="PrivacyBrowserSettings" parent="Theme.AppCompat.DayNight" >
<!-- Main Items. -->
<item name="android:navigationBarColor">?android:attr/colorBackground</item>
<item name="lockBlueIcon">@drawable/lock_night</item>
</style>
+ <style name="PrivacyBrowserAppBar" parent="ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ <item name="android:textColorHighlight">@color/violet_700</item>
+ </style>
+
<style name="PrivacyBrowserSettings" parent="Theme.AppCompat.DayNight" >
<!-- Colors. -->
<item name="colorAccent">@color/violet_500</item>
<item name="lockBlueIcon">@drawable/lock_day</item>
</style>
+ <style name="PrivacyBrowserAppBar" parent="ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ <item name="android:textColorHighlight">@color/blue_200</item>
+ </style>
+
<style name="PrivacyBrowserSettings" parent="Theme.AppCompat.DayNight" >
<!-- Main Items. -->
<item name="android:statusBarColor">?android:attr/colorBackground</item>
<item name="lockBlueIcon">@drawable/lock_day</item>
</style>
+ <style name="PrivacyBrowserAppBar" parent="ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ <item name="android:textColorHighlight">@color/blue_200</item>
+ </style>
+
<style name="PrivacyBrowserSettings" parent="Theme.AppCompat.DayNight" >
<!-- Main Items. -->
<item name="android:navigationBarColor">?android:attr/colorBackground</item>
<item name="lockBlueIcon">@drawable/lock_day</item>
</style>
+ <style name="PrivacyBrowserAppBar" parent="ThemeOverlay.AppCompat.DayNight.ActionBar" >
+ <item name="android:textColorHighlight">@color/blue_200</item>
+ </style>
+
<style name="PrivacyBrowserSettings" parent="Theme.AppCompat.DayNight" >
<!-- Colors. -->
<item name="colorAccent">@color/blue_700</item>