Set colors of profile view
This commit is contained in:
parent
1604b53327
commit
bf3ce735bc
|
@ -1210,8 +1210,13 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
|
||||||
}
|
}
|
||||||
|
|
||||||
activeProfileView.setText(MainApp.getConfigBuilder().getProfileName());
|
activeProfileView.setText(MainApp.getConfigBuilder().getProfileName());
|
||||||
activeProfileView.setBackgroundColor(MainApp.gc(R.color.ribbonBgDefault));
|
if (profile.getPercentage() != 100 || profile.getTimeshift() != 0) {
|
||||||
activeProfileView.setTextColor(MainApp.gc(R.color.ribbonTextDefault));
|
activeProfileView.setBackgroundColor(MainApp.gc(R.color.ribbonBgWarning));
|
||||||
|
activeProfileView.setTextColor(MainApp.gc(R.color.ribbonTextWarning));
|
||||||
|
} else {
|
||||||
|
activeProfileView.setBackgroundColor(MainApp.gc(R.color.ribbonBgDefault));
|
||||||
|
activeProfileView.setTextColor(MainApp.gc(R.color.ribbonTextDefault));
|
||||||
|
}
|
||||||
|
|
||||||
tempTargetView.setOnLongClickListener(view -> {
|
tempTargetView.setOnLongClickListener(view -> {
|
||||||
view.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
|
view.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
|
||||||
|
|
Loading…
Reference in a new issue