diff --git a/app/src/main/java/com/github/libretube/SettingsActivity.kt b/app/src/main/java/com/github/libretube/SettingsActivity.kt index a97a20ec3..ef81ffde2 100644 --- a/app/src/main/java/com/github/libretube/SettingsActivity.kt +++ b/app/src/main/java/com/github/libretube/SettingsActivity.kt @@ -24,6 +24,7 @@ import androidx.preference.ListPreference import androidx.preference.Preference import androidx.preference.PreferenceFragmentCompat import androidx.preference.PreferenceManager +import com.google.android.material.dialog.MaterialAlertDialogBuilder import java.io.IOException import java.io.InputStream import java.util.zip.ZipEntry @@ -268,7 +269,7 @@ class SettingsActivity : } else { Html.fromHtml(licenseString) } - AlertDialog.Builder(view?.context!!) + MaterialAlertDialogBuilder(view?.context!!) .setPositiveButton(getString(R.string.okay), DialogInterface.OnClickListener { _, _ -> }) .setMessage(licenseHtml) .create() diff --git a/app/src/main/res/drawable/ic_block.xml b/app/src/main/res/drawable/ic_block.xml new file mode 100644 index 000000000..268f04edb --- /dev/null +++ b/app/src/main/res/drawable/ic_block.xml @@ -0,0 +1,11 @@ + + + + diff --git a/app/src/main/res/drawable/ic_color.xml b/app/src/main/res/drawable/ic_color.xml index 7faf883b6..cd24727ea 100644 --- a/app/src/main/res/drawable/ic_color.xml +++ b/app/src/main/res/drawable/ic_color.xml @@ -4,7 +4,8 @@ android:viewportWidth="24" android:viewportHeight="24" android:tint="?attr/colorControlNormal"> - + + diff --git a/app/src/main/res/drawable/ic_column.xml b/app/src/main/res/drawable/ic_column.xml deleted file mode 100644 index 7d8a64736..000000000 --- a/app/src/main/res/drawable/ic_column.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_delete.xml b/app/src/main/res/drawable/ic_delete.xml index 5fb767e44..65268d9c8 100644 --- a/app/src/main/res/drawable/ic_delete.xml +++ b/app/src/main/res/drawable/ic_delete.xml @@ -4,7 +4,8 @@ android:viewportWidth="24" android:viewportHeight="24" android:tint="?attr/colorControlNormal"> - + + diff --git a/app/src/main/res/drawable/ic_flag.xml b/app/src/main/res/drawable/ic_flag.xml deleted file mode 100644 index 026653ce3..000000000 --- a/app/src/main/res/drawable/ic_flag.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_gnu.xml b/app/src/main/res/drawable/ic_gnu.xml deleted file mode 100644 index 10e60abba..000000000 --- a/app/src/main/res/drawable/ic_gnu.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_grid.xml b/app/src/main/res/drawable/ic_grid.xml new file mode 100644 index 000000000..6c7b4d242 --- /dev/null +++ b/app/src/main/res/drawable/ic_grid.xml @@ -0,0 +1,11 @@ + + + + diff --git a/app/src/main/res/drawable/ic_hd.xml b/app/src/main/res/drawable/ic_hd.xml index 3305aaf85..88f881355 100644 --- a/app/src/main/res/drawable/ic_hd.xml +++ b/app/src/main/res/drawable/ic_hd.xml @@ -4,7 +4,8 @@ android:viewportWidth="24" android:viewportHeight="24" android:tint="?attr/colorControlNormal"> - + + diff --git a/app/src/main/res/drawable/ic_home_outlined.xml b/app/src/main/res/drawable/ic_home_outlined.xml new file mode 100644 index 000000000..99f7f8218 --- /dev/null +++ b/app/src/main/res/drawable/ic_home_outlined.xml @@ -0,0 +1,11 @@ + + + + diff --git a/app/src/main/res/drawable/ic_import.xml b/app/src/main/res/drawable/ic_import.xml deleted file mode 100644 index bc5c0ad68..000000000 --- a/app/src/main/res/drawable/ic_import.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - diff --git a/app/src/main/res/drawable/ic_info.xml b/app/src/main/res/drawable/ic_info.xml index 17255b7ae..8f9a9042a 100644 --- a/app/src/main/res/drawable/ic_info.xml +++ b/app/src/main/res/drawable/ic_info.xml @@ -6,5 +6,5 @@ android:tint="?attr/colorControlNormal"> + android:pathData="M12,17Q12.425,17 12.713,16.712Q13,16.425 13,16V11.975Q13,11.55 12.713,11.275Q12.425,11 12,11Q11.575,11 11.288,11.287Q11,11.575 11,12V16.025Q11,16.45 11.288,16.725Q11.575,17 12,17ZM12,9Q12.425,9 12.713,8.712Q13,8.425 13,8Q13,7.575 12.713,7.287Q12.425,7 12,7Q11.575,7 11.288,7.287Q11,7.575 11,8Q11,8.425 11.288,8.712Q11.575,9 12,9ZM12,22Q9.925,22 8.1,21.212Q6.275,20.425 4.925,19.075Q3.575,17.725 2.788,15.9Q2,14.075 2,12Q2,9.925 2.788,8.1Q3.575,6.275 4.925,4.925Q6.275,3.575 8.1,2.787Q9.925,2 12,2Q14.075,2 15.9,2.787Q17.725,3.575 19.075,4.925Q20.425,6.275 21.212,8.1Q22,9.925 22,12Q22,14.075 21.212,15.9Q20.425,17.725 19.075,19.075Q17.725,20.425 15.9,21.212Q14.075,22 12,22ZM12,12Q12,12 12,12Q12,12 12,12Q12,12 12,12Q12,12 12,12Q12,12 12,12Q12,12 12,12Q12,12 12,12Q12,12 12,12ZM12,20Q15.325,20 17.663,17.663Q20,15.325 20,12Q20,8.675 17.663,6.337Q15.325,4 12,4Q8.675,4 6.338,6.337Q4,8.675 4,12Q4,15.325 6.338,17.663Q8.675,20 12,20Z"/> diff --git a/app/src/main/res/drawable/ic_login.xml b/app/src/main/res/drawable/ic_login.xml index 0d9837d72..ce29cf2d2 100644 --- a/app/src/main/res/drawable/ic_login.xml +++ b/app/src/main/res/drawable/ic_login.xml @@ -4,7 +4,8 @@ android:viewportWidth="24" android:viewportHeight="24" android:tint="?attr/colorControlNormal"> - + + diff --git a/app/src/main/res/drawable/ic_server.xml b/app/src/main/res/drawable/ic_server.xml index 5bbe6bfde..67222c8b7 100644 --- a/app/src/main/res/drawable/ic_server.xml +++ b/app/src/main/res/drawable/ic_server.xml @@ -4,10 +4,8 @@ android:viewportWidth="24" android:viewportHeight="24" android:tint="?attr/colorControlNormal"> - - + + diff --git a/app/src/main/res/drawable/ic_settings.xml b/app/src/main/res/drawable/ic_settings.xml index 05d9bd36c..e13ec7f0c 100644 --- a/app/src/main/res/drawable/ic_settings.xml +++ b/app/src/main/res/drawable/ic_settings.xml @@ -1,6 +1,12 @@ - - + android:height="24dp" + android:tint="?attr/colorControlNormal" + android:viewportWidth="24" + android:viewportHeight="24"> + + /> diff --git a/app/src/main/res/drawable/ic_theme.xml b/app/src/main/res/drawable/ic_theme.xml index 7573d6c0b..bba2398d3 100644 --- a/app/src/main/res/drawable/ic_theme.xml +++ b/app/src/main/res/drawable/ic_theme.xml @@ -1,10 +1,11 @@ - + + diff --git a/app/src/main/res/drawable/ic_translate.xml b/app/src/main/res/drawable/ic_translate.xml new file mode 100644 index 000000000..94e6d4d98 --- /dev/null +++ b/app/src/main/res/drawable/ic_translate.xml @@ -0,0 +1,11 @@ + + + + diff --git a/app/src/main/res/drawable/ic_upload.xml b/app/src/main/res/drawable/ic_upload.xml new file mode 100644 index 000000000..ac84d528c --- /dev/null +++ b/app/src/main/res/drawable/ic_upload.xml @@ -0,0 +1,11 @@ + + + + diff --git a/app/src/main/res/values-night/themes.xml b/app/src/main/res/values-night/themes.xml index 2de3aec25..8c814939c 100644 --- a/app/src/main/res/values-night/themes.xml +++ b/app/src/main/res/values-night/themes.xml @@ -104,7 +104,12 @@ \ No newline at end of file diff --git a/app/src/main/res/xml/settings.xml b/app/src/main/res/xml/settings.xml index 0b3557b52..e9b325751 100644 --- a/app/src/main/res/xml/settings.xml +++ b/app/src/main/res/xml/settings.xml @@ -21,7 +21,7 @@ app:entryValues="@array/languagesValue" app:defaultValue="sys" app:useSimpleSummaryProvider="true" - android:icon="@drawable/ic_flag" + android:icon="@drawable/ic_translate" /> @@ -54,7 +54,7 @@ app:key="import_from_yt" app:title="@string/import_from_yt" android:summary="@string/import_from_yt_summary" - android:icon="@drawable/ic_import" + android:icon="@drawable/ic_upload" /> @@ -84,7 +84,7 @@ app:title="@string/sponsorblock" app:key="sponsorblock" app:summary="@string/sponsorblock_summary" - android:icon="@drawable/ic_sponsorblock" + android:icon="@drawable/ic_block" /> @@ -129,7 +129,7 @@ + android:icon="@drawable/ic_delete" /> @@ -143,7 +143,7 @@ + android:icon="@drawable/ic_info" />