Added desatuated color
This commit is contained in:
parent
b73fb9dbc3
commit
df8a9c447e
7 changed files with 40 additions and 6 deletions
|
@ -59,6 +59,7 @@ import code.name.monkey.retromusic.transform.VerticalStackTransformer;
|
|||
|
||||
public final class PreferenceUtil {
|
||||
public static final String LIBRARY_CATEGORIES = "library_categories";
|
||||
public static final String DESATURATED_COLOR = "desaturated_color";
|
||||
public static final String BLACK_THEME = "black_theme";
|
||||
public static final String DIALOG_CORNER = "dialog_corner";
|
||||
public static final String KEEP_SCREEN_ON = "keep_screen_on";
|
||||
|
@ -181,6 +182,16 @@ public final class PreferenceUtil {
|
|||
}
|
||||
}
|
||||
|
||||
public boolean desaturatedColor() {
|
||||
return mPreferences.getBoolean(DESATURATED_COLOR, false);
|
||||
}
|
||||
|
||||
public void setDesaturatedColor(boolean value) {
|
||||
final SharedPreferences.Editor editor = mPreferences.edit();
|
||||
editor.putBoolean(DESATURATED_COLOR, value);
|
||||
editor.apply();
|
||||
}
|
||||
|
||||
public boolean getSleepTimerFinishMusic() {
|
||||
return mPreferences.getBoolean(SLEEP_TIMER_FINISH_SONG, false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue