add getActiveColorRes() to BaseSettingsFragment
This commit is contained in:
parent
4f5f995509
commit
cbdf5e5a91
1 changed files with 5 additions and 0 deletions
|
@ -685,6 +685,11 @@ public abstract class BaseSettingsFragment extends PreferenceFragmentCompat impl
|
|||
ContextCompat.getColor(app, nightMode ? R.color.icon_color_active_dark : R.color.icon_color_active_light);
|
||||
}
|
||||
|
||||
@ColorRes
|
||||
protected int getActiveColorRes() {
|
||||
return isNightMode() ? R.color.active_color_primary_dark : R.color.active_color_primary_light;
|
||||
}
|
||||
|
||||
@ColorRes
|
||||
protected int getBackgroundColorRes() {
|
||||
return isNightMode() ? R.color.list_background_color_dark : R.color.list_background_color_light;
|
||||
|
|
Loading…
Reference in a new issue