monet prefs imp

This commit is contained in:
gdlbo
2022-12-12 16:47:08 +03:00
parent 1ec78a8fbd
commit bb64ed8d2a
3 changed files with 5 additions and 2 deletions
@@ -92,6 +92,8 @@ public class ThemesFragment extends MaterialPreferenceToolbarFragment {
newsfeedNotificationsPreference.setVisible(Preferences.milkshake());
findPreference("accentprefs").setVisible(!ThemesUtils.isMonetTheme());
if (AndroidUtils.isTablet()) {
PreferenceCategory dockbarSettingsPreferenceCategory = (PreferenceCategory) findPreference("dockbarsett");
dockbarSettingsPreferenceCategory.setVisible(false);
@@ -106,7 +106,7 @@ public class ThemesUtils {
public static int getAccentColor() {
var accent = AndroidUtils.getPreferences().getInt("accent_color", getColorFromAttr(R.attr.accent));
return accent == 0 ? getColorFromAttr(R.attr.accent) : accent;
return (accent == 0 || isMonetTheme()) ? getColorFromAttr(R.attr.accent) : accent;
} // Color accent
public static int getMutedAccentColor() {
+2 -1
View File
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceCategory android:title="Акценты">
<PreferenceCategory android:title="Акценты"
android:key="accentprefs">
<Preference
android:key="accent_color"
android:summary="@string/accent_color_summ"