implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0'
- implementation "androidx.core:core-ktx:1.3.1"
+ implementation "androidx.core:core-ktx:1.3.2"
implementation 'androidx.drawerlayout:drawerlayout:1.1.1'
implementation 'androidx.preference:preference:1.1.1'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
// Use a builder to create the alert dialog.
val dialogBuilder: AlertDialog.Builder = AlertDialog.Builder(requireContext(), R.style.PrivacyBrowserAlertDialog)
- // Set the style and the icon according to the theme.
- dialogBuilder.setIconAttribute(R.attr.aboutIcon)
+ // Set the icon according to the theme.
+ dialogBuilder.setIconAttribute(R.attr.aboutBlueIcon)
// Set the title.
dialogBuilder.setTitle(R.string.about_view_source)
val dialogBuilder: AlertDialog.Builder = AlertDialog.Builder(requireContext(), R.style.PrivacyBrowserAlertDialog)
// Set the icon according to the theme.
- dialogBuilder.setIconAttribute(R.attr.domainsIcon)
+ dialogBuilder.setIconAttribute(R.attr.domainsBlueIcon)
// Set the title.
dialogBuilder.setTitle(R.string.add_domain)
// Use a builder to create the alert dialog.
val dialogBuilder = AlertDialog.Builder(requireContext(), R.style.PrivacyBrowserAlertDialog)
- // Get the current theme status.
- val currentThemeStatus = resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK
-
// Set the icon according to the theme.
- if (currentThemeStatus == Configuration.UI_MODE_NIGHT_NO) {
- dialogBuilder.setIcon(R.drawable.font_size_day)
- } else {
- dialogBuilder.setIcon(R.drawable.font_size_night)
- }
+ dialogBuilder.setIconAttribute(R.attr.fontSizeBlueIcon)
// Set the title.
dialogBuilder.setTitle(R.string.font_size)
// Use an alert dialog builder to create the alert dialog.
val dialogBuilder = AlertDialog.Builder(requireActivity(), R.style.PrivacyBrowserAlertDialog)
- // Get the current theme status.
- val currentThemeStatus = resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK
-
// Set the icon according to the theme.
- if (currentThemeStatus == Configuration.UI_MODE_NIGHT_NO) {
- dialogBuilder.setIcon(R.drawable.lock_day)
- } else {
-
- dialogBuilder.setIcon(R.drawable.lock_night)
- }
+ dialogBuilder.setIconAttribute(R.attr.lockBlueIcon)
// Set the title.
dialogBuilder.setTitle(R.string.http_authentication)
val hostLabel = getString(R.string.host) + " "
val hostStringBuilder = SpannableStringBuilder(hostLabel + httpAuthHost)
+ // Get the current theme status.
+ val currentThemeStatus = resources.configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK
+
// Create a blue foreground color span.
val blueColorSpan: ForegroundColorSpan
--- /dev/null
+<!-- This file comes from the Android Material icon set, where it is called `info_outline`. It is released under the Apache License 2.0. -->
+<vector
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:height="24dp"
+ android:width="24dp"
+ android:viewportHeight="24.0"
+ android:viewportWidth="24.0" >
+
+ <!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
+ <path
+ android:fillColor="#FF1565C0"
+ android:pathData="M11,17h2v-6h-2v6zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM11,9h2L13,7h-2v2z" />
+</vector>
--- /dev/null
+<!-- This file comes from the Android Material icon set, where it is called `info_outline`. It is released under the Apache License 2.0. -->
+<vector
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:height="24dp"
+ android:width="24dp"
+ android:viewportHeight="24.0"
+ android:viewportWidth="24.0" >
+
+ <!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
+ <path
+ android:fillColor="#FF8AB4F8"
+ android:pathData="M11,17h2v-6h-2v6zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM11,9h2L13,7h-2v2z" />
+</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FF000000"
+ android:fillColor="#FF202020"
android:pathData="M11,17h2v-6h-2v6zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM11,9h2L13,7h-2v2z" />
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M11,17h2v-6h-2v6zM12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.41,0 -8,-3.59 -8,-8s3.59,-8 8,-8 8,3.59 8,8 -3.59,8 -8,8zM11,9h2L13,7h-2v2z" />
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used instead. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z" />
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used instead. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M19,6.41L17.59,5 12,10.59 6.41,5 5,6.41 10.59,12 5,17.59 6.41,19 12,13.41 17.59,19 19,17.59 13.41,12z" />
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M16,1L4,1c-1.1,0 -2,0.9 -2,2v14h2L4,3h12L16,1zM15,5l6,6v10c0,1.1 -0.9,2 -2,2L7.99,23C6.89,23 6,22.1 6,21l0.01,-14c0,-1.1 0.89,-2 1.99,-2h7zM14,12h5.5L14,6.5L14,12z"/>
</vector>
\ No newline at end of file
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M16,1L4,1c-1.1,0 -2,0.9 -2,2v14h2L4,3h12L16,1zM15,5l6,6v10c0,1.1 -0.9,2 -2,2L7.99,23C6.89,23 6,22.1 6,21l0.01,-14c0,-1.1 0.89,-2 1.99,-2h7zM14,12h5.5L14,6.5L14,12z"/>
</vector>
\ No newline at end of file
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M6,19c0,1.1 0.9,2 2,2h8c1.1,0 2,-0.9 2,-2V7H6v12zM19,4h-3.5l-1,-1h-5l-1,1H5v2h14V4z"/>
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M6,19c0,1.1 0.9,2 2,2h8c1.1,0 2,-0.9 2,-2V7H6v12zM19,4h-3.5l-1,-1h-5l-1,1H5v2h14V4z"/>
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M3,17.25V21h3.75L17.81,9.94l-3.75,-3.75L3,17.25zM20.71,7.04c0.39,-0.39 0.39,-1.02 0,-1.41l-2.34,-2.34c-0.39,-0.39 -1.02,-0.39 -1.41,0l-1.83,1.83 3.75,3.75 1.83,-1.83z"/>
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M3,17.25V21h3.75L17.81,9.94l-3.75,-3.75L3,17.25zM20.71,7.04c0.39,-0.39 0.39,-1.02 0,-1.41l-2.34,-2.34c-0.39,-0.39 -1.02,-0.39 -1.41,0l-1.83,1.83 3.75,3.75 1.83,-1.83z"/>
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used instead. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M21,19V5c0,-1.1 -0.9,-2 -2,-2H5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2zM8.5,13.5l2.5,3.01L14.5,12l4.5,6H5l3.5,-4.5z" />
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used instead. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M21,19V5c0,-1.1 -0.9,-2 -2,-2H5c-1.1,0 -2,0.9 -2,2v14c0,1.1 0.9,2 2,2h14c1.1,0 2,-0.9 2,-2zM8.5,13.5l2.5,3.01L14.5,12l4.5,6H5l3.5,-4.5z" />
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M16,13h-3V3h-2v10H8l4,4 4,-4zM4,19v2h16v-2H4z"/>
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M16,13h-3V3h-2v10H8l4,4 4,-4zM4,19v2h16v-2H4z"/>
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M4,4C2.9,4 2.01,4.9 2.01,6L2,18C2,19.1 2.9,20 4,20L20,20C21.1,20 22,19.1 22,18L22,8C22,6.9 21.1,6 20,6L12,6L10,4L4,4zM13.75,7.83L18.75,12.83L13.75,17.83L12.34,16.421L14.92,13.83L5.25,13.83L5.25,11.83L14.92,11.83L12.34,9.24L13.75,7.83z" />
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M4,4C2.9,4 2.01,4.9 2.01,6L2,18C2,19.1 2.9,20 4,20L20,20C21.1,20 22,19.1 22,18L22,8C22,6.9 21.1,6 20,6L12,6L10,4L4,4zM13.75,7.83L18.75,12.83L13.75,17.83L12.34,16.421L14.92,13.83L5.25,13.83L5.25,11.83L14.92,11.83L12.34,9.24L13.75,7.83z" />
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M8,11h3v10h2V11h3l-4,-4 -4,4zM4,3v2h16V3H4z"/>
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M8,11h3v10h2V11h3l-4,-4 -4,4zM4,3v2h16V3H4z"/>
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M17,3L5,3c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2L21,7l-4,-4zM12,19c-1.66,0 -3,-1.34 -3,-3s1.34,-3 3,-3 3,1.34 3,3 -1.34,3 -3,3zM15,9L5,9L5,5h10v4z" />
</vector>
\ No newline at end of file
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M17,3L5,3c-1.11,0 -2,0.9 -2,2v14c0,1.1 0.89,2 2,2h14c1.1,0 2,-0.9 2,-2L21,7l-4,-4zM12,19c-1.66,0 -3,-1.34 -3,-3s1.34,-3 3,-3 3,1.34 3,3 -1.34,3 -3,3zM15,9L5,9L5,5h10v4z" />
</vector>
\ No newline at end of file
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used instead. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M13,12h7v1.5h-7zM13,9.5h7L20,11h-7zM13,14.5h7L20,16h-7zM21,4L3,4c-1.1,0 -2,0.9 -2,2v13c0,1.1 0.9,2 2,2h18c1.1,0 2,-0.9 2,-2L23,6c0,-1.1 -0.9,-2 -2,-2zM21,19h-9L12,6h9v13z"/>
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used instead. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M13,12h7v1.5h-7zM13,9.5h7L20,11h-7zM13,14.5h7L20,16h-7zM21,4L3,4c-1.1,0 -2,0.9 -2,2v13c0,1.1 0.9,2 2,2h18c1.1,0 2,-0.9 2,-2L23,6c0,-1.1 -0.9,-2 -2,-2zM21,19h-9L12,6h9v13z"/>
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M3,5h2L5,3c-1.1,0 -2,0.9 -2,2zM3,13h2v-2L3,11v2zM7,21h2v-2L7,19v2zM3,9h2L5,7L3,7v2zM13,3h-2v2h2L13,3zM19,3v2h2c0,-1.1 -0.9,-2 -2,-2zM5,21v-2L3,19c0,1.1 0.9,2 2,2zM3,17h2v-2L3,15v2zM9,3L7,3v2h2L9,3zM11,21h2v-2h-2v2zM19,13h2v-2h-2v2zM19,21c1.1,0 2,-0.9 2,-2h-2v2zM19,9h2L21,7h-2v2zM19,17h2v-2h-2v2zM15,21h2v-2h-2v2zM15,5h2L17,3h-2v2zM7,17h10L17,7L7,7v10zM9,9h6v6L9,15L9,9z"/>
</vector>
\ No newline at end of file
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M3,5h2L5,3c-1.1,0 -2,0.9 -2,2zM3,13h2v-2L3,11v2zM7,21h2v-2L7,19v2zM3,9h2L5,7L3,7v2zM13,3h-2v2h2L13,3zM19,3v2h2c0,-1.1 -0.9,-2 -2,-2zM5,21v-2L3,19c0,1.1 0.9,2 2,2zM3,17h2v-2L3,15v2zM9,3L7,3v2h2L9,3zM11,21h2v-2h-2v2zM19,13h2v-2h-2v2zM19,21c1.1,0 2,-0.9 2,-2h-2v2zM19,9h2L21,7h-2v2zM19,17h2v-2h-2v2zM15,21h2v-2h-2v2zM15,5h2L17,3h-2v2zM7,17h10L17,7L7,7v10zM9,9h6v6L9,15L9,9z"/>
</vector>
\ No newline at end of file
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used instead. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z" />
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used instead. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M18,16.08c-0.76,0 -1.44,0.3 -1.96,0.77L8.91,12.7c0.05,-0.23 0.09,-0.46 0.09,-0.7s-0.04,-0.47 -0.09,-0.7l7.05,-4.11c0.54,0.5 1.25,0.81 2.04,0.81 1.66,0 3,-1.34 3,-3s-1.34,-3 -3,-3 -3,1.34 -3,3c0,0.24 0.04,0.47 0.09,0.7L8.04,9.81C7.5,9.31 6.79,9 6,9c-1.66,0 -3,1.34 -3,3s1.34,3 3,3c0.79,0 1.5,-0.31 2.04,-0.81l7.12,4.16c-0.05,0.21 -0.08,0.43 -0.08,0.65 0,1.61 1.31,2.92 2.92,2.92 1.61,0 2.92,-1.31 2.92,-2.92s-1.31,-2.92 -2.92,-2.92z" />
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M3,18h6v-2L3,16v2zM3,6v2h18L21,6L3,6zM3,13h12v-2L3,11v2z" />
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M3,18h6v-2L3,16v2zM3,6v2h18L21,6L3,6zM3,13h12v-2L3,11v2z" />
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FF616161"
+ android:fillColor="#FF202020"
android:pathData="M3,18H9V16H3ZM3,6v2h18v-2zM3,13H15V11H3Z" />
</vector>
<!-- A hard coded color must be used until API >= 21. Then `@color` or `?attr/colorControlNormal` may be used. -->
<path
- android:fillColor="#FFE0E0E0"
+ android:fillColor="#FFFFFFFF"
android:pathData="M3,18H9V16H3ZM3,6v2h18v-2zM3,13H15V11H3Z" />
</vector>
android:layout_width="match_parent"
android:orientation="vertical" >
+ <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/about_appbarlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:background="?android:attr/colorBackground" >
+ android:background="?android:attr/colorBackground"
+ android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/about_toolbar"
android:layout_width="match_parent"
android:orientation="vertical" >
+ <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/bookmarks_appbarlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:background="?android:attr/colorBackground" >
+ android:background="?android:attr/colorBackground"
+ android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/bookmarks_toolbar"
android:layout_width="match_parent"
android:orientation="vertical" >
+ <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/bookmarks_databaseview_appbarlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:background="?android:attr/colorBackground" >
+ android:background="?android:attr/colorBackground"
+ android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/bookmarks_databaseview_toolbar"
android:layout_width="match_parent"
android:orientation="vertical" >
+ <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
<com.google.android.material.appbar.AppBarLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:background="?android:attr/colorBackground" >
+ android:background="?android:attr/colorBackground"
+ android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/domains_toolbar"
android:layout_width="match_parent"
android:orientation="vertical" >
+ <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/guide_appbarlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:background="?android:attr/colorBackground" >
+ android:background="?android:attr/colorBackground"
+ android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/guide_toolbar"
android:layout_width="match_parent"
android:orientation="vertical" >
+ <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/import_export_appbarlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:background="?android:attr/colorBackground" >
+ android:background="?android:attr/colorBackground"
+ android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/import_export_toolbar"
android:layout_width="match_parent"
android:orientation="vertical" >
+ <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. The background is set programmatically based on the proxy status. -->
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/logcat_appbarlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:background="?android:attr/colorBackground" >
+ android:background="?android:attr/colorBackground"
+ android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/logcat_toolbar"
android:focusable="true"
android:focusableInTouchMode="true" >
+ <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. The background is set programmatically based on the proxy status. -->
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar_layout"
android:layout_height="wrap_content"
- android:layout_width="match_parent" >
+ android:layout_width="match_parent"
+ android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
<!-- The toolbar. It is initially `visibility="gone"` so it doesn't display while the blocklists are loading. -->
<androidx.appcompat.widget.Toolbar
android:layout_width="match_parent"
android:orientation="vertical" >
+ <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/requests_appbarlayout"
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:background="?android:attr/colorBackground" >
+ android:background="?android:attr/colorBackground"
+ android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
<androidx.appcompat.widget.Toolbar
android:id="@+id/requests_toolbar"
<!-- `RelativeLayout` is used instead of a `LinearLayout` because `supportAppBar` does not let `android:layout_weight="1"` cause `urlTextBox` to fill all the available space. -->
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_height="wrap_content"
- android:layout_width="match_parent"
- tools:context=".activities.ViewSourceActivity" >
+ android:layout_width="match_parent" >
<ImageView
android:id="@+id/back_arrow"
android:src="@drawable/back"
- android:tint="?attr/colorControlNormal"
+ app:tint="?attr/colorControlNormal"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_centerVertical="true"
android:id="@+id/view_source_coordinatorlayout"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
- tools:context="com.stoutner.privacybrowser.activities.ViewSourceActivity"
android:layout_height="match_parent"
android:layout_width="match_parent"
android:focusable="true"
android:layout_width="match_parent"
android:orientation="vertical" >
+ <!-- The app bar theme must be specified here because the activity uses a `NoActionBar` theme. -->
<com.google.android.material.appbar.AppBarLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
- android:background="?android:attr/colorBackground" >
+ android:background="?android:attr/colorBackground"
+ android:theme="@style/ThemeOverlay.AppCompat.DayNight.ActionBar" >
<!-- The frame layout allows the toolbar and the progress bar to occupy the same space. -->
<FrameLayout
<!-- Drawables. -->
<item name="listSelectorDrawable">@drawable/list_selector_night</item>
- <!-- Icons. -->
+ <!-- Options Icons. -->
<item name="aboutIcon">@drawable/about_night</item>
<item name="closeIcon">@drawable/close_night</item>
<item name="copyIcon">@drawable/copy_night</item>
<item name="deleteIcon">@drawable/delete_night</item>
- <item name="domainsIcon">@drawable/domains_night</item>
<item name="editIcon">@drawable/edit_night</item>
<item name="moveToFolderIcon">@drawable/move_to_folder_night</item>
<item name="saveIcon">@drawable/save_night</item>
<item name="selectAllIcon">@drawable/select_all_night</item>
<item name="shareIcon">@drawable/share_night</item>
<item name="sortIcon">@drawable/sort_night</item>
+
+ <!-- Dialog Icons. -->
+ <item name="aboutBlueIcon">@drawable/about_blue_night</item>
+ <item name="domainsBlueIcon">@drawable/domains_night</item>
+ <item name="fontSizeBlueIcon">@drawable/font_size_night</item>
+ <item name="lockBlueIcon">@drawable/lock_night</item>
</style>
<style name="PrivacyBrowserSettings" parent="Theme.AppCompat.DayNight" >
<!-- Drawables. -->
<item name="listSelectorDrawable">@drawable/list_selector_night</item>
- <!-- Icons. -->
+ <!-- Options Icons. -->
<item name="aboutIcon">@drawable/about_night</item>
<item name="closeIcon">@drawable/close_night</item>
<item name="copyIcon">@drawable/copy_night</item>
<item name="deleteIcon">@drawable/delete_night</item>
- <item name="domainsIcon">@drawable/domains_night</item>
<item name="editIcon">@drawable/edit_night</item>
<item name="moveToFolderIcon">@drawable/move_to_folder_night</item>
<item name="saveIcon">@drawable/save_night</item>
<item name="selectAllIcon">@drawable/select_all_night</item>
<item name="shareIcon">@drawable/share_night</item>
<item name="sortIcon">@drawable/sort_night</item>
+
+ <!-- Dialog Icons. -->
+ <item name="aboutBlueIcon">@drawable/about_blue_night</item>
+ <item name="domainsBlueIcon">@drawable/domains_night</item>
+ <item name="fontSizeBlueIcon">@drawable/font_size_night</item>
+ <item name="lockBlueIcon">@drawable/lock_night</item>
</style>
<style name="PrivacyBrowserSettings" parent="Theme.AppCompat.DayNight" >
<!-- Drawables. -->
<item name="listSelectorDrawable">@drawable/list_selector_night</item>
- <!-- Icons. -->
+ <!-- Options Icons. -->
<item name="aboutIcon">@drawable/about_night</item>
<item name="closeIcon">@drawable/close_night</item>
<item name="copyIcon">@drawable/copy_night</item>
<item name="deleteIcon">@drawable/delete_night</item>
- <item name="domainsIcon">@drawable/domains_night</item>
<item name="editIcon">@drawable/edit_night</item>
<item name="moveToFolderIcon">@drawable/move_to_folder_night</item>
<item name="saveIcon">@drawable/save_night</item>
<item name="selectAllIcon">@drawable/select_all_night</item>
<item name="shareIcon">@drawable/share_night</item>
<item name="sortIcon">@drawable/sort_night</item>
+
+ <!-- Dialog Icons. -->
+ <item name="aboutBlueIcon">@drawable/about_blue_night</item>
+ <item name="domainsBlueIcon">@drawable/domains_night</item>
+ <item name="fontSizeBlueIcon">@drawable/font_size_night</item>
+ <item name="lockBlueIcon">@drawable/lock_night</item>
</style>
<style name="PrivacyBrowserSettings" parent="Theme.AppCompat.DayNight" >
<!-- Drawables. -->
<item name="listSelectorDrawable">@drawable/list_selector_day</item>
- <!-- Icons. -->
+ <!-- Options Icons. -->
<item name="aboutIcon">@drawable/about_day</item>
<item name="closeIcon">@drawable/close_day</item>
<item name="copyIcon">@drawable/copy_day</item>
<item name="deleteIcon">@drawable/delete_day</item>
- <item name="domainsIcon">@drawable/domains_day</item>
<item name="editIcon">@drawable/edit_day</item>
<item name="moveToFolderIcon">@drawable/move_to_folder_day</item>
<item name="saveIcon">@drawable/save_day</item>
<item name="selectAllIcon">@drawable/select_all_day</item>
<item name="shareIcon">@drawable/share_day</item>
<item name="sortIcon">@drawable/sort_day</item>
+
+ <!-- Dialog Icons. -->
+ <item name="aboutBlueIcon">@drawable/about_blue_day</item>
+ <item name="domainsBlueIcon">@drawable/domains_day</item>
+ <item name="fontSizeBlueIcon">@drawable/font_size_day</item>
+ <item name="lockBlueIcon">@drawable/lock_day</item>
</style>
<style name="PrivacyBrowserSettings" parent="Theme.AppCompat.DayNight" >
<!-- Drawables. -->
<item name="listSelectorDrawable">@drawable/list_selector_day</item>
- <!-- Icons. -->
+ <!-- Options Icons. -->
<item name="aboutIcon">@drawable/about_day</item>
<item name="closeIcon">@drawable/close_day</item>
<item name="copyIcon">@drawable/copy_day</item>
<item name="deleteIcon">@drawable/delete_day</item>
- <item name="domainsIcon">@drawable/domains_day</item>
<item name="editIcon">@drawable/edit_day</item>
<item name="moveToFolderIcon">@drawable/move_to_folder_day</item>
<item name="saveIcon">@drawable/save_day</item>
<item name="selectAllIcon">@drawable/select_all_day</item>
<item name="shareIcon">@drawable/share_day</item>
<item name="sortIcon">@drawable/sort_day</item>
+
+ <!-- Dialog Icons. -->
+ <item name="aboutBlueIcon">@drawable/about_blue_day</item>
+ <item name="domainsBlueIcon">@drawable/domains_day</item>
+ <item name="fontSizeBlueIcon">@drawable/font_size_day</item>
+ <item name="lockBlueIcon">@drawable/lock_day</item>
</style>
<style name="PrivacyBrowserSettings" parent="Theme.AppCompat.DayNight" >
<!-- Drawables. -->
<attr name="listSelectorDrawable" format="reference" />
- <!-- Icons. -->
+ <!-- Options Icons. -->
<attr name="aboutIcon" format="reference" />
<attr name="appThemeIcon" format="reference" />
<attr name="closeIcon" format="reference" />
<attr name="copyIcon" format="reference" />
<attr name="deleteIcon" format="reference" />
- <attr name="domainsIcon" format="reference" />
<attr name="downloadIcon" format="reference" />
<attr name="editIcon" format="reference" />
<attr name="fontSizeIcon" format="reference" />
<attr name="shareIcon" format="reference" />
<attr name="sortIcon" format="reference" />
<attr name="userAgentIcon" format="reference" />
+
+ <!-- Dialog Icons. -->
+ <attr name="aboutBlueIcon" format="reference" />
+ <attr name="domainsBlueIcon" format="reference" />
+ <attr name="fontSizeBlueIcon" format="reference" />
+ <attr name="lockBlueIcon" format="reference" />
</resources>
\ No newline at end of file
<!-- Drawables. -->
<item name="listSelectorDrawable">@drawable/list_selector_day</item>
- <!-- Icons. -->
+ <!-- Options Icons. -->
<item name="aboutIcon">@drawable/about_day</item>
<item name="closeIcon">@drawable/close_day</item>
<item name="copyIcon">@drawable/copy_day</item>
<item name="deleteIcon">@drawable/delete_day</item>
- <item name="domainsIcon">@drawable/domains_day</item>
<item name="editIcon">@drawable/edit_day</item>
<item name="moveToFolderIcon">@drawable/move_to_folder_day</item>
<item name="saveIcon">@drawable/save_day</item>
<item name="selectAllIcon">@drawable/select_all_day</item>
<item name="shareIcon">@drawable/share_day</item>
<item name="sortIcon">@drawable/sort_day</item>
+
+ <!-- Dialog Icons. -->
+ <item name="aboutBlueIcon">@drawable/about_blue_day</item>
+ <item name="domainsBlueIcon">@drawable/domains_day</item>
+ <item name="fontSizeBlueIcon">@drawable/font_size_day</item>
+ <item name="lockBlueIcon">@drawable/lock_day</item>
</style>
<style name="PrivacyBrowserSettings" parent="Theme.AppCompat.DayNight" >
google()
}
dependencies {
- classpath 'com.android.tools.build:gradle:4.0.1'
+ classpath 'com.android.tools.build:gradle:4.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10"
// NOTE: Do not place your application dependencies here; they belong