mirror of
https://github.com/gsantner/dandelion
synced 2025-12-14 16:21:11 +01:00
Fix podselection custom button color
This commit is contained in:
parent
9da1a910b3
commit
cebf0f473b
2 changed files with 5 additions and 6 deletions
|
|
@ -173,11 +173,10 @@ public class PodSelectionFragment extends ThemedFragment implements SearchView.O
|
|||
rootView.setBackgroundColor(appSettings.isAmoledColorMode() ? Color.BLACK : Color.WHITE);
|
||||
listViewPod.setDivider(new ColorDrawable(Color.GRAY));
|
||||
listViewPod.setDividerHeight(dividerHeight);
|
||||
if (appSettings.isAmoledColorMode()) {
|
||||
buttonUseCustomPod.setTextColor(Color.WHITE);
|
||||
} else {
|
||||
buttonUseCustomPod.setTextColor(ContextUtils.get().shouldColorOnTopBeLight(appSettings.getAccentColor()) ? Color.WHITE : Color.BLACK);
|
||||
}
|
||||
int bgcolor = appSettings.isAmoledColorMode() ? Color.BLACK : appSettings.getAccentColor();
|
||||
buttonUseCustomPod.setBackgroundColor(bgcolor);
|
||||
buttonUseCustomPod.setTextColor(_cu.shouldColorOnTopBeLight(bgcolor) ? Color.WHITE : Color.BLACK);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue