1
0
Fork 0
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:
Gregor Santner 2018-04-08 22:08:21 +02:00
parent 9da1a910b3
commit cebf0f473b
No known key found for this signature in database
GPG key ID: 7E83A7834AECB009
2 changed files with 5 additions and 6 deletions

View file

@ -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