react-native-navigation的迁移库

TitleBarButtonParams.java 699B

1234567891011121314151617181920212223
  1. package com.reactnativenavigation.params;
  2. public class TitleBarButtonParams extends BaseTitleBarButtonParams {
  3. public String eventId;
  4. public StyleParams.Color color;
  5. public StyleParams.Color disabledColor;
  6. public boolean enabled = true;
  7. public String hint;
  8. public void setColorFromScreenStyle(StyleParams.Color titleBarButtonColor) {
  9. if (!color.hasColor() && titleBarButtonColor.hasColor()) {
  10. color = titleBarButtonColor;
  11. }
  12. }
  13. public StyleParams.Color getColor() {
  14. if (enabled) {
  15. return color;
  16. }
  17. return disabledColor.hasColor() ? disabledColor : AppStyle.appStyle.titleBarDisabledButtonColor;
  18. }
  19. }